Skip to main content

A comprehensive FastAPI project generator

Project description

StartFast

PyPI version Python 3.8+ License: MIT

A CLI tool that generates production-ready FastAPI project structures. Saves you from setting up the same boilerplate every time you start a new API project.

pip install startfast
startfast my-api
cd my-api
uvicorn app.main:app --reload

Why?

Setting up a new FastAPI project always takes the same couple hours: configuring the database, setting up authentication, organizing the folder structure, adding Docker files, configuring tests. This tool does all of that for you.

What you get

my-api/
├── app/
│   ├── main.py              # FastAPI application
│   ├── core/
│   │   ├── config.py        # Environment configuration
│   │   └── security.py      # JWT auth + password hashing
│   ├── api/v1/              # API routes
│   ├── models/              # Database models  
│   ├── schemas/             # Pydantic schemas
│   └── services/            # Business logic
├── tests/                   # pytest test suite
├── Dockerfile
├── docker-compose.yml
└── requirements.txt

The generated project includes:

  • Async FastAPI setup with proper project structure
  • PostgreSQL with async SQLAlchemy (or SQLite/MySQL/MongoDB)
  • JWT authentication and user management
  • Docker and docker-compose configuration
  • pytest with test fixtures
  • Environment-based configuration
  • CORS, error handling, and health check endpoints

Installation

pip install startfast

Requires Python 3.8 or higher.

Usage

Basic usage:

startfast my-api

With options:

# Use SQLite instead of PostgreSQL
startfast my-app --db sqlite

# Minimal setup for quick prototypes
startfast my-app --minimal

Database options

--db postgres    # Default
--db sqlite      # For development/prototyping
--db mysql       # If you need MySQL
--db mongo       # For document storage

Authentication options

--auth jwt       # Default - JWT tokens
--auth oauth2    # OAuth2 with scopes
--auth api-key   # Simple API key auth
--auth none      # No authentication

Contributing

Pull requests are welcome. The project structure is pretty straightforward:

git clone https://github.com/Incognitol07/startfast.git
cd startfast
pip install -e ".[dev]"

License

MIT

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

startfast-1.0.0.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

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

startfast-1.0.0-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

Details for the file startfast-1.0.0.tar.gz.

File metadata

  • Download URL: startfast-1.0.0.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for startfast-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e76d10506cb488d4397e1d973684c67716257f6d58be05bb302773ac2dd65f90
MD5 555a18509db1817bd6a1c131c41cf1fa
BLAKE2b-256 07f60890a1b550cf36159471aa1fb7702f625d9802abfa296392abb71ce22b93

See more details on using hashes here.

File details

Details for the file startfast-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: startfast-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 40.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for startfast-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 082f285fb5cdf4f28022baf68238def254e601313a5ff16d5c7cb9aba4843d1b
MD5 869e3f3a351a6356828526df0d86777e
BLAKE2b-256 052fbee1da8f7c7d0da5c5bfc159c135d10b40388c1fb8ca8da5f70b6159bb89

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