Python Script Generator
生成专业的 Python 脚本和应用模板,支持 CLI 工具、Flask API、FastAPI、Django Command、Scraper 等,一键生成完整项目代码。
生成专业的 Python 脚本和应用模板,支持 CLI 工具、Flask API、FastAPI、Django Command、Scraper 等,一键生成完整项目代码。
Real data. Real impact.
Growing
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
快速生成专业的 Python 脚本和应用代码。
| 类型 | 说明 | 适用场景 |
|---|---|---|
| cli | 命令行工具 | 自动化脚本 |
| flask | Flask API | 轻量级 Web 服务 |
| fastapi | FastAPI | 高性能 API |
| django-cmd | Django Command | Django 管理命令 |
| scraper | 网页爬虫 | 数据采集 |
| bot | Telegram/Discord Bot | 机器人开发 |
toolpython-script-generator my --type cli python-script-generator backup-script --type cli --description "Backup important files"
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"
python-script-generator mybot --type bot --platform telegram
mytool/ ├── mytool/ │ ├── __init__.py │ └── main.py ├── tests/ │ └── test_main.py ├── requirements.txt ├── setup.py └── README.md
#!/usr/bin/env python3 import argparse import sysdef 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()
from fastapi import FastAPI, HTTPException from pydantic import BaseModelapp = 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 argparseFastAPI
pip install fastapi uvicorn
Flask
pip install flask
Scraper
pip install requests beautifulsoup4
# 无需额外依赖
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.