cookiecutter-fastapi

arthurhenriqueMIT长期未更新

用 Cookiecutter 一键生成 FastAPI 项目骨架,内置机器学习、uv 依赖管理、GitHub Actions 和 Pytest,省去从零搭工程的时间。

Cookiecutter template for FastAPI projects using: Machine Learning, uv, Github Actions and Pytests

v1.2.0发布于 2023-08-05 17:43 UTC709star75fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
pip install cookiecutter
cookiecutter gh:arthurhenrique/cookiecutter-fastapi
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用 cookiecutter 一键生成带机器学习、uv 和 CI 的 FastAPI 项目骨架

用 Cookiecutter 一键生成 FastAPI 项目骨架,内置机器学习、uv 依赖管理、GitHub Actions 和 Pytest,省去从零搭工程的时间。

核心能力

  • 基于 Jinja2 模板生成 FastAPI 项目目录与文件
  • 内置机器学习相关项目结构
  • 集成 uv 作为依赖与包管理工具
  • 自带 GitHub Actions 工作流配置
  • 预置 pytest 测试脚手架

容易踩的坑

需先自行安装 cookiecutter CLI 才能生成项目;模板从 GitHub 远程拉取,需保证网络可访问该仓库;README 未说明 uv 是否需预先安装

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v1.2.0
  1. v1.2.0最新正式版2023-08-05 · 2023-08-05 17:43 UTC

    What's Changed

  2. v1.0.12023-01-23 · 2023-01-23 13:59 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/arthurhenrique/cookiecutter-fastapi/compare/v1.0.0...v1.0.1

  3. v1.0.02022-12-18 · 2022-12-18 02:25 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/arthurhenrique/cookiecutter-fastapi/compare/v0.0.2...v1.0.0

  4. v0.0.22022-06-11 · 2022-06-11 17:33 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/arthurhenrique/cookiecutter-fastapi/compare/v0.0.1...v0.0.2

  5. v0.0.1first release2020-10-04 · 2020-10-04 02:46 UTC

    这个版本没有写更新说明。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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
    

    Hands On

    Example