Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计未展示

python-executorPython executor 搜索

Agent Skill

用于辅助 Python 项目开发、测试、依赖管理和常见框架工作流。它适合让 Agent 阅读 Python 代码、定位测试问题、整理运行命令、生成脚本或分析数据处理逻辑。使用时需要确认项目虚拟环境、依赖版本和测试入口;涉及执行脚本、读写文件、访问数据库或调用外部 API 时,应先明确运行目录和输入输出范围,避免误改生产数据。

总安装

5,612

周安装

146

GitHub Stars

公开资料未说明

下载量

1,287
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:python-executor(Python executor 搜索)
来源仓库:https://github.com/inf-sh/skills
仓库路径:skills/python-executor
安装命令:
npx skills add inf-sh/skills --skill "python-executor"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add inf-sh/skills --skill "python-executor"

简介

通过 [inference.sh](https://inference.sh) 在安全的沙盒环境中执行 Python 代码。预安装:NumPy、Pandas、Matplotlib、requests、BeautifulSoup、Selenium、Playwright、MoviePy、Pillow、OpenCV、trimesh 和 100 多个库。用于:数据处理、网页抓取、图像处理、视频创建、3D 模型处理、PDF 生成、API 调用、自动化脚本。触发器:python、执行代码、运行脚本、网页抓取、数据分析、图像处理、视频编辑、3D 模型、自动化、pandas、matplotlib

SKILL.md

name
python-executor
description
Execute Python code in a safe sandboxed environment via 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 models, automation, pandas, matplotlib
allowed-tools
Bash(infsh *)

Python Code Executor

Execute Python code in a safe, sandboxed environment with 100+ pre-installed libraries.

Python Code Executor

Quick Start

curl -fsSL https://cli.inference.sh | sh && infsh login

# Run Python code
infsh app run infsh/python-executor --input '{
  "code": "import pandas as pd\
print(pd.__version__)"
}'

App Details

PropertyValue
App IDinfsh/python-executor
EnvironmentPython 3.10, CPU-only
RAM8GB (default) / 16GB (high_memory)
Timeout1-300 seconds (default: 30)

Input Schema

{
  "code": "print('Hello World!')",
  "timeout": 30,
  "capture_output": true,
  "working_dir": null
}

Pre-installed Libraries

Web Scraping & HTTP

  • requests, httpx, aiohttp - HTTP clients
  • beautifulsoup4, lxml - HTML/XML parsing
  • selenium, playwright - Browser automation
  • scrapy - Web scraping framework

Data Processing

  • numpy, pandas, scipy - Numerical computing
  • matplotlib, seaborn, plotly - Visualization

Image Processing

  • pillow, opencv-python-headless - Image manipulation
  • scikit-image, imageio - Image algorithms

Video & Audio

  • moviepy - Video editing
  • av (PyAV), ffmpeg-python - Video processing
  • pydub - Audio manipulation

3D Processing

  • trimesh, open3d - 3D mesh processing
  • numpy-stl, meshio, pyvista - 3D file formats

Documents & Graphics

  • svgwrite, cairosvg - SVG creation
  • reportlab, pypdf2 - PDF generation

Examples

Web Scraping

infsh app run infsh/python-executor --input '{
  "code": "import requests\
from bs4 import BeautifulSoup\
\
response = requests.get(\"https://example.com\")\
soup = BeautifulSoup(response.content, \"html.parser\")\
print(soup.find(\"title\").text)"
}'

Data Analysis with Visualization

infsh app run infsh/python-executor --input '{
  "code": "import pandas as pd\
import matplotlib.pyplot as plt\
\
data = {\"name\": [\"Alice\", \"Bob\"], \"sales\": [100, 150]}\
df = pd.DataFrame(data)\
\
plt.bar(df[\"name\"], df[\"sales\"])\
plt.savefig(\"outputs/chart.png\")\
print(\"Chart saved!\")"
}'

Image Processing

infsh app run infsh/python-executor --input '{
  "code": "from PIL import Image\
import numpy as np\
\
# Create gradient image\
arr = np.linspace(0, 255, 256*256, dtype=np.uint8).reshape(256, 256)\
img = Image.fromarray(arr, mode=\"L\")\
img.save(\"outputs/gradient.png\")\
print(\"Image created!\")"
}'

Video Creation

infsh app run infsh/python-executor --input '{
  "code": "from moviepy.editor import ColorClip, TextClip, CompositeVideoClip\
\
clip = ColorClip(size=(640, 480), color=(0, 100, 200), duration=3)\
txt = TextClip(\"Hello!\", fontsize=70, color=\"white\").set_position(\"center\").set_duration(3)\
video = CompositeVideoClip([clip, txt])\
video.write_videofile(\"outputs/hello.mp4\", fps=24)\
print(\"Video created!\")",
  "timeout": 120
}'

3D Model Processing

infsh app run infsh/python-executor --input '{
  "code": "import trimesh\
\
sphere = trimesh.creation.icosphere(subdivisions=3, radius=1.0)\
sphere.export(\"outputs/sphere.stl\")\
print(f\"Created sphere with {len(sphere.vertices)} vertices\")"
}'

API Calls

infsh app run infsh/python-executor --input '{
  "code": "import requests\
import json\
\
response = requests.get(\"https://api.github.com/users/octocat\")\
data = response.json()\
print(json.dumps(data, indent=2))"
}'

File Output

Files saved to outputs/ are automatically returned:

# These files will be in the response
plt.savefig('outputs/chart.png')
df.to_csv('outputs/data.csv')
video.write_videofile('outputs/video.mp4')
mesh.export('outputs/model.stl')

Variants

# Default (8GB RAM)
infsh app run infsh/python-executor --input input.json

# High memory (16GB RAM) for large datasets
infsh app run infsh/python-executor@high_memory --input input.json

Use Cases

  • Web scraping - Extract data from websites
  • Data analysis - Process and visualize datasets
  • Image manipulation - Resize, crop, composite images
  • Video creation - Generate videos with text overlays
  • 3D processing - Load, transform, export 3D models
  • API integration - Call external APIs
  • PDF generation - Create reports and documents
  • Automation - Run any Python script

Important Notes

  • CPU-only - No GPU/ML libraries (use dedicated AI apps for that)
  • Safe execution - Runs in isolated subprocess
  • Non-interactive - Use plt.savefig() not plt.show()
  • File detection - Output files are auto-detected and returned

Related Skills

# AI image generation (for ML-based images)
npx skills add inference-sh/skills@ai-image-generation

# AI video generation (for ML-based videos)
npx skills add inference-sh/skills@ai-video-generation

# LLM models (for text generation)
npx skills add inference-sh/skills@llm-models

Documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

60.38%
按下载量换算777

Cursor

29.12%
按下载量换算375

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills