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.tar.gz (2.2 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-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fastbrick-0.5.tar.gz
Algorithm Hash digest
SHA256 e956691f4848906047c3c2b82f9320f483712f1323c79a5b9f275a6196ea08cc
MD5 3af6ec71199bcda30315b84b5c1a9944
BLAKE2b-256 525d76057d76e876289466167cd044835636c2894c73c41cf2124bd40178fe38

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fastbrick-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6486c29dd1fbb51b33f9594a2680e13ece05fc8025624718b37af120ee00293c
MD5 3115279481b4ae3448e9301b3fb1dad2
BLAKE2b-256 c0ee1400ccfb3b25e138491da1ac4993da7613e0c32613c6d76877caacb34187

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