Back to Skills

python-executor

Execute Python code in a safe sandboxed environment via [inference.sh](https://inference.sh). Pre-installed: NumPy, Pandas, Matplotlib, requests, BeautifulSoup, Selenium, Playwright, MoviePy, Pillow, OpenCV, trimesh, and 100+ more libraries. Use for: data processing, web scraping, image manipulation, video creation, 3D model processing, PDF generation, API calls, automation scripts. Triggers: python, execute code, run script, web scraping, data analysis, image processing, video editing, 3D model

376stars66forksUpdated 4/28/2026

Security Assessment

Safe(100/100)
Security Score100/100

About python-executor

The python-executor skill allows users to run Python code in a secure and sandboxed environment. It is built to execute code in a fully managed environment, ensuring that the code runs safely without compromising the host system. This skill is designed to tackle a variety of tasks including data analysis, image processing, web scraping, and video editing, among others. By providing access to over 100 pre-installed libraries, it empowers users to execute Python scripts quickly and efficiently while avoiding the hassle of managing complex dependencies or infrastructure. Whether for automation, data science, or multimedia manipulation, this skill simplifies the execution process in a reliable and controlled manner.

FAQ

How do I run Python code using the python-executor skill?

To run Python code, use the inference.sh CLI tool (`belt`). First, log in and then run the app with your Python code as input using the command: `belt app run infsh/python-executor --input '{"code": "your_code_here"}'`.

What libraries are available for use with the python-executor skill?

The skill comes with more than 100 pre-installed libraries, including popular ones like NumPy, Pandas, Matplotlib, requests, BeautifulSoup, Selenium, Playwright, MoviePy, Pillow, OpenCV, and many others across categories such as web scraping, data processing, image manipulation, and 3D model processing.

Are there any limitations on the runtime of my Python code?

Yes, the maximum runtime for your Python code is configurable, with a default timeout of 30 seconds. You can set the timeout anywhere between 1 and 300 seconds, depending on the complexity of the task.

Can I run scripts that require a GPU or other hardware acceleration?

No, the python-executor skill runs in a CPU-only environment. For GPU-based tasks, the skill does not currently support hardware acceleration.

What is the maximum available memory for running scripts?

By default, the environment provides 8GB of RAM for running Python code. However, you can opt for a high-memory configuration with up to 16GB of RAM for more demanding tasks.

Install python-executor

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill