# ai_script_writer **Repository Path**: xindekaish/ai_script_writer ## Basic Information - **Project Name**: ai_script_writer - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-05-13 - **Last Updated**: 2026-05-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README project/ ├── main.py # FastAPI 入口,注册路由 ├── requirements.txt ├── database.py # SQLite 连接、初始化表 ├── models.py # Pydantic 模型(用户、剧本请求/响应) ├── auth.py # 密码哈希、JWT 生成/验证 ├── routers/ # 路由模块 │ ├── __init__.py │ ├── auth.py # /register, /login, /me │ ├── scripts.py # /generate, /export, /my-scripts, /delete-script │ └── images.py # 图像生成相关(可选) ├── services/ # 业务逻辑层 │ ├── script_generator.py # 调用 AI 生成剧本的核心逻辑 │ └── image_generator.py # 调用混元 API ├── templates/ # Jinja2 模板(保持不变) │ └── index.html ├── static/ # 静态文件 └── outputs/ # 生成的图片、导出文件