项目作者: ycd

项目描述 :
:rocket: CLI tool for FastAPI. Generating new FastAPI projects & boilerplates made easy.
高级语言: Python
项目地址: git://github.com/ycd/manage-fastapi.git
创建时间: 2020-08-06T23:40:46Z
项目社区:https://github.com/ycd/manage-fastapi

开源协议:MIT License

下载



manage-fastapi



manage-fastapi Project generator and manager for FastAPI


manage_fastapi



Latest Commit






Package version





Source Code: View it on Github


Features 🚀

  • Creates customizable project boilerplate.

  • Creates customizable app boilerplate.

  • Handles the project structuring for you.

  • Optional Dockerfile generation.

  • Optional docker-compose generation for your project needs.

  • Optional pre-commit hook generation.

Installation 📌

  • Prerequisites
    • Python 3.7 +

Manage FastAPI can be installed by running

  1. pip install manage-fastapi

Getting started 🎈

Easiest way to start is using the defaults:

  1. fastapi startproject [name]

But there is an interactive mode!

  1. fastapi startproject [name] --interactive

Command line options 🧰

Manage FastAPI provides three different commands.

You can list them with

  1. fastapi --help

The idea is to have a highly customizable CLI, but at the same time a simple interface for new users. You can see the available options for startproject running fastapi startproject --help:

The other commands are already available but the current implementation is too shallow. More details about startapp and run commands will be provided once they have more functionalities, at the moment you can run startapp by just:

  1. fastapi startapp {name}

On the other hand, the run command expects you to have a startproject structure:

  1. fastapi run

License

This project is licensed under the terms of the MIT license.