Skip to main content

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

fastbrick-0.5.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

fastbrick-0.5.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file fastbrick-0.5.2.tar.gz.

File metadata

  • Download URL: fastbrick-0.5.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for fastbrick-0.5.2.tar.gz
Algorithm Hash digest
SHA256 2ff23b157d94d2ce3d4d2f81afb736a9ad937dd7b3c5584ff3681aa0bfed4df3
MD5 5d7860b9a6b35a23658745b442105310
BLAKE2b-256 df9daf4abedbd2b63f97dac830ce94a8996905d59445b0adafbec4d01b1dd717

See more details on using hashes here.

File details

Details for the file fastbrick-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: fastbrick-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for fastbrick-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5a46a88f5abd88812139ced5e3788bea24818f4b83012a30c13b9a6f2957142e
MD5 f835b782d500a5dc1a32d2ba8d395469
BLAKE2b-256 92981fc577ed0d7bd9bebdacb60f900b58b07392150733c7e21c1a15996bc238

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