fastapi /fastapi
FastAPI framework, high performance, easy to learn, fast to code, ready for production
★ 104,607⑂ 10,208👁 786⑃ 6,596● 3,555▤ 344◈ 6,115
104,607
stars
+21
10,208
forks
786
watchers
6,596
prs
3,555
issues
344
releases
6,115
discussions
README
FastAPI framework, high performance, easy to learn, fast to code, ready for production
---
Documentation: https://fastapi.tiangolo.com
Source Code: https://github.com/fastapi/fastapi
---
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python based on standard Python type hints.
The key features are:
Fast: Very high performance, on par with NodeJS and Go (thanks to Starlette and Pydantic). One of the fastest Python frameworks available.
Fast to code: Increase the speed to develop features by about 200% to 300%.
Fewer bugs: Reduce about 40% of human (developer) induced errors.
Intuitive: Great editor support. Completion everywhere. Less time debugging.
Easy: Designed to be easy to use and learn. Less time reading docs.
Short: Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs.
Robust: Get production-ready code. With automatic interactive documentation.
Standards-based: Based on (and fully compatible with) the open standards for APIs: OpenAPI (previously known as Swagger) and JSON Schema.
estimation based on tests conducted by an internal development team, building production applications.
Sponsors
Keystone Sponsor
Gold Sponsors
Silver Sponsors
Other sponsors
Opinions
"_[...] I'm using FastAPI a ton these days. [...] I'm actually planning to use it for all of my team's ML services at Microsoft. Some of them are getting integrated into the core Windows product and some Office products._"
Kabir Khan - Microsoft (ref)
---
"_We adopted the FastAPI library to spawn a REST server that can be queried to obtain predictions. [for Ludwig]_"
Piero Molino, Yaroslav Dudin, and Sai Sumanth Miryala - Uber (ref)
---
"_Netflix is pleased to announce the open-source release of our crisis management orchestration framework: Dispatch! [built with FastAPI]_"
Kevin Glisson, Marc Vilanova, Forest Monsen - Netflix (ref)
---
"_If anyone is looking to build a production Python API, I would highly recommend FastAPI. It is beautifully designed, simple to use and highly scalable, it has become a key component in our API first development strategy and is driving many automations and services such as our Virtual TAC Engineer._"
Deon Pillsbury - Cisco (ref)
---
FastAPI mini documentary
There's a FastAPI mini documentary released at the end of 2025, you can watch it online:
Typer, the FastAPI of CLIs
If you are building a CLI app to be used in the terminal instead of a web API, check out Typer.
Typer is FastAPI's little sibling. And it's intended to be the FastAPI of CLIs. ⌨️ 🚀
Requirements
FastAPI stands on the shoulders of giants:
Starlette for the web parts.
Pydantic for the data parts.
Installation
First, install uv, and then add FastAPI to your project:
console
$ uv add "fastapi[standard]"
--- 100%
Note: Make sure you put "fastapi[standard]" in quotes to ensure it works in all teTop issues
Discussions
#16703Database session from a yield dependency is already closed inside a BackgroundTask1 comments · 2026-11-07#16702Async endpoint blocks the whole server while calling an external API with requests1 comments · 2026-11-07#16691FastAPI Hexagonal Architecture0 comments · 2026-11-06#16688Clarify extra="forbid" behavior with multiple query parameter models2 comments · 2026-11-05#16687ServerSentEvent(data=BaseModel) ignores field aliases (by_alias=True) and response_model_* serialization options3 comments · 2026-11-05#16686_IncludedRouter repr includes its route caches, so it grows with the whole route tree after the first request2 comments · 2026-11-05#16678Proposal: Test coverage for Decimal integer type preservation, direct Enum encoding, and unmodeled route responses2 comments · 2026-11-04#16674Query default_factory typing excludes Pydantic data-aware factories2 comments · 2026-11-03
Latest release
0.162.2 0.162.2 2026-11-07FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx library-skills in your project. See Develop with AI. Docs 📝 Add FastAPI Cloud guidance to the FastAPI skill. PR 16697 by @tiangolo. 📝 Add guidance for developing FastAPI apps with AI. PR 16695 by @tiangolo. Internal 🔧 Add an agent skills note to GitHub releases. PR 16696 by @tiangolo.
相关报道 (7)
news.lavx.huNicholas Axel 使用 Docker Compose 和 FastAPI 构建容器化遥测平台2026-11-10Pasquale Pillitteri每家AI初创公司都在用的开源技术栈:7个GitHub仓库(附真实star数)2026-08-13电子工程专辑EE Times China幽默,一个 GitHub 项目叫“马尾辫”,还能帮你省 token2026-06-2251CTO2026 年最火的九个 Python 库2026-04-07www.me.news60个精选Skills、工作流与开源项目,最全Claude进阶清单2026-03-30InfoQ-CN企业 Agent 如何〝可信”?|InfoQ《极客有约》_AI&大模型_InfoQ 中文站_InfoQ精选视频2025-12-2636氪AI证件照神器登GitHub热榜,内置考研考公签证模版一键生成2024-09-04
News & coverage (10)
Hacker NewsShow HN: FastAPI LSP/VSCode Extension POC▲ 3 · 0 comments · 2025-11-11news.lavx.huFastAPI Developers Gain Production-Ready JWT Security with Redis Session Tracking2026-10-30news.lavx.huOpen-source ATS resume scorer runs on FastAPI, Celery, and Docker2026-10-30vercelBuild an agentic app in FastAPI with OpenAI Agents API and Vercel Sandbox2026-09-10InfoWorldGet started with FastAPI2023-08-23Pasquale PillitteriThe Open Source Stack Every AI Startup Uses: 7 GitHub Repos (With Real Star Counts)2026-08-13KDnuggets10 GitHub Repositories for Web Development in Python2026-06-09KDnuggets10 GitHub Repositories to Master FastAPI2026-05-11Towards Data ScienceCode Less, Ship Faster: Building APIs with FastAPI2026-03-02Augment CodeFastAPI AI Development Tools: Developer Guide for 20252025-10-10