valentierra / manage-fastapi

:rocket: Command-line management tool for FastAPI. Generating new FastAPI projects made easy.

Home Page:https://ycd.github.io/manage-fastapi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Managing FastAPI projects made easy

Build Travis (.com) Latest Commit
Package version


Documentation: View it on website

Source Code: View it on Github

Installation: pip install manage-fastapi


Features πŸš€

  • Creates customizable project boilerplate.

  • Creates customizable app boilerplate.

  • Handles the project structing for you.

  • Get fancy information about your Pydantic models.

  • Running development server.

Starting a new project

Example folder structure with two commands πŸ“‚

manage-fastapi startproject fastproject
manage-fastapi startapp v1
fastproject/
β”œβ”€β”€ __init__.py
β”œβ”€β”€ main.py
β”œβ”€β”€ core
β”‚   β”œβ”€β”€ models
β”‚   β”‚   β”œβ”€β”€ database.py
β”‚   β”‚   └── __init__.py
β”‚   β”œβ”€β”€ schemas
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚   └── schema.py
β”‚   └── settings.py
β”œβ”€β”€ tests
β”‚   β”œβ”€β”€ __init__.py
β”‚   └── v1
β”‚       β”œβ”€β”€ __init__.py
β”‚       └── test_v1.py
└── v1
    β”œβ”€β”€ api.py
    β”œβ”€β”€ endpoints
    β”‚   β”œβ”€β”€ endpoint.py
    β”‚   └── __init__.py
    └── __init__.py

Getting information about our Pydantic models.

manage-fastapi showmodels

With this command we are getting a fancy output of our models.

╔════════════════════════════════╗
β•‘ item.py                        β•‘
β•‘ -------                        β•‘
β•‘ ItemBase                       β•‘
β•‘ ItemCreate                     β•‘
β•‘ ItemUpdate                     β•‘
β•‘ ItemInDBBase                   β•‘
β•‘ Item                           β•‘
β•‘ ItemInDB                       β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
╔════════════════════════════════╗
β•‘ token.py                       β•‘
β•‘ --------                       β•‘
β•‘ Token                          β•‘
β•‘ TokenPayload                   β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Installation πŸ“Œ

pip install manage-fastapi

Release Notes πŸ“£

Latest Changes

0.1.52

  • Temporary fix for Path issue when running with uvicorn

0.1.51

  • Little update on API template

0.1.5

  • Added showmodels
  • Added runserver
  • Fix little bugs
  • Update docs

0.1.41

  • Quick fix for a little bug

0.1.4

  • Changed project architecture
  • Increased travis tests

0.1.3

  • Make database optional
  • Now Manage FastAPI has support for MongoDB, PostgreSQL, SQLite, MySQL, Tortoise ORM

0.1.2

  • Add tests
  • Fix and relocate success message
  • Add travis

0.1.1

  • Added documentation
  • Fixed typos
  • Additional response for successfuly creation.

0.1.0

  • Prototype of project with two functionalities.

License

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

About

:rocket: Command-line management tool for FastAPI. Generating new FastAPI projects made easy.

https://ycd.github.io/manage-fastapi/

License:MIT License


Languages

Language:Python 99.7%Language:Shell 0.3%