Metadata-Version: 2.1
Name: fastapi-manage
Version: 0.5.0
Summary: FastAPI template generation, database version management tools
Home-page: https://gitee.com/LeanDe/fastapi-manage
License: MIT
Author: lewei_huang
Author-email: auxpd96@163.com
Requires-Python: >=3.6,<4.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: Jinja2 (>=2.11.2,<3.0.0)
Requires-Dist: PyMySQL (>=0.9.3,<0.10.0)
Requires-Dist: SQLAlchemy (>=1.3.20,<2.0.0)
Requires-Dist: configobj (>=5.0.6,<6.0.0)
Requires-Dist: fastapi (>=0.62.0,<0.63.0)
Requires-Dist: typer (>=0.3.2,<0.4.0)
Requires-Dist: uvicorn (>=0.11.8,<0.12.0)
Project-URL: Repository, https://gitee.com/LeanDe/fastapi-manage
Description-Content-Type: text/markdown

# fastapi_manage

#### Project description
fastapi的模板生成，数据库版本管理项目。  
FastAPI template generation, database version management tools.  
Just like Django.  

fastapi+sqlalchemy  

#### Installation
```shell
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.
```shell
fastapi-manage startproject yourproject
```

##### makemigrations
Creates new migration(s) for project.
```shell
cd ./yourproject
python manage.py makemigrations
```

##### migrate
Updates database schema. Manages both apps with migrations and those without.
```shell
cd ./yourproject
python manage.py migrate
```

##### runserver
Start a Web server
```shell
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  

