Metadata-Version: 2.1
Name: fastapi-manage
Version: 0.7.2
Summary: FastAPI template generation, database version management tools
License: MIT
Author: lewei_huang
Author-email: auxpd96@163.com
Requires-Python: >=3.6
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)
Requires-Dist: PyMySQL (>=0.9.3)
Requires-Dist: SQLAlchemy (>=1.3.20)
Requires-Dist: alembic (>=1.4.3)
Requires-Dist: configobj (>=5.0.6)
Requires-Dist: fastapi (>=0.62.0)
Requires-Dist: typer (>=0.3.2)
Requires-Dist: uvicorn (>=0.11.8)
Project-URL: github, https://github.com/auxpd/fastapi-manage
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  

