FastAPI vs Flask
In 1,621 Python projects set up for AI coding agents, FastAPI is a dependency in 466 (28.7%) and Flask in 106 (6.5%): FastAPI is 4.4× as common. Among repos created in the last 90 days that use a http servers and apis tool, FastAPI is in 83.3% and Flask in 13.9%, against 73.3% and 17.0% of older ones. 18 projects list both, often a sign of a migration or of a monorepo with several apps.
HTTP servers and APIs PyPI Updated Nov 17, 2026
Side by side
| FastAPI | Flask | |
|---|---|---|
| Agent projects that use it | 466 | 106 |
| Rank in http servers and apis | #2 | #7 |
| In new repos with a http servers and apis tool (last 90 days) | 83.3% | 13.9% |
| In older repos with one | 73.3% | 17.0% |
| Downloads, last 7 days | 133M | 40.3M |
| GitHub stars | 105K | 75.2K |
| Last push to its repo | Nov 16, 2026 | Oct 30, 2026 |
| License | MIT | BSD-3-Clause |
| Funding | — | — |
| Projects that list both | 18 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from PyPI.
By coding agent
| Projects set up for | Python repos | FastAPI | Flask |
|---|---|---|---|
| Claude Code | 782 | 27.4% | 5.9% |
| GitHub Copilot | 805 | 30.9% | 7.1% |
| Cursor | 548 | 31.6% | 6.0% |
| Gemini CLI | 83 | 34.9% | 0% |
| OpenAI Codex | 78 | 24.4% | 6.4% |
| OpenCode | 53 | 28.3% | 0% |
| OpenClaw | 104 | 31.7% | 12.5% |
| Devin Desktop | 60 | 28.3% | 0% |
Share of the Python repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
FastAPI
High-performance Python web framework with automatic API docs and async support.
Most often used with it:
| Uvicorn | 92.3% of its projects |
|---|---|
| Pydantic | 63.7% of its projects |
| python-dotenv | 48.3% of its projects |
| python-multipart | 36.3% of its projects |
| Requests | 33.0% of its projects |
pip install fastapi
Flask
Lightweight Python web framework for building web applications and APIs.
Most often used with it:
| Requests | 69.8% of its projects |
|---|---|
| python-dotenv | 51.9% of its projects |
| NumPy | 44.3% of its projects |
| PyYAML | 38.7% of its projects |
| pandas | 29.2% of its projects |
pip install flask
More matchups
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.