An open API service indexing awesome lists of open source software.

https://github.com/systemlight/t-fastapi

:lock: :package: FastApi framework back end development template.【基于FastApi框架的后端开发模板】
https://github.com/systemlight/t-fastapi

fastapi python38 template

Last synced: 8 months ago
JSON representation

:lock: :package: FastApi framework back end development template.【基于FastApi框架的后端开发模板】

Awesome Lists containing this project

README

          

# T-fastapi

fastapi项目开发模板

## 用法

1. 运行项目

```shell
pipenv install
uvicorn main:app --host 0.0.0.0 --port 5000 --reload
```

2. 反向生成ORM模型

```shell
# sqlite
sqlacodegen --outfile models.py sqlite:///database.db

# mysql
sqlacodegen --outfile models.py mysql+pymysql://root:123456@127.0.0.1:3306/test?charset=utf8
```

## License

T-fastapi uses the MIT license, see LICENSE file for the details.