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.2.tar.gz (13.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.2-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_maker-0.2.tar.gz
  • Upload date:
  • Size: 13.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.2.tar.gz
Algorithm Hash digest
SHA256 742ef0f7bcde1703667acdf97c2601ef18ada9273c19a10c5915c3c77b05c87c
MD5 22f15662ff1c375bb77228428945dc93
BLAKE2b-256 c33cce0bcceba43f3bdfb35bd8d2e4408c79ac6ca5b850a75f03ffaaf594f4cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastapi_maker-0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.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-py3-none-any.whl
Algorithm Hash digest
SHA256 216911d50d2b44d018e3e686e78b17f20c70f1a0ede284320cfbefe47a0d1cf0
MD5 c3952135a187a1414f8020b01049565f
BLAKE2b-256 3f6d51561f715d246cad08f3e38510bdfec0eb8b16ffc7f018f6f99682b5fd88

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