Flask
Lightweight Python web framework for building web applications and APIs.
Used in agent projects
174
1.4% of 12,697 public repos built with AI coding agents
Rank in http servers and apis
#6 of 30
by use in those projects
Downloads
40.9M
PyPI, last 7 days, flask
GitHub stars
75K
last push Oct 7, 2026
How Flask is used
Flask is a dependency in 174 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.4%), #6 of 30 in http servers and apis. The most used alternative there is Express. Projects that use it most often also use Requests (73.0%), python-dotenv (65.5%), NumPy (43.7%).
Often used with Flask
| Requests | 73.0% of Flask projects · 13.7× more than average |
|---|---|
| python-dotenv | 65.5% of Flask projects · 10.0× more than average |
| NumPy | 43.7% of Flask projects · 11.4× more than average |
| Werkzeug | 36.2% of Flask projects · 63.0× more than average |
| solders | 33.9% of Flask projects · 10.2× more than average |
| pandas | 29.9% of Flask projects · 9.9× more than average |
| Gunicorn | 28.7% of Flask projects · 39.7× more than average |
| pytest | 27.6% of Flask projects · 10.6× more than average |
By coding agent
| GitHub Copilot | 2.0% of projects set up for it |
|---|---|
| Claude Code | 1.4% of projects set up for it |
| Cursor | 1.4% of projects set up for it |
| OpenAI Codex | 1.3% of projects set up for it |
Share of public repos configured for each agent that list Flask as a dependency.
Install
| Package | pip install flask |
|---|---|
| Packages counted | flask, flask-cors, flask-socketio, flask-sqlalchemy, flask-limiter, flask-login, flask-migrate, flask-wtf |
| Main stacks | Python (172), Next.js (2) |
| Example projects | Kaggle/kaggle-environments, bobmatnyc/claude-mpm, MDalamin5/End-to-End-Agentic-Ai-Automation-Lab, Sunanang/FNMessageBots, lyarinet/Samba-Manager |
Alternatives to Flask
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Express npm Fast, unopinionated minimalist web framework for Node.js. |
822 (6.5%) | 142M | 69.6K | MIT |
| Uvicorn pypi Lightning-fast ASGI server for running async Python web applications. |
544 (4.3%) | 13M | 11K | — |
| FastAPI pypi High-performance Python web framework with automatic API docs and async support. |
537 (4.2%) | 107M | 103K | — |
| cors npm Express/Node.js middleware for handling Cross-Origin Resource Sharing. |
422 (3.3%) | 86.8M | 6,195 | MIT |
| python-multipart pypi Streaming multipart parser for handling file uploads in Python web frameworks. |
217 (1.7%) | 92.8M | 536 | — |
| Hono npm Ultrafast web framework for edge runtimes built on Web Standards. |
136 (1.1%) | 73.9M | 32.5K | MIT |
| express-rate-limit npm Express middleware for rate limiting API requests by IP address. |
105 (0.8%) | 57.6M | 3,311 | MIT |
| GraphQL.js npm JavaScript implementation of GraphQL query language and runtime. |
105 (0.8%) | 50.6M | 20.3K | MIT |