python-executor

Execute Python 3.10 scripts in a sandboxed environment with configurable timeouts.

1|1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/Shamrock2245/shamrock-trading-bot --skill python-executor-shamrock2245
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-executor
Source: https://github.com/Shamrock2245/shamrock-trading-bot/tree/main/.agent/skills/python-executor
Command: npx skills add https://github.com/Shamrock2245/shamrock-trading-bot --skill python-executor-shamrock2245

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a secure way to run arbitrary Python code without risking the host system, eliminating the need to set up local environments or manage dependencies.

Core Features & Use Cases

  • Sandboxed Execution: Runs code in an isolated subprocess with configurable timeouts.
  • Pre‑installed Libraries: Over 100 popular packages including NumPy, Pandas, Matplotlib, Selenium, Playwright, OpenCV, and more.
  • Flexible Input: Accepts code, timeout, and working directory parameters.
  • Output Capture: Returns stdout, stderr, and any files saved to an outputs/ folder.
  • Use Cases: Data analysis, web scraping, image/video processing, 3D model handling, PDF generation, and automation within trading bots or other agents.

Quick Start

Ask the skill to execute a Python snippet, such as printing “Hello World”, and receive the result instantly.

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 in a sandboxed environment without installing dependencies locally?

You can run Python code in a sandboxed environment by submitting scripts to an isolated subprocess. This approach utilizes a pre-installed Python 3.10 environment with over 100 libraries, eliminating local setup and returning captured stdout, stderr, and output files instantly.

Does the sandboxed Python execution environment include libraries for web scraping and data processing?

Yes, sandboxed Python execution includes over 100 pre-installed libraries. It supports data processing, web scraping, and visualization tasks by providing immediate access to packages like NumPy, Pandas, Matplotlib, Selenium, Playwright, and OpenCV without manual installation.

What is the maximum execution timeout for running Python scripts in this isolated environment?

The maximum execution timeout for running Python scripts is up to 300 seconds. This configurable timeout parameter ensures long-running automation tasks, data processing, or web scraping scripts complete safely within the isolated subprocess before returning results.

Can I capture generated files and visualizations from my Python script?

Yes, you can capture generated files and visualizations from your Python script. The execution environment returns stdout and stderr, alongside any files your code saves to an outputs folder, making it suitable for image manipulation, PDF generation, and data visualization.

How do I perform data analysis and 3D model handling without configuring a local Python environment?

You perform data analysis and 3D model handling by executing code directly in a pre-configured Python 3.10 sandbox. This environment eliminates local configuration by providing immediate access to over 100 popular packages for data processing, visualization, and 3D model manipulation.

Why does my Python script not work when processing large datasets in the sandbox?

Your Python script might fail when processing large datasets if execution exceeds the 300-second timeout limit. The sandboxed environment restricts maximum runtime duration, so scripts requiring extensive data processing or web scraping automation must complete within this boundary.