Skip to main content

FastAPI Generator

A simple CLI tool to generate FastAPI project structure with best practices, ready-to-use configuration, and organized folder structure.

Installation

# Install from PyPI
pip install fastapi-project-creator

Or install directly from GitHub

pip install git+https://github.com/raihanhd12/fastapi-project-creator.git

Note: Requires Python 3.7 or higher.

Create a new FastAPI project

create-fastapi-app my-project-name

This will generate a complete FastAPI project structure with the following features:

  • Organized directory structure following best practices
  • Pre-configured API router setup with controllers and services
  • Database connection with SQLAlchemy
  • Environment variable configuration with host and port settings
  • Ready-to-use project structure with proper entry point
my-project-name/
├── app/
│ ├── api/
│ │ ├── endpoints/
│ │ │ └── **init**.py
│ │ ├── **init**.py
│ │ └── api.py
│ ├── controllers/
│ │ ├── **init**.py
│ │ └── base_controller.py
│ ├── core/
│ │ ├── **init**.py
│ │ └── config.py
│ ├── db/
│ │ ├── **init**.py
│ │ └── session.py
│ ├── models/
│ │ └── **init**.py
│ ├── schemas/
│ │ └── **init**.py
│ ├── services/
│ │ ├── **init**.py
│ │ └── base_service.py
│ ├── utils/
│ │ └── **init**.py
│ ├── **init**.py
│ └── main.py
├── tests/
├── .env
├── .gitignore
├── main.py
├── requirements.txt
└── README.md

Development

To contribute to this project:

Clone the repository

git clone https://github.com/raihanhd12/fastapi-project-creator.git
cd fastapi-project-creator

Install in development mode

pip install -e .

Make your changes and test them with

create-fastapi-app test-project

License MIT For more information, visit the project homepage. To report issues, please use the issue tracker.

Metadata

Release files for fastapi-project-creator 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastapi-project-creator 0.2.2
File Size Uploaded
fastapi_project_creator-0.2.2.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-project-creator 0.2.2
File Interpreter ABI Platform
fastapi_project_creator-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 kB

Release files / fastapi_project_creator-0.2.2.tar.gz

Download URL fastapi_project_creator-0.2.2.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
eaff8851265f199b92721c66989b58ec630061d994b3e3d0737e2b4b939b6d10
BLAKE2b-256 checksum
How to use checksums
e4637a9f0dac539d84407f9565eaa43a7539d61f9737b24770f1b04fd7abf025
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.6

Release files / fastapi_project_creator-0.2.2-py3-none-any.whl

Download URL fastapi_project_creator-0.2.2-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9859d2d98faeff8bffada7902b5a856c8a7692ef0537ddfb4dff7e27e1012250
BLAKE2b-256 checksum
How to use checksums
0589d53efea2068b7ec679731d259fc43723a94f1cf44c5a39ecca3afdb173aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release 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