Flask vs Starlette
In 1,621 Python projects set up for AI coding agents, Flask is a dependency in 106 (6.5%) and Starlette in 82 (5.1%): Flask is 1.3× as common. Among repos created in the last 90 days that use a http servers and apis tool, Flask is in 13.9% and Starlette in 13.9%, against 17.0% and 12.9% of older ones. 5 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
| Flask | Starlette | |
|---|---|---|
| Agent projects that use it | 106 | 82 |
| Rank in http servers and apis | #7 | #8 |
| In new repos with a http servers and apis tool (last 90 days) | 13.9% | 13.9% |
| In older repos with one | 17.0% | 12.9% |
| Downloads, last 7 days | 40.3M | 169M |
| GitHub stars | 75.2K | 12.7K |
| Last push to its repo | Oct 30, 2026 | Nov 14, 2026 |
| License | BSD-3-Clause | BSD-3-Clause |
| Funding | — | — |
| Projects that list both | 5 | |
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 | Flask | Starlette |
|---|---|---|---|
| Claude Code | 782 | 5.9% | 6.3% |
| GitHub Copilot | 805 | 7.1% | 5.8% |
| Cursor | 548 | 6.0% | 4.0% |
| Gemini CLI | 83 | 0% | 8.4% |
| OpenAI Codex | 78 | 6.4% | 0% |
| OpenClaw | 104 | 12.5% | 5.8% |
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.
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
Starlette
Lightweight ASGI web framework for building Python APIs and web applications.
Most often used with it:
| Uvicorn | 98.8% of its projects |
|---|---|
| Pydantic | 85.4% of its projects |
| FastAPI | 76.8% of its projects |
| python-dotenv | 65.9% of its projects |
| python-multipart | 63.4% of its projects |
pip install starlette
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.