python-executor: 在沙箱中运行 Python 代码

作者 beltsh/superpowersbeltsh/superpowersskills.sh

python-executor 通过 belt 命令行工具,在隔离环境中运行 Python 代码。环境内置 100 多个库,包括 pandas、requests、Playwright、Pillow、OpenCV 和 trimesh。保存到 outputs/ 目录的文件会随结果一起返回。

开发编程skills.sh
累计安装
—
skills.sh
最近一周新增
—
比上一周
Best 100 名次
—
不在 Best 100
仓库 Star
6
2026-11-26 有推送

这个 skill 解决的问题

你需要运行一段 Python 脚本,用来抓取网页、处理数据集、编辑图片或视频,或处理 3D 模型。你不想自己搭建 Python 环境。

使用这个技能时,你把代码发送给 infsh/python-executor 应用,然后拿回脚本的打印输出,以及它保存到 outputs/ 的文件。运行环境只有 CPU,使用 Python 3.10,默认内存 8GB,使用 high_memory 版本时为 16GB。每次运行的超时时间为 1 到 300 秒,默认 30 秒。

适合

  • 网页抓取,以及 HTTP 或 API 调用
  • 用 pandas 处理数据,用 matplotlib 画图
  • 图片、视频或 3D 模型文件处理
  • 生成 PDF 或报告

不适合

  • 需要 GPU 或机器学习模型的任务,技能说明建议改用专门的 AI 应用
  • 依赖 plt.show() 或实时输入的交互式脚本

安装这个 skill

只装 python-executor

npx skills add https://github.com/beltsh/superpowers --skill python-executor

装整个仓库

npx skills add https://github.com/beltsh/superpowers

这个 skill 的工作原理

  1. 1运行 `belt login` 登录。
  2. 2用 `belt app run` 把 Python 代码发送到 `infsh/python-executor`,输入为包含 `code` 字段的 JSON。
  3. 3可选:设置 `timeout`(1 到 300 秒,默认 30)或 `working_dir`。
  4. 4代码在隔离的子进程中运行,环境为仅 CPU 的 Python 3.10。
  5. 5处理大数据集时,使用 `high_memory` 版本,内存为 16GB。
  6. 6保存到 `outputs/` 的文件会被自动识别,并包含在返回结果中。

同一个仓库里的相关 skill

Skill它做什么累计安装
ai-video-generationGenerate AI videos with Google Veo, Seedance 2.5, Kling, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Seedance 2.5, Kling v4, Runway Gen-4.5, FLUX 3 Video, HappyHorse 1.0, Wan 2.7, Grok Imagine Video 1.5, P-Video 2, OmniHuman, Fabric. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway, pika alternative, sora alternative, kling, seedance, happyhorse270,084
ai-image-generationGenerate AI images with GPT-Image-2.6, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2.6 Flare, GPT-Image-2.6 Sunburst, FLUX Dev LoRA, FLUX.2 Klein LoRA, Nano Banana 2.1, Gemini 3 Pro Image, Grok Imagine 2.0, Seedream 5.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image269,955
ai-avatar-videoCreate AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc269,945
twitter-automationAutomate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-create (text and media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet269,943

你是这个 skill 的作者?把排名添加到自己的 GitHub 仓库

Best Skills

徽章上的名次每天自动更新,点击回到这个页面。

[![Best Skills](https://linkly.ai/skills/badge/beltsh/superpowers/python-executor.svg)](https://linkly.ai/skills/s/beltsh/superpowers/python-executor)
Linkly AI

这份榜单由 Linkly AI 维护

Linkly AI 是 AI Agent 的知识大脑,在你的电脑上自动解析笔记、学习资料、收藏夹、知识库、语音、会议、视频和想法,让你的 Agent 能够高效检索和阅读你所有的资料。

下载 Linkly AI
或者把这句话发给你的 Agent,它会帮助你安装和接入。

按 https://linkly.ai/docs/zh/agent-setup.md 完成设置