{"repo":"lee-hangzhou/fastscaff","free":true,"listed":false,"github":"https://github.com/lee-hangzhou/fastscaff","clone":"git clone https://github.com/lee-hangzhou/fastscaff.git","description":"FastAPI project scaffold CLI - Generate production-ready FastAPI projects with SQLAlchemy/Tortoise ORM, JWT auth, Redis(FastAPI 项目脚手架 CLI —— 快速生成可用于生产环境的 FastAPI 项目，内置 SQLAlchemy/Tortoise ORM、JWT 认证)","language":"Python","stars":11,"topics":["api","async","cli","fastapi-sqlalchemy","fastapi-template","jwt","project-template","python","redis","tortoise-orm"],"license":null,"category":"databases-storage","readme_excerpt":"FastScaff FastAPI project scaffolding tool - quickly generate standardized FastAPI project structures. 中文文档 Installation Commands Create Project Options: - --orm - ORM choice: sqlalchemy or tortoise (default: tortoise ) - --output - Output directory (default: current directory) - --with-rbac - Include Casbin RBAC support - --with-celery - Include Celery task queue support - --force - Overwrite existing directory Examples: Generate Models from Database Generate ORM models by introspecting existing MySQL database tables: Options: - --db-url - Database connection URL (required) - --orm - Target ORM: sqlalchemy or tortoise (auto-detected from requirements.txt) - --tables - Comma-separated table names (default: all tables) - --output - Output directory (default: current directory) Examples: Generated models include: - Field type mapping - Primary keys and auto-increment - Indexes - Foreign key relationships - Table and column comments Project Structure Architecture The generated project follows a layered architecture: Layer Directory Responsibility ------- ----------- ---------------- API api/ HTTP handling, request validation, response formatting Service services/ Business logic, orchestration Repository repositories/ Data access, database queries Model models/ Database table definitions Schema schemas/ Request/response data structures Services are accessed via a singleton registry pattern: Built-in Features Middleware - CORS handling - Request logging with trace ID - JWT authent","default_branch":null,"files":null,"tree":[],"storefront":"/r/lee-hangzhou","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lee-hangzhou/fastscaff/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}