Python Exec Sandbox

•
1
•

Provides sandboxed, multi-version Python execution for AI agents with ephemeral dependency management.

This tool offers a robust solution for AI agents requiring Python execution, preventing host system pollution and dependency conflicts. It creates ephemeral, isolated environments using bubblewrap on Linux or Docker on macOS, where scripts run with inline PEP 723 dependencies and `uv` for efficient package resolution and multi-version Python support. Each execution is clean, isolated, and disposable, ensuring a pristine host environment free from package accumulation, virtual environment sprawl, or rogue `pip install` issues.

主要功能

01PEP 723 inline metadata for declaring script dependencies directly
02Multi-version Python support, automatically downloading Python 3.13, 3.14, or 3.15 via uv
03Ephemeral environments where dependencies are resolved per-execution and never persisted
04Efficient package caching for near-instant repeat dependency installations
05Sandboxed execution with platform-specific isolation (bubblewrap on Linux, Docker on macOS)
060 GitHub stars

使用案例

01Running and testing Python code across different Python versions for agent tasks
02Securely executing Python scripts from AI agents without host filesystem access
03Maintaining a clean and consistent host environment for AI agent development