Python Script Generator
生成专业的 Python 脚本和应用模板,支持 CLI 工具、Flask API、FastAPI、Django Command、Scraper 等,一键生成完整项目代码。
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 1.3k · 10 current installs · 10 all-time installs
MIT-0
Security Scan
OpenClaw
Benign
medium confidencePurpose & Capability
Name, description, SKILL.md, and included files all align with a template-generator purpose. There are no unrelated environment variables, binaries, or downloads requested. However, the included shell helper (python-script-generator.sh) is syntactically broken and will likely fail if executed; some usage examples in SKILL.md also contain typos. These are quality issues rather than indicators of malicious intent.
Instruction Scope
SKILL.md content stays within the scope of generating templates and shows sample project files and pip dependency examples. It does not instruct the agent to read system files, external credentials, or send data to third-party endpoints. Minor contradiction: SKILL.md lists pip install commands for optional dependencies but also has an '安装' section that says '无需额外依赖' — ambiguous guidance but not a security red flag.
Install Mechanism
There is no install spec and no network downloads or archive extraction. Only an included shell script and documentation are present, so nothing is written to disk by an automatic installer. Lowest-risk install posture.
Credentials
The skill requires no environment variables, credentials, or config paths. The sample pip installs are appropriate for the templates described and do not imply additional secret access.
Persistence & Privilege
always is false and the skill doesn't request any persistent or elevated presence. It does not modify other skills or system-wide settings according to the provided files.
Assessment
This skill is coherent with its stated purpose (generating Python templates) and does not request secrets or perform downloads, but exercise caution: the shipped helper script is syntactically broken and will likely fail or behave unpredictably if run. Before installing or executing any included script: (1) review and fix the shell script or run it in an isolated environment (container/VM), (2) prefer generating templates from the SKILL.md content rather than executing unknown scripts, (3) only pip-install dependencies you trust and use a virtualenv, and (4) note the skill source/homepage is unknown — if you need reliability or support, ask the author for a corrected script or choose a generator from a known source.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.0.0
Download zipcligeneratorlatestpythonscript
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
Runtime requirements
🐍 Clawdis
SKILL.md
Python Script Generator
快速生成专业的 Python 脚本和应用代码。
功能
- ⚡ 一键生成项目
- 📝 支持多种类型
- 🔧 完整的项目结构
- 📖 最佳实践
支持的类型
| 类型 | 说明 | 适用场景 |
|---|---|---|
| cli | 命令行工具 | 自动化脚本 |
| flask | Flask API | 轻量级 Web 服务 |
| fastapi | FastAPI | 高性能 API |
| django-cmd | Django Command | Django 管理命令 |
| scraper | 网页爬虫 | 数据采集 |
| bot | Telegram/Discord Bot | 机器人开发 |
使用方法
CLI 工具
toolpython-script-generator my --type cli
python-script-generator backup-script --type cli --description "Backup important files"
FastAPI
python-script-generator myapi --type fastapi
python-script-generator rest-api --type fastapi --crud
爬虫
python-script-generator scraper --type scraper
python-script-generator news-collector --type scraper --selector ".article"
Bot
python-script-generator mybot --type bot --platform telegram
生成的项目结构
mytool/
├── mytool/
│ ├── __init__.py
│ └── main.py
├── tests/
│ └── test_main.py
├── requirements.txt
├── setup.py
└── README.md
CLI 模板
#!/usr/bin/env python3
import argparse
import sys
def main():
parser = argparse.ArgumentParser(
description='Your CLI tool description'
)
parser.add_argument(
'--name',
default='World',
help='Name to greet'
)
parser.add_argument(
'-v', '--verbose',
action='store_true',
help='Enable verbose output'
)
args = parser.parse_args()
if args.verbose:
print(f'[DEBUG] Greeting {args.name}')
print(f'Hello, {args.name}!')
if __name__ == '__main__':
main()
FastAPI 模板
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
app = FastAPI(
title="My API",
description="API description",
version="1.0.0"
)
class Item(BaseModel):
name: str
description: str = None
price: float
@app.get("/")
async def root():
return {"message": "Hello, World!"}
@app.post("/items/")
async def create_item(item: Item):
return item
安装依赖
# CLI
pip install argparse
# FastAPI
pip install fastapi uvicorn
# Flask
pip install flask
# Scraper
pip install requests beautifulsoup4
变现思路
- 脚本模板销售 - 专业脚本模板
- 定制开发 - Python 开发服务
- 培训课程 - Python 编程培训
- SaaS 工具 - 在线工具平台
安装
# 无需额外依赖
Files
3 totalSelect a file
Select a file to preview.
Comments
Loading comments…
