A CLI tool for generating FastAPI projects and apps
Project description
FastBrick 🚀
A simple CLI tool to generate FastAPI project structures.
Installation
Install FastBrick using:
pip install fastbrick
Run Server
Start the FastAPI server with:
uvicorn main:app --reload
Help Command
To see available options and commands:
fastbrick --help
Usage
Create a New Project Creates a new FastAPI project with a structured layout.
fastbrick create-project my_project
Create a New App Creates a new FastAPI app (router) with database settings.
fastbirck create-app my_app
Project Structure
myproject/
│── main.py # Entry point for FastAPI app
│── routes.py # Contains 'app routes'
│── models.py
│── schemas.py
│── middlewares/
│ ├── middleware.py # Global middleware logic
│── routers/ # API route modules
│── settings/
│ ├── config.py # Database configuration
│ ├── database.py # Database configuration
│ ├── routing.py # Router configurations
This structure ensures modularity and scalability for your FastAPI project. Adjust the folders and files as needed based on your project requirements.
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
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 fastbrick-0.5.1.tar.gz.
File metadata
- Download URL: fastbrick-0.5.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96a78761b416137911ce96353a85687ca9515675f5c2ade4ee3a34bca117a3c4
|
|
| MD5 |
bfc39568c3b03bc5da3f183d73c902e6
|
|
| BLAKE2b-256 |
18206217b562ee80b63f962ab7d82bb3846c617c2abc5c37d88565062dfcaa3f
|
File details
Details for the file fastbrick-0.5.1-py3-none-any.whl.
File metadata
- Download URL: fastbrick-0.5.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4a0212632910ff265a66356e244e9607fee6c7ea2d33b4d922cda1bf5e11ddb
|
|
| MD5 |
0bf4c8bdedcb55f49ed31760aaa7b758
|
|
| BLAKE2b-256 |
c0fd3f013f03a035edc8a16d7cd9288e7a9781d0cbe3ec0a1d2b0d16ed89e94e
|