Giter VIP home page Giter VIP logo

manage-fastapi's Introduction

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.

manage-fastapi's People

Contributors

ycd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.