⚡ Scaffold production-ready FastAPI projects instantly
Project description
fastapi-gen ⚡
Create production-ready FastAPI projects in seconds.
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 JWT Auth (login/register routes): Yes
? Include Docker (Dockerfile + docker-compose): Yes
? Include Pytest (test suite): Yes
With flags (non-interactive)
fastapi-gen my-app --db --auth --docker --alembic --tests
Skip prompts entirely
fastapi-gen my-app -y # bare project, no extras
fastapi-gen my-app -y --auth # just auth, no prompts
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 |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi_gen_newone-0.1.2.tar.gz.
File metadata
- Download URL: fastapi_gen_newone-0.1.2.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
053b310fac867bc266427a5ae0d2b0bfb0db31b373a27ae01012fcae018acd46
|
|
| MD5 |
48265b643a3d9cd90589a85274ec0cde
|
|
| BLAKE2b-256 |
bcd4671dcef85cb3c546c73feba5653720789adf5e6f6158bc14d2240c570398
|
File details
Details for the file fastapi_gen_newone-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fastapi_gen_newone-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9f128f628c509c64336cedd833128145244a0c1c4402c4763a234cfd3bfb929
|
|
| MD5 |
3cdd82d6f3550ddf974a5361666bfcb1
|
|
| BLAKE2b-256 |
0aaef3645561af2812a67ba11f160c944b51df131742f644aab0708aa9abf9dc
|