mirror of
https://github.com/ycd/manage-fastapi.git
synced 2021-11-08 01:34:39 +03:00
437c8a66d3cae58bc000c9b185cd76d980990370
Managing FastAPI projects made easy
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.
Description
Languages
Python
94.6%
Dockerfile
5%
Shell
0.4%