A comprehensive FastAPI project generator
Project description
StartFast
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
Release history Release notifications | RSS feed
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e76d10506cb488d4397e1d973684c67716257f6d58be05bb302773ac2dd65f90
|
|
| MD5 |
555a18509db1817bd6a1c131c41cf1fa
|
|
| BLAKE2b-256 |
07f60890a1b550cf36159471aa1fb7702f625d9802abfa296392abb71ce22b93
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
082f285fb5cdf4f28022baf68238def254e601313a5ff16d5c7cb9aba4843d1b
|
|
| MD5 |
869e3f3a351a6356828526df0d86777e
|
|
| BLAKE2b-256 |
052fbee1da8f7c7d0da5c5bfc159c135d10b40388c1fb8ca8da5f70b6159bb89
|