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.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-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_maker-0.2.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.tar.gz
Algorithm Hash digest
SHA256 927053bef07047de598cae7a857cf61a2530d20f38524201ac4314d89ff81cfa
MD5 2508c011f1e77c4f8af5a71c59846b40
BLAKE2b-256 f2be0e20b138ef1055462232e73d52cd7152e50dda6843801a4039fd7651eb0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastapi_maker-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 15.0 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7c69cca0ecbaab8655803a55eea3c8c8aa5283153b5cbfb47287118886e0fae
MD5 bfe6fe5730dcc9e497e88d59a02e1c5a
BLAKE2b-256 e09b20461ad76ebf443b24e4d22d751289c2b185035c31598bc5b490fb048884

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