FastAPI template generation, database version management tools
Project description
fastapi_manage
Project description
fastapi的模板生成,数据库版本管理项目。
FastAPI template generation, database version management tools.
Just like Django.
fastapi+sqlalchemy
Installation
pip install fastapi-manage
Usage
startproject
Creates a fastapi project directory structure for the given project name in the current directory or optionally in the given directory.
fastapi-manage startproject yourproject
makemigrations
Creates new migration(s) for project.
cd ./yourproject
python manage.py makemigrations
migrate
Updates database schema. Manages both apps with migrations and those without.
cd ./yourproject
python manage.py migrate
runserver
Start a Web server
cd ./yourproject
python mange.py runserver
Options:
-h, --host [default:127.0.0.1]
-p, --port [default:8000]
-w, --workers [default:1]
--reload auto-reloader
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fastapi-manage-0.6.0.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for fastapi_manage-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36e2221a4c1a31c70c66d620d1e04ae2b899b81cca3d1ad5ea65535f34c2e2f3 |
|
MD5 | 7341b0ee6729dca5bd112d89a4b3fa9a |
|
BLAKE2b-256 | 41a9b89a35b4e42d8216c25342c66fa84409558e6df40bffefdd47491c470003 |