A simple CLI tool to generate a clean FastAPI project structure.
Project description
FastAPI Project Generator CLI
A lightweight, beginner-friendly CLI tool that creates a clean, ready-to-use FastAPI project structure instantly.
🚀 Features
- ✅ One-command bootstrapping: Start a FastAPI project in seconds.
- ✅ Opinionated structure: Follows best practices for organized code.
- ✅ Pre-configured: Generates
main.py, routes, config, tests,.env, and more. - ✅ Beginner Friendly: No complex configuration needed.
📦 Installation
# Clone the repository
git clone <repository-url>
cd fastapi-starter
# Install locally
pip install .
🛠️ Usage
Creating a new project is as simple as:
fastapi-starter my_awesome_app
This will create a my_awesome_app/ directory with the following structure:
my_awesome_app/
├── app/
│ ├── main.py # Entry point
│ ├── api/ # API routes
│ ├── core/ # Configuration
│ ├── models/ # Database models
│ ├── schemas/ # Pydantic models
│ └── services/ # Business logic
├── tests/ # Unit tests
├── .env # Environment variables
├── .gitignore
├── requirements.txt
└── README.md
🚀 Getting Started with the Generated Project
- Navigate to your new project:
cd my_awesome_app
- Install dependencies:
pip install -r requirements.txt
- Run the development server:
fastapi dev app/main.py
- Explore your API:
- Interactive docs: http://127.0.0.1:8000/docs
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 fastapi_pro_temp_generator-0.1.2.tar.gz.
File metadata
- Download URL: fastapi_pro_temp_generator-0.1.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa16888e3ee14b5b0f24d2a14cdd250c7fa5f6a8ebb04a9671d75aedd6457148
|
|
| MD5 |
37404f7151c87760f0ede77a5cbc8590
|
|
| BLAKE2b-256 |
f3f68b188d2d75e9e0d6ff1d1045d26ad5c6133aac7bc9f753309de181213955
|
File details
Details for the file fastapi_pro_temp_generator-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fastapi_pro_temp_generator-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7291a03a30aa8c00c22e421fded150e6383c74f5a4cc806f66e503d0407e5354
|
|
| MD5 |
3f682e54b3991fff3397e26ccd5a8fd8
|
|
| BLAKE2b-256 |
3050ac8fa6c9b924f898522a0e82bf67d6f3f72a9bec366bfdbe4ab29109369a
|