fastapi项目开发模板
- 运行项目
pipenv install
uvicorn main:app --host 0.0.0.0 --port 5000 --reload
- 反向生成ORM模型
# sqlite
sqlacodegen --outfile models.py sqlite:https:///database.db
# mysql
sqlacodegen --outfile models.py mysql+pymysql:https://root:[email protected]:3306/test?charset=utf8
T-fastapi uses the MIT license, see LICENSE file for the details.