Fastgen - FastAPI Project Generator & Scaffolder. Create production-ready FastAPI projects with modern features.
Project description
FastAPI Project Starter
A powerful CLI tool for generating production-ready FastAPI projects with modern features and best practices.
✨ Features
- Database Support - PostgreSQL + SQLAlchemy + Alembic migrations with async or sync support
- Authentication - JWT tokens + bcrypt + user management endpoints
- Background Tasks - Celery + Redis + task monitoring with Flower
- Advanced Logging - Loguru + structured logging + log rotation
- Docker Ready - Complete containerization with docker-compose setup
- Modern Python - Type hints, Pydantic v2, Python 3.8+ support
Installation
pip install fastapi-project-starter
Quick Start
Interactive Mode (Recommended)
fastapi_generator new create my_test_app -i
Usage
fastapi_generator [COMMAND] [OPTIONS]
Commands:
new Create a new FastAPI project
version Show current version
Options:
--help Show help for the CLI or any subcommand
After Generation
Navigate and setup:
cd project_name
make install
make dev # Build the docker containers
make migrate # Run initial migrations
Access your API:
- API: http://localhost:8000
- Docs: http://localhost:8000/docs
- Flower: http://localhost:5555
- Mailpit: http://localhost:8025
- Traefik Dashboard: http://localhost:8080
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
FastAPI Project Starter - From zero to production-ready FastAPI in seconds!
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_project_starter-1.2.0.tar.gz.
File metadata
- Download URL: fastapi_project_starter-1.2.0.tar.gz
- Upload date:
- Size: 27.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d21e1daa5a8950f1918590157c4e7241db77d09c9b2408abfd697f381df3976
|
|
| MD5 |
86c15707951b1ea361d974153a2e1f34
|
|
| BLAKE2b-256 |
30f659f120eb014c39039457a205e7b2a7d83187344d644b75d9eaae8b7e684e
|
File details
Details for the file fastapi_project_starter-1.2.0-py3-none-any.whl.
File metadata
- Download URL: fastapi_project_starter-1.2.0-py3-none-any.whl
- Upload date:
- Size: 46.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b520ce235037c913b03435d8dbb58a807c9dca6d3fbb3a684ff003889326724
|
|
| MD5 |
a40f401c305a42f7d9eae50619550e27
|
|
| BLAKE2b-256 |
c0c6caf33be4cd2a3bc24794516c2d6d9c5fd5f4a76d3954ab1b0eb5125b3329
|