Skip to main content
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

fastapi_starter_cli-0.1.0.dev0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

fastapi_starter_cli-0.1.0.dev0-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_starter_cli-0.1.0.dev0.tar.gz.

File metadata

File hashes

Hashes for fastapi_starter_cli-0.1.0.dev0.tar.gz
Algorithm Hash digest
SHA256 7580d1edf0e0a53ef94cdcc4297637f62d9489eb986ce7aabd6b9a9f26552855
MD5 e98e16664efb11d973c0fef4a8dcfb0c
BLAKE2b-256 5d3dabc44716ef3219fb0ded97085b02a438e46f42410a3d06ba9b48cba96aa3

See more details on using hashes here.

File details

Details for the file fastapi_starter_cli-0.1.0.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_starter_cli-0.1.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d7264108e027299caca68577d4e012d9e7c53317ba27b739ae881f2c4da797e
MD5 de83d9326f1baf12ca839d7f5ccec808
BLAKE2b-256 378b259030913df6f7c0760ec8b845d53b83931c1181fd6d9f0816ee13a18943

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0.dev0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page