Skip to main content

A CLI tool to generate file structure for FastAPI projects.

Project description

https://badge.fury.io/py/your-package-name.svg https://static.pepy.tech/badge/fastapi-blueprint

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:

  1. Fork the repository.

  2. Create a feature branch: git checkout -b feature-name

  3. Commit your changes: git commit -m 'Add feature-name'

  4. Push to the branch: git push origin feature-name

  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_blueprint-1.0.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

fastapi_blueprint-1.0.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

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

Hashes for fastapi_blueprint-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6db51c717777fa9e98ede157cbac60743c3ec93a87a74fed3f5332358ed00b6b
MD5 8833d303cea231897249a8956c13cc98
BLAKE2b-256 acbb3e3faa45d64809976d96222c9715d28084ab1bdeeb6065cc0f853fccb498

See more details on using hashes here.

File details

Details for the file fastapi_blueprint-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_blueprint-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a18252ac2c5aabce44366796f87c0d14ade54a157ac3b37c9bddc96694da7524
MD5 e47c392b6dae004186380b804751b02c
BLAKE2b-256 abb0e343143cbae0fe388967aa1b28dc26c6643f4dcfc135a9abcc6c69e9677c

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