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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_maker-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d882db9a9a3d84694bc2ee9f472436edccf8dc7b44e3648d3dceb54b8c88babb
MD5 cd28668dc50fa730b9fedc0a1894faba
BLAKE2b-256 5aff4097def17871431eed6730dcae68b6bd4757d970c461d69de90d624b859b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastapi_maker-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f780b82a57e766a60f462c6841731ac2494d48b6a7f29e6723c04ef243ccfeab
MD5 a2630aaffbae2c2a38abe2394337607c
BLAKE2b-256 3f08b3790cc53b5b0063729231fae3d4819664e2e6fb6d37bd566574f2c41049

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