需先自行安装 cookiecutter CLI 才能生成项目;模板从 GitHub 远程拉取,需保证网络可访问该仓库;README 未说明 uv 是否需预先安装
cookiecutter-fastapi
arthurhenriqueMIT长期未更新用 Cookiecutter 一键生成 FastAPI 项目骨架,内置机器学习、uv 依赖管理、GitHub Actions 和 Pytest,省去从零搭工程的时间。
Cookiecutter template for FastAPI projects using: Machine Learning, uv, Github Actions and Pytests
pip install cookiecutter
cookiecutter gh:arthurhenrique/cookiecutter-fastapiREADME 未说明
用 cookiecutter 一键生成带机器学习、uv 和 CI 的 FastAPI 项目骨架
用 Cookiecutter 一键生成 FastAPI 项目骨架,内置机器学习、uv 依赖管理、GitHub Actions 和 Pytest,省去从零搭工程的时间。
核心能力
- 基于 Jinja2 模板生成 FastAPI 项目目录与文件
- 内置机器学习相关项目结构
- 集成 uv 作为依赖与包管理工具
- 自带 GitHub Actions 工作流配置
- 预置 pytest 测试脚手架
容易踩的坑
- v1.2.0最新正式版2023-08-05 · 2023-08-05 17:43 UTC
What's Changed
- fix(deps): update dependency fastapi to ^0.90.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/44
- chore(deps): update python docker tag to v3.11.2 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/45
- fix(deps): update dependency fastapi to ^0.91.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/46
- Bump ipython from 8.8.0 to 8.10.0 in /{{cookiecutter.project_slug}} by @dependabot in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/47
- fix(deps): update dependency fastapi to ^0.92.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/48
- fix(deps): update dependency fastapi to ^0.93.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/49
- fix(deps): update dependency uvicorn to v0.21.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/50
- fix(deps): update dependency fastapi to ^0.94.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/51
- fix(deps): update dependency uvicorn to v0.21.1 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/59
- fix(deps): update dependency scikit-learn to v1.2.2 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/57
- chore(deps): update dependency pylint to v2.17.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/58
- fix(deps): update dependency pydantic to v1.10.6 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/56
- fix(deps): update dependency fastapi to v0.94.1 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/55
- chore(deps): update dependency pytest to v7.2.2 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/54
- chore(deps): update dependency ipdb to v0.13.13 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/53
- chore(deps): update dependency autopep8 to v2.0.2 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/52
- fix(deps): update dependency fastapi to ^0.95.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/60
- fix(deps): update dependency pydantic to v1.10.7 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/62
- chore(deps): update dependency pylint to v2.17.1 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/61
- chore(deps): update python docker tag to v3.11.3 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/64
- chore(deps): update dependency pytest to v7.3.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/65
- fix(deps): update dependency loguru to ^0.7.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/66
- chore(deps): update dependency pylint to v2.17.2 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/63
- fix(deps): update dependency fastapi to v0.95.1 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/67
- chore(deps): update dependency pytest to v7.3.1 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/68
- chore: add credits by @arthurhenrique in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/69
- fix(deps): update dependency uvicorn to v0.22.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/72
- fix(deps): update dependency requests to v2.29.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/71
- chore(deps): update dependency pylint to v2.17.4 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/70
- fix(deps): update dependency requests to v2.30.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/73
- fix(deps): update dependency requests to v2.31.0 by @renovate in h
- v1.0.12023-01-23 · 2023-01-23 13:59 UTC
查看更新说明
What's Changed
- fix(deps): update dependency fastapi to ^0.89.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/40
- fix:
runmake target by @arthurhenrique in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/42
Full Changelog: https://github.com/arthurhenrique/cookiecutter-fastapi/compare/v1.0.0...v1.0.1
- v1.0.02022-12-18 · 2022-12-18 02:25 UTC
查看更新说明
What's Changed
- fix: jinja render and ci by @arthurhenrique in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/19
- fix(security): update packages and dependencies by @arthurhenrique in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/20
- Bump joblib from 0.15.1 to 1.2.0 in /{{cookiecutter.project_slug}} by @dependabot in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/21
- Configure Renovate by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/22
- chore(deps): update python docker tag to v3.11.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/24
- chore(deps): update dependency ipdb to ^0.13.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/23
- fix(deps): update dependency loguru to ^0.6.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/27
- fix(deps): update dependency fastapi to ^0.86.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/26
- chore(deps): update actions/cache action to v3 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/29
- fix(deps): update dependency uvicorn to v0.19.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/28
- chore(deps): update actions/checkout action to v3 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/30
- chore(deps): update actions/setup-python action to v4 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/31
- chore(deps): update dependency autopep8 to v2 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/32
- chore(deps): update dependency pytest to v7 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/33
- fix(deps): update dependency fastapi to ^0.87.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/34
- fix(deps): update dependency uvicorn to v0.20.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/35
- fix(deps): update dependency fastapi to ^0.88.0 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/36
- chore(deps): update python docker tag to v3.11.1 by @renovate in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/37
- Bump certifi from 2022.9.24 to 2022.12.7 in /{{cookiecutter.project_slug}} by @dependabot in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/38
- up to date by @arthurhenrique in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/39
New Contributors
- @dependabot made their first contribution in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/21
- @renovate made their first contribution in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/22
Full Changelog: https://github.com/arthurhenrique/cookiecutter-fastapi/compare/v0.0.2...v1.0.0
- v0.0.22022-06-11 · 2022-06-11 17:33 UTC
查看更新说明
What's Changed
- Sourcery Starbot ⭐ refactored arthurhenrique/cookiecutter-fastapi by @sourcery-ai-bot in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/9
- Create MIT LICENSE by @arthurhenrique in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/10
- chore: bump versions by @arthurhenrique in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/11
- chore: update to fix security warnings by @arthurhenrique in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/12
- chore: bumps poetry lock by @arthurhenrique in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/13
- fix(security): bumps uvicorn for websocket > 10 by @arthurhenrique in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/14
- Create CODE_OF_CONDUCT.md by @arthurhenrique in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/15
- chore: update by @arthurhenrique in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/16
- feat: add github actions by @arthurhenrique in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/17
New Contributors
- @sourcery-ai-bot made their first contribution in https://github.com/arthurhenrique/cookiecutter-fastapi/pull/9
Full Changelog: https://github.com/arthurhenrique/cookiecutter-fastapi/compare/v0.0.1...v0.0.2
- v0.0.1first release2020-10-04 · 2020-10-04 02:46 UTC
这个版本没有写更新说明。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
cookiecutter-fastapi
In order to create a template to FastAPI projects. :rocket:
Important
To use this project you don't need fork it. Just run cookiecutter CLI and voilà!
Cookiecutter
Cookiecutter is a CLI tool (Command Line Interface) to create an application boilerplate from a template. It uses a templating system — Jinja2 — to replace or customize folder and file names, as well as file content.
How can I install?
pip install cookiecutter
How can I generate a FastAPI project?
cookiecutter gh:arthurhenrique/cookiecutter-fastapi