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 'custom routes'
│── alembic.ini
│── models.py
│── schemas.py
│── middlewares/
│   ├── middleware.py  # Global middleware logic
│── routers/         # API route modules
│── settings/
│   ├── database.py  # Database configuration
│   ├── routing.py   # Router configurations
│── alembic/

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastbrick-0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 28d5e2822f0567a47d75f9f57e94c37080a61d0f25f4cbc87c071778b2e011b3
MD5 0660135bf5642839c54c3a77879e392a
BLAKE2b-256 5268eca70195f5ce67c66dcd1f64d55c03ca486bba0ff6965fd3eee91c74552a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastbrick-0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 41da371f91f5ce333533059733d4643271d27f9015008a4dc3221b0e684ad59c
MD5 9fa30407fdaee57e2e89cf99ef32ede9
BLAKE2b-256 445e2c52730bf7a041306662321c831fd6a9c0a1f6b6d0854c1bf2ec196103be

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