Skip to main content

Create production-ready FastAPI projects in seconds

Project description

FastAPI Gen ⚡

GitHub Stars Tests PyPI Python Downloads License

Create production-ready FastAPI projects in seconds

Skip the boilerplate. Ship faster.

Install

pip install fastapi-gen-newone

Usage

Interactive (recommended)

fastapi-gen my-app

You'll be prompted to select features:

⚡ FastAPI Project Generator
Scaffold a production-ready FastAPI app in seconds

? Project name: my-app
? Include SQLAlchemy (database models): Yes
? Include Alembic (database migrations): Yes
? Include Docker (Dockerfile + docker-compose): Yes
? Include Pytest (test suite): Yes

With flags (non-interactive)

fastapi-gen my-app --db --docker --alembic --tests

Skip prompts entirely

fastapi-gen my-app -y            # bare project, no extras

Generated structure

my-app/
├── src/
│   ├── main.py            ← FastAPI app entrypoint
│   ├── core/
│   │   └── config.py    ← pydantic-settings
│   ├── api/v1/
│   │   ├── router.py
│   │   └── endpoints/
│   │       └── health.py   
│   ├── db/                ← (if --db)
│   │   └── session.py
│   ├── models/            ← (if --db)
│   └── schemas/           ← (if --db)
├── alembic/               ← (if --alembic)
├── tests/                 ← (if --tests)
├── Dockerfile             ← (if --docker)
├── docker-compose.yml     ← (if --docker)
├── pyproject.toml
├── .env.example
└── README.md

Options

Flag Description
--db SQLAlchemy async ORM + aiosqlite
--alembic Alembic migration setup
--docker Dockerfile + docker-compose
--tests pytest + httpx async test suite
-y / --no-interactive Skip all prompts

By Mouad Sadik

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_gen_newone-0.1.7.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

fastapi_gen_newone-0.1.7-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_gen_newone-0.1.7.tar.gz.

File metadata

  • Download URL: fastapi_gen_newone-0.1.7.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for fastapi_gen_newone-0.1.7.tar.gz
Algorithm Hash digest
SHA256 b2f5f32625e412f1c3c76bbed9ddb6e73104cb841ec4e5ad2d525704db495b61
MD5 df152a042e9cdaa2c15be7fb9c1f2520
BLAKE2b-256 44a797d9fec26fb53993c0a222a41fb3bfc31dacad9b236b070f7cb3dab8fc1c

See more details on using hashes here.

File details

Details for the file fastapi_gen_newone-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_gen_newone-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 37b01c2e953082440b472f83fc9e6746e374f1104f7be2be1343c236c9a8be26
MD5 d882bb4e7c95fb7bb5132ea212cc8059
BLAKE2b-256 fd6cc1636b6e3b7bf84eea97a1ec1b20c8c79c289303334fb21c68724193637a

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