在沙箱隔离环境中安全地运行Python代码,无需本地安装。访问100多个预安装的库,包括Pandas、NumPy、BeautifulSoup、MoviePy和OpenCV,可用于数据处理、网页抓取、图像处理、视频创作和自动化任务。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“python-executor”。 Execute Python code to calculate fibonacci sequence
预期结果:
- Running Python execution with 8GB RAM allocation
- Fibonacci sequence (0-20): [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765]
- Execution completed in 0.8 seconds
正在使用“python-executor”。 Scrape product prices from example.com
预期结果:
- Starting web scraping with BeautifulSoup
- Found 24 product listings
- Extracted: name, price, availability
- Saved results to outputs/products.csv
- Files available for download: products.csv (4.2 KB)
正在使用“python-executor”。 Create a bar chart from this data
预期结果:
- Generating visualization with Matplotlib
- Data loaded: 15 rows x 3 columns
- Created bar chart showing sales by region
- Saved chart to outputs/sales_chart.png
- Files available for download: sales_chart.png (156 KB)
安全审计
安全All 69 static findings are false positives from markdown code blocks and documentation URLs. The skill contains only legitimate documentation for a Python execution service with no executable code, security vulnerabilities, or malicious intent. Verified as safe for publication.
质量评分
你能构建什么
数据分析与可视化
使用Pandas处理大型数据集,使用Matplotlib创建可视化图表,并将结果导出为CSV或PNG文件
网页抓取自动化
使用HTTP客户端和HTML解析器从网站提取数据,或使用Selenium自动化浏览器以处理动态内容
媒体处理流水线
操作图像、创建带有文字叠加的视频,或完全使用Python处理3D模型,无需本地依赖项
试试这些提示
Execute this Python code and return the output: {code}Run Python code to analyze this data: {data}. Use Pandas for processing and save visualizations to outputs/Write and execute Python code to scrape data from {url}. Extract {target_data} and save the results to outputs/data.jsonExecute Python to process media files. Use {libraries} to manipulate the {media_type} and save results to outputs/最佳实践
- 始终将输出保存到outputs/目录,以便执行后自动检索文件
- 根据任务复杂度设置适当的超时值(默认30秒,最大300秒)
- 处理大型数据集或复杂媒体处理时使用高内存版本(16GB内存)
- 通过使用保存方法而非plt.show()等显示函数来编写非交互式代码
避免
- 不要使用plt.show()或input()等交互式命令,因为它们会导致执行挂起
- 避免使用pip安装新包,因为只有预安装的库可用
- 不要尝试GPU或ML模型训练,因为环境仅支持CPU
- 切勿在代码中硬编码敏感凭据,因为执行环境不是持久化的