Skip to main content

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

  1. Navigate to your new project:
    cd my_awesome_app
    
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Run the development server:
    fastapi dev app/main.py
    
  4. Explore your API:

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

fastapi_pro_temp_generator-0.1.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

fastapi_pro_temp_generator-0.1.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_pro_temp_generator-0.1.2.tar.gz.

File metadata

File hashes

Hashes for fastapi_pro_temp_generator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fa16888e3ee14b5b0f24d2a14cdd250c7fa5f6a8ebb04a9671d75aedd6457148
MD5 37404f7151c87760f0ede77a5cbc8590
BLAKE2b-256 f3f68b188d2d75e9e0d6ff1d1045d26ad5c6133aac7bc9f753309de181213955

See more details on using hashes here.

File details

Details for the file fastapi_pro_temp_generator-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_pro_temp_generator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7291a03a30aa8c00c22e421fded150e6383c74f5a4cc806f66e503d0407e5354
MD5 3f682e54b3991fff3397e26ccd5a8fd8
BLAKE2b-256 3050ac8fa6c9b924f898522a0e82bf67d6f3f72a9bec366bfdbe4ab29109369a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page