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
  • fam migrate [-m "message"] → Auto-generate and apply database migrations with Alembic.

📦 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.2.1.1.tar.gz (13.9 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.2.1.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_maker-0.2.1.1.tar.gz
  • Upload date:
  • Size: 13.9 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.2.1.1.tar.gz
Algorithm Hash digest
SHA256 34c9fd742944e40605033eef4af01953d0f232c2f2156c8fa3df80b948efeced
MD5 890a461088ed0bc9fababe0947450ab8
BLAKE2b-256 f4b5f35faf6cbb7ac8c5679d31cbe762c946245a19d98074d42e0400b257efce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_maker-0.2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a68f598bebbcd148b6e360c83546fc9d6c2236d07f9c1a3661a9e4e043a1ac7
MD5 5310886125889ffddfdee3706c9f573f
BLAKE2b-256 ff2c80f9d8753d895297e48f66c0fcef107300934085f329b9343772543094d8

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