Skip to main content

⚡ Scaffold production-ready FastAPI projects instantly

Project description

fastapi-gen ⚡

Create production-ready FastAPI projects in seconds.

Install

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ fastapi-gen-newone

Or run directly with pipx:

pipx run fastapi-gen-newone my-app

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

fastapi_gen_newone-0.1.1.tar.gz (9.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_gen_newone-0.1.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_gen_newone-0.1.1.tar.gz
  • Upload date:
  • Size: 9.2 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.1.tar.gz
Algorithm Hash digest
SHA256 2e3ebc755c1b0e0fee392fce9c263891ec721aa3e83afbfec8ba9048ba8f29c6
MD5 95857eac9806d9d626b3d62ec68d259d
BLAKE2b-256 cb29fd39363e7ce7aaae112cf2a88d90dfd44793cb16b8de9ae2e40909d97961

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_gen_newone-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f2fcd7c21f1745e267a56a496f4b874ead3e6540f4d212d766108155e358e04
MD5 c4f8393a0ebd3a693d3b730b20362165
BLAKE2b-256 ea7e0cf5fa29532e1bde9f26a72305cdfc546fecf380b95332f6bd8e357f427a

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