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
โ”‚   โ”œโ”€โ”€ core/            # Configuration
โ”‚   โ””โ”€โ”€ modules/         # Feature-based modules
โ”‚       โ””โ”€โ”€ users/       # Example module
โ”‚           โ”œโ”€โ”€ routes.py
โ”‚           โ”œโ”€โ”€ models.py
โ”‚           โ”œโ”€โ”€ schemas.py
โ”‚           โ””โ”€โ”€ services.py
โ”œโ”€โ”€ 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.3.tar.gz (5.5 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.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for fastapi_pro_temp_generator-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9a3a257e83c83b1a90561b54652115815139653d351557c365f24ca46544d720
MD5 34b0fe5734b6c45f3d937920b57ade18
BLAKE2b-256 01208d143142a37c086e601e2f2af4f4d829784e286ff69eb376d20df3133e0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_pro_temp_generator-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7da6add52cc3230003f9d402a1fe01959bd926754fc26a6ed6db79cbaa755af2
MD5 2c4261d7567286d7db77945ec7aaf648
BLAKE2b-256 52466a2b2c91f304ab4605d366288c9bdbef4dcf2710f79ae53035b3b71ada00

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