Pre-release
This release is a pre-release and may not be stable for production use.
🚀 FastAPI Starter CLI
A CLI tool for generating FastAPI projects with predefined structure and automatic configuration.
✨ Main Features
📁 Project Generation
- Create new project with predefined structure
- Initialize project in existing directory
- Automatic file and directory generation
🛢️ Multi-Database Support
- PostgreSQL
- MySQL/MariaDB
- SQL Server
- Oracle
- Automatic connection configuration
⚙️ Automatic Configuration
- Python virtual environment
- Custom requirements.txt
- Environment variables (.env)
- Pydantic Settings
- SQLModel ORM
🔧 Additional Features
- Alembic migrations (optional)
- Base Repository for CRUD (optional)
- Modular and scalable structure
- FastAPI best practices integration
🚀 Main Commands
# Create new project
fastapi start create-project
# Initialize in current directory
fastapi start init-project
# Show version
fastapi cli version
📦 Generated Structure
project/
├── src/
│ ├── controller/ # API Controllers
│ │ └── __init__.py
│ ├── service/ # Business Logic
│ │ └── __init__.py
│ ├── repository/ # Data Access
│ │ └── __init__.py
│ ├── model/ # Domain Models
│ │ ├── entity/ # SQLModel Entities
│ │ │ └── __init__.py
│ │ ├── enum/ # Enumerations
│ │ │ └── __init__.py
│ │ └── __init__.py
│ ├── dto/ # Data Transfer Objects
│ │ └── __init__.py
│ ├── config/ # Configuration
│ │ ├── settings.py
│ │ └── __init__.py
│ ├── db/ # Database Config
│ │ ├── database.py
│ │ └── __init__.py
│ ├── main.py # Entry Point
│ └── __init__.py
├── test/ # Unit Tests
│ └── __init__.py
├── .env # Environment Variables
├── requirements.txt # Dependencies
└── README.md # Documentation
📦 Optional Packages
- Alembic - SQL Migrations
- SQLAlchemy Base Repository - Base CRUD
⚙️ Requirements
- Python 3.8+
- pip (package manager)
- Compatible database installed
🚀 Installation
pip install fastapi-starter-cli
📝 License
MIT License
👤 Author
betooo
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_starter_cli-0.1.0.dev0.tar.gz.
File metadata
- Download URL: fastapi_starter_cli-0.1.0.dev0.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.0.1 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7580d1edf0e0a53ef94cdcc4297637f62d9489eb986ce7aabd6b9a9f26552855
|
|
| MD5 |
e98e16664efb11d973c0fef4a8dcfb0c
|
|
| BLAKE2b-256 |
5d3dabc44716ef3219fb0ded97085b02a438e46f42410a3d06ba9b48cba96aa3
|
File details
Details for the file fastapi_starter_cli-0.1.0.dev0-py3-none-any.whl.
File metadata
- Download URL: fastapi_starter_cli-0.1.0.dev0-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.0.1 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d7264108e027299caca68577d4e012d9e7c53317ba27b739ae881f2c4da797e
|
|
| MD5 |
de83d9326f1baf12ca839d7f5ccec808
|
|
| BLAKE2b-256 |
378b259030913df6f7c0760ec8b845d53b83931c1181fd6d9f0816ee13a18943
|