Skip to main content

A CLI tool to scaffold FastAPI projects and modules (work in progress).

Project description

fastapi-maker

🚀 FastAPI project scaffolding CLI – Generate production-ready modules in seconds.

A command-line tool to bootstrap and scale FastAPI applications with clean architecture:

  • Auto-generated SQLAlchemy models (with timestamps, ID, etc.)
  • Pydantic v2 DTOs (Create, Update, Response)
  • Repository + Service pattern
  • Routers auto-registered in main.py
  • Alembic pre-configured and models auto-imported
  • Environment management via .env

Perfect for rapid prototyping or enforcing consistent structure across teams.

✨ Features

  • fam init → Initialize a new FastAPI project with database, Alembic, CORS, and more.
  • fam create <entity> → Generate a full module (e.g., User) with:

User/

├── user_model.py # SQLAlchemy ORM model

├── user_repository.py # DB operations

├── user_service.py # Business logic

├── user_router.py # FastAPI routes (auto-added to main.py)

└── dto/

├── user_in_dto.py   # Input validation

└── user_out_dto.py  # API responses

📦 Installation (coming soon on PyPI)

pip install fastapi-maker

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_maker-0.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_maker-0.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_maker-0.1.0.tar.gz.

File metadata

  • Download URL: fastapi_maker-0.1.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for fastapi_maker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 178f1899e651021fa48820f155dcb6ecc16b020bb70c010aa3c00a1de741446d
MD5 c8f245307f41c2b6fcb73ff10ae20c67
BLAKE2b-256 31c256395552455734c66d617c42455d8270439cd73c45be923a914a7ca0dd45

See more details on using hashes here.

File details

Details for the file fastapi_maker-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fastapi_maker-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for fastapi_maker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43738d6ea9ef9c4222f735d3b5913ef8232d2f6a839a6fa57ee785f0d5b8e340
MD5 41a0f5241c2c9d50ee89745901569a2e
BLAKE2b-256 602a2973161e0a0319a5b5ce083b77f4ef964feec5ccb11c859c7791f40273fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page