FastAPI
Source: https://github.com/mjhea0/awesome-fastapi at
38e525ea9557
License: CC0-1.0
Read the English original
This edition is an AI-assisted translation.
Awesome FastAPI | 
Section titled “Awesome FastAPI | ”与FastAPI有关的 令人惊叹的东西列表
FastAPI 是一种现代的高性能,电池包含的Python网络框架,是构建RESTful API的完美框架.
- FastAdmin - FastAPI(同时也是Flask和Django)的易用管理员仪表板,灵感来自Django Admin.
- FastAPI Admin - 功能管理面板,为您在数据上执行 CRUD 操作提供用户界面. 目前只与龟兹ORM合作.
- FastAPI Amis Admin - 高性能、高效和易于扩展的FastAPI管理框架。
- Piccolo Admin - 一个强大的现代管理图形界面,使用Piccolo ORM.
- SQLAlchemy Admin - 与 SQLAlchemy 模型合作的 FastAPI/Starlette 的管理面板.
- Starlette Admin - FastAPI/Starlette的管理框架,支持SQLAlchemy,SQLModel,MongoDB和ODMantic.
- AuthX - FastAPI的自定义认证和Oauth2管理.
- FastAPI Auth - 支持 OAuth2 密码流并带有 JWT 访问和刷新令牌的插件 。
- FastAPI Azure Auth - 您的 API 的 Azure AD 认证, 包含 单租户和多租户支持 。
- FastAPI Casbin Auth - 授权通过Casbin支持RBAC,ReBAC和ABAC等各种访问控制模型.
- FastAPI Cloud Auth - FastAPI和云认证服务的简单整合(AWS Cognitto, Auth0, Firebase认证).
- FastAPI Login - 账户管理和认证(基于 Flask-Login) (中文(简体) ).
- FastAPI JWT Auth - JWT 认证(基于 Flask-JWT-Extended) (中文(简体) ).
- FastAPI Permissions - 行级权限.
- FastAPI Security - 在 FastAPI 中作为依赖执行认证和授权 。
- FastAPI Simple Security - 通过路径操作可以管理箱外API密钥安全.
- FastAPI Users - 账户管理,认证,授权.
- FastAPI Zitadel Auth - OAuth2 使用 IAM 平台 Zitadel。 。 。 。
- FastAPI Guard - 速率限制,自动禁止IP,穿透攻击检测,白名单/黑名单(国家,IP,云提供商),用户代理过滤,地理定位,Redis集成以达到持久性,等等.
- secure - 使用 ASGI 中间软件和一个单一配置对象,在 FastAPI apps 中一致定义并应用 HTTP 安全头.
- Edgy ORM - 复杂的数据库变得简单。
- FastAPI SQLAlchemy - FastAPI 和 FastAPI 之间的简单集成 SQLAlchemy。 。 。 。
- Fastapi-SQLA - 用于FastAPI的SQLAlchemy扩展,支持pagination,asyncio,和pytest.
- FastAPIwee - 基于 REST API 创建的简单方法 PeeWee 模特儿们
- FastSQLA - Async SQLAlchemy 2.0+ 扩展,用于SQLModel支持的FastAPI,内置 pagination & more.
- GINO - 在SQLAlchemy核心顶部为Python Asyncio建造的轻量级同步ORM.
- ORM - 一个Aync ORM.
- ormar - Ormar是Async ORM,它使用Pydantic验证,可以直接用于FastAPI请求和响应中,因此你只剩下一组模型需要维护. 包括阿伦比奇移民。
- FastAPI Example - 与 Orma 一起使用 FastAPI 。
- Piccolo - 一个ASync ORM和查询构建器,支持Postgres和SQLite,带有电池(迁移,安全等).
- FastAPI Examples - 与皮科洛一起使用FastAPI.
- Tortoise ORM - 由Django启发的易于使用的 Ayncio ORM(对象关系地图).
- FastAPI Example - 神龟-ORM FastAPI整合的例子.
- Tutorial: Setting up Tortoise ORM with FastAPI
- Aerich - 神龟ORM迁移工具.
- Saffier ORM - 这是你唯一需要的Python ORM
- SQLModel - SQLModel(由Pydantic和SQLAlchemy提供动力)是一个库,用于与来自Python代码的SQL数据库交互,带有Python对象.
- asyncpgsa - 一个包裹周围 asyncpg 用于与 SQLAlchemy Core。 。 。 。
- Databases - Async SQL 查询构建器, 工作在顶端 SQLAlchemy Core 表达语言。
- PyPika - 一个SQL查询构建器,揭示了SQL语言的完全丰富.
组织管理单元
Section titled “组织管理单元”- Beanie - 基于 Motor 和 Pydantic,支持从框中移出数据和计划。
- MongoEngine - 一个文档-对象映射器( Think ORM,但用于文档数据库),用于与来自Python的MongoDB合作.
- Motor - MongoDB 同步 Python 驱动程序 。
- ODMantic - Asyncio MongoDB ODM 已整合到 Pydantic。 。 。 。
- PynamoDB - 亚马逊DynamoDB的pythonic接口.
- Pydantic-SQLAlchemy - 将 SQLAlchemy 模型转换为 Pydantic 模特儿们
- FastAPI-CamelCase - 使用 CamelCase JSON 支持 FastAPI Pydantic。 。 。 。
- CamelCase Models with FastAPI and Pydantic - 续集作者的配套博客文章.
- modern-di - 配有IoC容器和瞄准镜的依赖性注射框架 FastAPI integration。 。 。 。
- Wireup - FastAPI中零运行时间接运行的注入依赖; 共享网络, cli 或其他界面的依赖.
- FastAPI Code Generator - 从 OpenAPI 文件创建 FastAPI 应用程序, 允许 schema 驱动开发 。
- FastAPI Client Generator - 从 OpenAPI 光谱生成一个 mypy- and IDE 方便的 API 客户端 。
- FastAPI Cruddy Framework - FastAPI的配套图书馆旨在将Ruby在Rails,Ember.js或Sails.js上的开发生产力带到FastAPI生态系统.
- FastAPI MVC - 用于制作高质量FastAPI生产准备API的开发者生产力工具.
- FastAPI Profiler - 一个快速API的Joerick/pyincument的中间软件来检查您的服务性能.
- FastAPI Versioning - API版本化.
- Jupyter Notebook REST API - 运行您的 Jupyter 笔记本作为 RESTful API 端点。
- Manage FastAPI - 用于生成和管理FastAPI项目的CLI工具.
- msgpack-asgi - 自动 MessagePack 内容谈判。
- python-cqrs - 事件驱动架构框架与CQRS,Text Outbox,Saga 协奏曲,无缝FastAPI/FastStream集成.
- FastAPI Mail - 发送电子邮件和附件(个人和批量)的轻量级邮件系统。
- Apitally - API分析,监控,并请求登录FastAPI.
- ASGI Correlation ID - 请求身份记录中间软件 。
- FastAPI Cache - 一个简单的轻量级缓存系统.
- FastAPI Cache - 一个缓存FastAPI响应和函数结果的工具,支持Redis,Memcached,DynamoDB以及内幕后端.
- FastAPI Chameleon - 将变色龙模板语言的集成加入FastAPI.
- FastAPI CloudEvents - CloudEvents FastAPI的集成.
- FastAPI Contrib - 有观点的一套公用设备:页码、认证中间软件、权限、自定义例外处理器、MongoDB支持和OpenTracing中间软件。
- FastAPI FastCRUD——稳健的Aync CRUD业务和灵活的端点创建公用事业.
- FastAPI Events - FastAPI 和 Starlette 的同步事件调度/处理库 。
- FastAPI FeatureFlags - FastAPI的特性旗的简单执行.
- FastAPI Injectable - 在CLI工具,背景任务,工人等方面使用FastAPI的依赖性在路由处理器外注入.
- FastAPI Jinja - 将Jinja模板语言的集成加入FastAPI.
- FastAPI Lazy - 用 FastAPI 启动您的项目的懒惰包 。
- FastAPI Limiter - FastAPI的请求速率限制器.
- FastAPI Listing - 一个使用基于组件的架构来设计/构建 API 的库, 内置查询 paginator, 排序器, django- admin 喜欢过滤器 & 更多 。
- FastAPI MQTT - MQTT协议的扩展名 。
- FastAPI Opentracing - FastAPI的OpenTracing中件和数据库跟踪支持.
- FastAPI Pagination - FastAPI的插图 。
- FastAPI Plugins - Redis和调度插件.
- FastAPI ServiceUtils - 创建 API 服务的生成器 。
- FastAPI Shield - 通用 FastAPI 库,用于写入任何能够懒惰依赖注入的通用端点装饰器.
- FastAPI SocketIO - FastAPI和SocketIO的简单集成.
- FastAPI Utilities - 可重复使用的效用:基于类视图,响应推断路由器,周期性任务,计时中间软件,SQLAlchemy会话,OpenAPI光谱简化.
- FastAPI Viewsets - 贾戈·雷斯特 FastAPI框架启发的ViewSets,允许基于类的CRUD端点组织,自动进行路由注册.
- FastAPI Websocket Pub/Sub - 经典的酒吧/子公司模式使得网络上和云层上可以实时访问和扩展。
- FastAPI Websocket RPC - 在Websockets上,RPC(双向JSON RPC)使生产变得容易、有力和准备就绪。
- OpenTelemetry FastAPI Instrumentation - 图书馆提供FastAPI网络框架的自动和人工仪表,使用框架的应用程序所满足的http请求仪表.
- Prerender Python Starlette - Prerender的星座中间软件。
- Prometheus FastAPI Instrumentator - 用于 FastAPI 应用程序的可配置和模块化的Prometheus 仪器器.
- SlowApi - 限速器(基于 Flask-Limiter) (中文(简体) ).
- Starlette Context - 允许您存储并访问项目中任何位置的请求数据, 用于日志 。
- Starlette Exporter - 为FastAPI和Starlette再加一个Paletheus集成.
- Starlette OpenTracing - 开放跟踪支持Starlette和FastAPI.
- Starlette Prometheus - FastAPI和Starlette的普罗米修斯集成.
- Strawberry GraphQL - 基于数据类的 Python GraphQL 库.
- Pydantic Resolve - 将pydantic类通过引入分辨率和过程后悬钩,变成一个强大的可堆叠计算容器.
- Documentation - 综合文件。
- Tutorial - 官方教程介绍您如何使用 FastAPI 及其大部分特性, 一步一步地.
- Source Code - 主办于GitHub.
- Discord - 与其他 FastAPI 用户聊天.
- TestDriven.io FastAPI - 多篇FastAPI特有文章,侧重于开发和测试生产准备的RESTFLAPI,服务于机器学习模型,等等.
- Build The Next Generation Of Python Web Applications With FastAPI - 在这集里 Podcast Init FastAPI的创造者,Sebastián Ramirez 分享他建立FastAPI的动机 以及引擎盖下的工作方式
- FastAPI on PythonBytes - 不错的项目概况。
- FastAPI has Ruined Flask Forever for Me
- Why we switched from Flask to FastAPI for production machine learning - 深入审视你可能想要从弗拉斯克移动到FastAPI的原因.
- Async SQLAlchemy with FastAPI - 学会同步使用 SQLAlchemy 。
- Deploy Machine Learning Models with Keras, FastAPI, Redis and Docker
- Developing and Testing an Asynchronous API with FastAPI and Pytest - 与FastAPI,Postgres,Pytest,以及使用Test-Driven开发的Docker一起开发并测试一个同步的API.
- FastAPI for Flask Users - 学习 FastAPI 与 Flask 的边码比较.
- FastAPI Session Leak Detection - 诊断并修复长期运行的SQLAlchemy会话和连接池在生产中的耗尽.
- Implementing FastAPI Services – Abstraction and Separation of Concerns - FastAPI应用程序和服务结构,用于更可维护的代码库.
- Introducing FARM Stack - FastAPI, React, and MongoDB - 以完整的 FastAPI 网络应用程序堆栈开始 。
- Multitenancy with FastAPI, SQLAlchemy and PostgreSQL - 学习如何让 FastAPI 应用程序多租户准备就绪.
- Real-time data streaming using FastAPI and WebSockets - 学习如何从FastAPI直接将数据流到实时图表中.
- Running FastAPI applications in production - 使用具有生产部署系统的Gunicorn.
- Serving Machine Learning Models with FastAPI in Python - 使用FastAPI作为RESTful API在Python中快速方便地部署并服务机器学习模型.
- Streaming video with FastAPI - 学习如何服务视频流.
- Using Hypothesis and Schemathesis to Test FastAPI - 应用基于属性的测试到 FastAPI 。
- PyConBY 2020: Serve ML models easily with FastAPI - 从塞巴斯蒂安·拉米雷斯(Sebastian Ramirez)的演讲中,你将学会如何为你的ML模型和FastAPI轻松构建一个制作准备的网络(JSON)API,包括默认的最佳做法.
- PyCon UK 2019: FastAPI from the ground up - 这段谈话展示了如何用FastAPI从地面开始为数据库构建一个简单的REST API.
- Building a Stock Screener with FastAPI - 一个您用 FastAPI 构建一个基于网络的股票屏幕,您将被引入 FastAPI 的许多功能,包括 Pydantic 模型,依赖性注入,背景任务,以及 SQLAlchemy 集成.
- Building Web APIs Using FastAPI - 使用FastAPI来构建网络应用程序编程接口(RESTful API).
- FastAPI - A Web Framework for Python - 参见如何与 FastAPI 进行数字验证.
- FastAPI vs. Django vs. Flask - 2020年Python的最佳框架是什么? 哪个用Aync/await最好? 哪一个最快?
- Serving Machine Learning Models As API with FastAPI - 与 FastAPI 一起构建机器学习API.
- Test-Driven Development with FastAPI and Docker - 与Python,FastAPI,和Docker一起学习如何构建,测试,并部署文本汇总微服务.
- Modern APIs with FastAPI and Python - 旨在让您与 FastAPI 在云中快速创建新的 API 的课程 。
- Full Web Apps with FastAPI Course - 你会学会用FastAPI来构建完整的网络应用,相当于你对弗拉斯克或Django所能做的.
- The Definitive Guide to Celery and FastAPI - 学习如何在FastAPI应用程序中添加Celery,以提供同步的任务处理.
- FastAPI Best Practices - 在GitHub repo中收集最佳做法。
- FastAPI-Dishka-FastStream - 结合了FastAPI,dishka,快流,sqlalchemy,pydantic. 中国植物物种信息数据库.
- FastAPI Clean Example - 使用 FastAPI 创建的 Clean Architecture 后端示例 。
(平台即服务)
- AWS Elastic Beanstalk
- Fly(单位:千美元)tutorial, (中文).Deploy from a Git repo 页:1
- Google App Engine
- Heroku(单位:千美元)Step-by-step tutorial, (中文).ML model on Heroku tutorial 页:1
- Microsoft Azure App Service
(基础设施即服务)
框架:
计算服务:
- AWS Lambda(单位:千美元)example 页:1
- Google Cloud Functions
- Azure Functions
- Google Cloud Run(单位:千美元)example 页:1
- Full Stack FastAPI and PostgreSQL - Base Project Generator - 完整的 Stack FastAPI 模板 ,包括FastAPI,React,SQLModel,PostgreSQL,Docker,GitHub Actions,自动HTTPS,以及更多(由FastAPI的创建者开发),Sebastián Ramírez) (中文(简体) ).
- FastAPI and Tortoise ORM - 强大的但简单的模板,用于网页APIs w/ FastAPI(作为网页框架)和Ortoise-ORM(用于通过数据库工作而不会头痛).
- FastAPI + SQLAlchemy 2 + PostgreSQL Template - 以依赖性注射(modern-di),阿伦比克迁移(Alembic migration),以及一个 justfile工作流程为起始器.
- FastAPI Model Server Skeleton - Skeleton应用为机器学习模型服务 生产准备。
- cookiecutter-spacy-fastapi - 与FastAPI一起快速部署spanCy模型.
- cookiecutter-fastapi - FastAPI项目的Cookiecutter模板使用:机器学习,诗歌,Azure管道和pytest.
- openapi-python-client - 从OpenAPI生成现代FastAPI Python客户端(通过FastAPI).
- Pywork - Yeoman FastAPI应用的脚手架生成器.
- fastapi-gino-arq-uvicorn - 一个高性能的Aync REST API的模板,在Python中. fastAPI + GINO + Arq + Uvicorn (w/Redis和PostgreSQL).
- FastAPI and React Template - 使用 FastAPI, TypeScript, Docker, PostgreSQL 和 React 的全堆饼干切锅炉板.
- FastAPI Nano - 带有工厂图案架构的简单FastAPI模板.
- FastAPI template - 灵活,轻量级的FastAPI项目生成器. 它包括对SQLAlchemy,多个数据库,CI/CD,Docker,和Kubernetes的支持.
- FastAPI on Google Cloud Run - Boilerplate为API大楼配有FastAPI,SQLModel,以及Google Cloud Run.
- FastAPI with Firestore - Boilerplate for API building with FastAPI 和 Google Cloud Firestore (英语:Google Cloud Firestore) 为API大楼配音.
- fastapi-alembic-sqlmodel-async - 这是一个项目模板,它使用 FastAPI, Alembic 和 Async SQLModel 作为 ORM 。
- fastapi-starter-project - 一个使用 FastAPI, SQLModel, Alembic, Pytest, Docker, GitHub Actions CI 的项目模板 。
- Full Stack FastAPI and MongoDB - Base Project Generator - 全堆,现代网络应用生成器,包括FastAPI,MongoDB,Docker,Celery,React前端,自动HTTPS等.
- Uvicorn Poetry FastAPI Project Template - Cookiecutter 启动 FastAPI 应用程序的项目模板 。 在Kubernetes上使用Uvicorn ASGI服务器运行在多克容器中. 支持AMD64和ARM64CPU架构.
- FastAPI Agent Blueprint - DDD 分层模板,其中通用基类给出无锅炉板的Aync CRUD,域名在发现时自行注册,承诺前钩子在承诺时阻断跨层导入.
- inboard - Docker图像为您的 FastAPI 应用提供动力, 并帮助您更快的飞船.
- uvicorn-gunicorn-fastapi-docker - Docker图像与Uvicorn由Gunicorn管理,用于Python 3.7和3.6的高性能FastAPI网络应用,并带有性能自动调试.
- uvicorn-gunicorn-poetry - 使用Uvicorn工人运行Python网络应用程序的Gunicorn的Docker图像. 利用诗歌管理依附关系,建立虚拟环境. 支持AMD64和ARM64CPU架构.
- uvicorn-poetry - 在Kubernetes上运行Python网络应用程序时,带有Uvicorn ASGI服务器的Docker图像. 利用诗歌管理依附关系,建立虚拟环境. 支持AMD64和ARM64CPU架构.
- Astrobase - 简单,快速,安全的部署任何地方。
- Awesome FastAPI Projects - 组织使用FastAPI的项目列表.
- Bitcart - 面向商人、用户和开发商的平台,提供方便的设置和使用。
- Bali - 简化FastAPI和gRPC上的云原微服务开发基地.
- Bunnybook - 与FastAPI,React+RxJs,Neo4j,PostgreSQL,和Redis一起建设的小型社交网络.
- Coronavirus-tg-api - 用于跟踪全球冠状病毒(COVID-19,SARS-CoV-2)爆发的API.
- Dispatch - 管理安全事件。
- FastAPI CRUD 示例 :
- FastAPI with Observability - 央视FastAPI应用可观察性三根支柱: Traces (Tempo), Metrics (Prometheus), Logs (Loki) on Grafana 通过OpenTeleometry和OpenMetrics.
- FastAPI Websocket Broadcast - Websocket”广播”演示.
- FastAPI with Celery, RabbitMQ, and Redis - 最小的例子使用 FastAPI 和 Celery 与 RabbitMQ 用于任务队列, Redis 用于 Celery 后端, Flower 用于监视 Celery 任务.
- FuturamaAPI - 一个REST和GraphQL游乐场以最佳做法建造,提供WebSockets,SSE,回调,秘密消息等等.
- JeffQL - 使用 GraphQL 和 JWT 的简单认证和登录 API 。
- JSON-RPC Server - 基于FastAPI的JSON-RPC服务器.
- Mailer - 死便邮递员微信服务为静态网站服务.
- Markdown-Videos - API 用于生成缩略图以嵌入您的标记下的内容 。
- Nemo - 和尼莫一起生产
- OPAL (Open Policy Administration Layer) - 在 Open-Policy 顶部实时授权更新;使用 FastAPI, Typer, 和 FastAPI WebSocket pub/sub 构建.
- OSBot-Fast-API - 提供中间软件的Type-safe FastAPI包装器,HTTP事件跟踪,AWS Lambda集成,测试公用事业,以及Type Safe,Pydantic,和数据类之间的自动转换.
- Polar - 一个面向开发者的资金和货币化平台,由FastAPI,SQLAlchemy,阿伦比克和Arq共同建造.
- RealWorld Example App - mongo
- RealWorld Example App - postgres
- redis-streams-fastapi-chat - 一个简单的 Redis Streams 备份聊天应用程序,使用 Websockets, Asyncio 和 FastAPI/Starlette .
- Sprites as a service - 使用 Cellular Automata 生成个人 8 位的变形器 。
- Slackers - Slack webhokes API. (原始内容存档于2018-09-29).
- TermPair - 用端到端加密从浏览器查看并控制终端.
- Universities - API服务,获取全球+9600大学信息.
请通过检查赞助商来支持这个开源项目:
HagiCode
HagiCode 是面向项目开发的 AI 编码工作台:丰富、便捷的界面交互让规划、Agent 执行与项目工作更容易上手和跟进,带来更投入的开发体验。
丰富、便捷的界面交互,让规划、Agent 执行与项目工作更容易上手和跟进。
- 智能OpenSpec 工作流把意图转化为从提案、设计、任务到交付的可执行路径。
- 高效多 Agent 并行推进调研、实现与审阅,并支持多仓库变更和你熟悉的 Agent CLI。
- 有趣丰富、便捷的界面交互让规划、Agent 执行与项目工作更容易上手和跟进,带来更投入的开发体验。
下载 Windows 版
分享 HagiCode
让想法变成真正交付的软件。
HagiCode 是面向项目开发的 AI 编码工作台:用 OpenSpec 工作流规划变更,多 Agent 并行执行,再由 Hero Scenario 让进度一目了然,把想法变成真正交付的软件。
- 智能
- OpenSpec 工作流把意图变成从提案到交付的可执行路径。
- 高效
- 多 Agent 并行推进调研、实现与审阅。
- 有趣
- 丰富、便捷的界面交互,让规划、Agent 执行和项目工作更容易跟进。
© 2026 HagiCode | Powered By hagilight-starlight@0.21.0 | Branch: main | Commit: 745b50b | Built:

