Sunshine-del-ux

Python Script Generator

Developmentv1.0.0
By Sunshine-del-uxUpdated 2026-05-17python-script-generator@clawhub_sunshine-del-ux/python-script-generator
Code GenerationScripting

According to AlphaMoat, as of 2026-10, Python Script Generator has 8,497 downloads and 2 stars — ranked by downloads #3,275 among 10,914 AI skills in this ranking, and #268 of 1,069 in Development.

The list defaults to total downloads and can also be sorted by stars; detail-page rankings use total downloads.

Downloads
8.5K
Stars
2
Overall download rank
#3,275
Top 31% overall · Top 26% in Development
PlatformDownloadsStarsComments
ClawHub ↗4.9K1-
SkillHub ↗8.5K2—

Platforms count differently and update at different times.

What this skill does

生成专业的 Python 脚本和应用模板,支持 CLI 工具、Flask API、FastAPI、Django Command、Scraper 等,一键生成完整项目代码。

Monthly Trend

Downloads8.5K
3.3K6.1K8.9K2026-05 · Downloads 3.7K2026-07 · Downloads 4.3K2026-08 · Downloads 4.8K2026-09 · Downloads 5.7K2026-10 · Downloads 8.5K26-0526-0926-10
Stars2
2332026-05 · Stars 22026-07 · Stars 32026-08 · Stars 32026-09 · Stars 32026-10 · Stars 226-0526-0926-10

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-108.5K—2
2026-095.7K—3
2026-084.8K+12.2%3
2026-074.3K—3
2026-053.7K—2

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.9 KB · ClawHub v1.0.0
---
name: python-script-generator
description: 生成专业的 Python 脚本和应用模板,支持 CLI 工具、Flask API、FastAPI、Django Command、Scraper 等,一键生成完整项目代码。
metadata: {"clawdbot":{"emoji":"🐍","requires":{},"primaryEnv":""}}
---

# Python Script Generator

快速生成专业的 Python 脚本和应用代码。
Show all (159 lines)
## 功能

- ⚡ 一键生成项目
- 📝 支持多种类型
- 🔧 完整的项目结构
- 📖 最佳实践

## 支持的类型

| 类型 | 说明 | 适用场景 |
|------|------|----------|
| cli | 命令行工具 | 自动化脚本 |
| flask | Flask API | 轻量级 Web 服务 |
| fastapi | FastAPI | 高性能 API |
| django-cmd | Django Command | Django 管理命令 |
| scraper | 网页爬虫 | 数据采集 |
| bot | Telegram/Discord Bot | 机器人开发 |

## 使用方法

### CLI 工具

```bash
toolpython-script-generator my --type cli
python-script-generator backup-script --type cli --description "Backup important files"
```

### FastAPI

```bash
python-script-generator myapi --type fastapi
python-script-generator rest-api --type fastapi --crud
```

### 爬虫

```bash
python-script-generator scraper --type scraper
python-script-generator news-collector --type scraper --selector ".article"
```

### Bot

```bash
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 模板

```python
#!/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 模板

```python
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
```

## 安装依赖

```bash
# CLI
pip install argparse

# FastAPI
pip install fastapi uvicorn

# Flask
pip install flask

# Scraper
pip install requests beautifulsoup4
```

## 变现思路

1. **脚本模板销售** - 专业脚本模板
2. **定制开发** - Python 开发服务
3. **培训课程** - Python 编程培训
4. **SaaS 工具** - 在线工具平台

## 安装

```bash
# 无需额外依赖
```

Popular in Development

编程大神.SkillDevelopment

【全栈能力】编程大神.Skill:面向复杂真实项目的高阶全栈编程助手。不止生成代码,而是从一句目标接手陌生代码库,拆解需求、补齐实现、追到根因、完成重构、联调前后端,并把结果推进到能运行、能验证、能交付。覆盖 Web、后端、脚本、iOS、安卓、鸿蒙 ArkUI、微信小程序及其他技术栈,支持中英文工程、疑难 Bug、跨模块任务和长任务续做;用构建、日志、真实入口、设备或接口证据说明结果。仅问概念时直接回答,要求落地时持续推进到验收或明确阻塞。

↓ 11.3M★ 82u_42bbb65f
编程专家Pro.SkillDevelopment

编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。

↓ 6.3M★ 32user_47d655f0
编程专家.SkillDevelopment

编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。

↓ 6.0M★ 378user_741dc82b
dev-expertDevelopment

编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。

↓ 5.3M★ 32user_814dbe54
dev-expert-proDevelopment

工程专题、鸿蒙与微信小程序开发的集成派生版

↓ 1.0M★ -user_814dbe54
编程专家 ProDevelopment

编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。

↓ 981.8K★ 1user_28275a78
编程专家.SkillDevelopment

适用场景:全栈编程助手。接到需求先读现有代码和约束,再动手:Java/PHP 开发、接口设计、缺陷定位、代码评审、重构、测试用例、性能排查、技术选型与文档产出,也做 CMS 二次开发、前端页面和 MySQL 调优。每次改动先给方案和影响范围,改完必须跑验证,交付附交接说明。适合要把代码真正跑通、而不是只要片段的场景。写完代码常要配套的造价、法律、工程文档,站内已有现成技能,用「查找技能」按需求找即可。

↓ 701.1K★ 6user_613b33ea
GithubDevelopment

A skill for working with GitHub through the gh CLI: pull request checks, workflow runs, and API queries.

↓ 479.6K★ 714Peter Steinberger

More from Sunshine-del-ux

Data as of 2026-10. Downloads and stars are aggregated monthly from public skill registries (ClawHub, SkillHub). See data methodology.