脚手架

通用工程

https://github.com/pyloong/cookiecutter-pythonic-project

  1. # 升级最新 pip
  2. pip install -U pip
  3. # 安装或升级 cookiecutter
  4. pip install -U cookiecutter
  5. # 使用 cookiecutter 加载项目模板,生成项目
  6. # 回车运行的时候,需要根据提示交互选择启用的功能。
  7. # 如果使用默认配置,则一路回车就可以。
  8. cookiecutter https://github.com/pyloong/cookiecutter-pythonic-project

flask工程

flask 推荐
https://github.com/cookiecutter-flask/cookiecutter-flask

  1. pip3 install cookiecutter
  2. cookiecutter https://github.com/cookiecutter-flask/cookiecutter-flask.git

image.png

flask 工程2

https://liqiang.io/book/the-way-to-flask/
https://github.com/liuliqiang/the-way-to-flask.git

flask rest

Real-life RESTful server example on Flask-RESTplus
https://github.com/frol/flask-restplus-server-example
image.png

flastapi-template

https://github.com/s3rius/FastAPI-template

cookiecutter-fatapi

https://github.com/arthurhenrique/cookiecutter-fastapi

flaskapi-sayhell

https://github.com/sususama5555/fastapi-sayhello

start-fastapi

  • 基于工程化思想构建,
  • 基于fastapi 构建

https://github.com/utmhikari/start-fastapi

fastapi 项目脚手架

https://gitee.com/wu_cl/fastapi_mysql_demo

Fastapi框架 【开源(自用)脚手架】

https://juejin.cn/post/7015994046405427207

docker-fastapi-demo

FastApi 简单入门,附生产级脚手架代码 https://www.modb.pro/db/103711
https://github.com/pylixm/docker-fastapi-demo

fastapi-beanie-jwt

  • async-odm beanie
  • fastapi

https://github.com/flyinactor91/fastapi-beanie-jwt

Manage FastAPI

https://github.com/ycd/manage-fastapi

  1. $ pip install manage-fastapi
  2. $ fastapi --help
  3. Usage: fastapi [OPTIONS] COMMAND [ARGS]...
  4. Managing FastAPI projects made easy!
  5. Options:
  6. --version Show the Manage FastAPI version information.
  7. --help Show this message and exit.
  8. Commands:
  9. run Run a FastAPI application.
  10. startapp Creates a FastAPI component.
  11. startproject Creates a FastAPI project.

awesome-fastapi-projects

基于 fastapi 的项目
https://github.com/Kludex/awesome-fastapi-projects

demo-flask-htmx

https://github.com/codecapsules-io/demo-flask-htmx

参考

https://exploreflask.com/en/latest/organizing.html
structure of a flask project https://lepture.com/en/2018/structure-of-a-flask-project
flask 架构模板 https://exploreflask.com/en/latest/organizing.html#organization-patterns
flask 大型项目 https://flask.palletsprojects.com/en/1.1.x/patterns/packages/