python-executor

Execute Python code in a sandboxed environment with pre-installed libraries.

Updated May 12, 2025
One-click install
npx skills add https://github.com/nicoarbelaez/portfolio --skill python-executor-nicoarbelaez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-executor
Source: https://github.com/nicoarbelaez/portfolio/tree/main/.agents/skills/python-executor
Command: npx skills add https://github.com/nicoarbelaez/portfolio --skill python-executor-nicoarbelaez

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Execute Python code securely in a sandboxed environment, enabling safe experimentation and automation without risking the host system.

Core Features & Use Cases

  • Safe, isolated execution of Python code with a large pre-installed library set.
  • Supports data processing, web requests, visualization, image/video processing, and automation tasks.
  • Easy integration with inference.sh powered workflows for scalable code execution.

Quick Start

Run a Python code snippet in the sandbox and return the results.

Frequently Asked Questions about python-executor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Python code securely for data processing without risking my host system?

You can run Python code securely by executing it in an isolated subprocess with CPU-only constraints. This sandboxed Python execution prevents automation scripts and data processing tasks from risking the host system.

What libraries are pre-installed for sandboxed Python execution?

The sandboxed Python execution environment includes pre-installed libraries such as NumPy, pandas, requests, and more to support data processing, web scraping, and image processing tasks.

Can I use this sandbox for web scraping and image processing tasks?

Yes, the sandbox supports web scraping, image and video processing, and scientific tasks. You can execute Python code for these applications using the pre-installed libraries within the isolated environment.

Do I need the inference.sh belt CLI to execute Python scripts in the sandbox?

Yes, executing Python scripts in this sandbox requires the inference.sh belt CLI. It initiates the isolated subprocess to ensure safe, CPU-only constrained code execution.

Are there limitations when running video processing scripts in an isolated subprocess?

The isolated subprocess operates under CPU-only constraints. This means video processing and other intensive Python automation tasks are limited to CPU execution without GPU acceleration.

What is the best way to execute untrusted Python automation scripts safely?

The best way to execute untrusted Python automation scripts safely is using a sandboxed environment. It isolates the code in a subprocess, preventing potential risks to the host system during execution.