A CLI tool to generate file structure for FastAPI projects.
Project description
FastAPI Blueprint is a command-line tool designed to help developers quickly generate a structured project file system for FastAPI applications. With this tool, you can jumpstart your FastAPI project with a clean, modular, and scalable architecture.
Features
Automatically generate directories and files for a standard FastAPI project.
Includes support for: - routers - models - schemas - services - utils
Customizable templates to suit your project needs.
Simple and intuitive CLI commands.
Installation
To install FastAPI Blueprint, use pip:
pip install fastapi-blueprint
Usage
Generate a New Project Structure
Run the following command to create a new FastAPI project:
fastapi-blueprint init my_project
This will generate the following structure:
my_project/
├── app/
│ ├── routers/
│ ├── models/
│ ├── schemas/
│ ├── services/
│ ├── utils/
│ └── main.py
└── requirements.txt
Adding Components
You can add individual components like routers or models:
fastapi-blueprint add router users
This will create a new router file under the routers/ directory.
Customize Templates
FastAPI Blueprint allows you to define your own templates for files and structures. Simply modify the default templates in the ~/.fastapi-blueprint/templates/ directory.
Contributing
Contributions are welcome! If you’d like to contribute:
Fork the repository.
Create a feature branch: git checkout -b feature-name
Commit your changes: git commit -m 'Add feature-name'
Push to the branch: git push origin feature-name
Open a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Acknowledgments
FastAPI Blueprint is inspired by the simplicity and scalability of FastAPI itself. Thanks to the FastAPI community for building such an amazing framework!
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_blueprint-1.0.2.tar.gz.
File metadata
- Download URL: fastapi_blueprint-1.0.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6db51c717777fa9e98ede157cbac60743c3ec93a87a74fed3f5332358ed00b6b
|
|
| MD5 |
8833d303cea231897249a8956c13cc98
|
|
| BLAKE2b-256 |
acbb3e3faa45d64809976d96222c9715d28084ab1bdeeb6065cc0f853fccb498
|
File details
Details for the file fastapi_blueprint-1.0.2-py3-none-any.whl.
File metadata
- Download URL: fastapi_blueprint-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a18252ac2c5aabce44366796f87c0d14ade54a157ac3b37c9bddc96694da7524
|
|
| MD5 |
e47c392b6dae004186380b804751b02c
|
|
| BLAKE2b-256 |
abb0e343143cbae0fe388967aa1b28dc26c6643f4dcfc135a9abcc6c69e9677c
|