Flask

A lightweight WSGI web framework for Python that scales from a single file to complex applications.

Framework
PyPI
v3.1.3
75,030 stars
BSD 3-Clause License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
83 /100 Excellent
Development Activity 76
Maintenance 60
Community 96
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
90 /100 Excellent
Architecture 90
Code Quality 92
Innovation 88
Learning Curve 90

Flask is a lightweight WSGI web application framework for Python, built as a thin, well-composed layer over Werkzeug (WSGI, routing, request/response) and Jinja (templating). It is designed to make getting started quick and easy while giving you the freedom to scale up to complex applications on your own terms.

Unlike batteries-included frameworks, Flask deliberately makes no assumptions about your database, project layout, or tooling. It gives you a solid core - routing, request context, sessions, blueprints, and a CLI - and lets you assemble the rest from a rich ecosystem of community extensions, making it a popular choice for everything from small services to large production applications.

What You Get

  • A decorator-based routing system built on Werkzeug for mapping URLs to Python view functions
  • Request and response objects with context globals (request, session, g) that stay thread- and coroutine-safe
  • Blueprints for splitting a large application into reusable, modular components
  • Integrated Jinja templating with automatic HTML escaping and template context helpers
  • A built-in CLI (flask run, flask shell) plus a development server, and a test client for writing tests

Common Use Cases

  • Building REST and JSON APIs for web and mobile clients
  • Serving server-rendered web applications with Jinja templates
  • Prototyping services quickly in a single file before scaling up
  • Backing microservices where you want a minimal, unopinionated core

Under The Hood

Architecture - Flask centers on the Flask application object in src/flask/app.py, which subclasses the shared App scaffold in src/flask/sansio/app.py and drives the WSGI callable. Incoming requests are dispatched through Werkzeug’s routing map to registered view functions, while an application and request context stack (src/flask/ctx.py) pushes context-local proxies - request, session, and g from src/flask/globals.py - for the duration of each request. Blueprints (src/flask/blueprints.py, src/flask/sansio/blueprints.py) let large apps register routes and resources modularly, and a sansio layer cleanly separates protocol-agnostic logic from WSGI-specific I/O.

Tech Stack - Flask is pure Python (requires 3.10+) and stands on four Pallets dependencies declared in pyproject.toml: Werkzeug (WSGI, routing, request/response), Jinja2 (templating), Click (the CLI), itsdangerous (signed sessions), blinker (signals), and MarkupSafe (escaping). Optional extras add asgiref for async views and python-dotenv for env loading. The project builds with Flit, pins its dev toolchain via uv (uv.lock), lints with Ruff, and tests across environments with tox.

Code Quality - The codebase is fully type-annotated (ships py.typed), consistently structured, and backed by a substantial pytest suite of 41 test modules under tests/ covering routing, contexts, blueprints, sessions, async, CLI, and templating. Pre-commit hooks, Ruff formatting/linting, and a dedicated type-check suite enforce quality, and the module layout keeps concerns well separated across small focused files.

API Design - Flask’s public API is a model of ergonomics: a five-line app.py with @app.route gets you a running server, and the surface grows predictably through decorators, blueprints, and app config. Naming is consistent and intention-revealing, the official documentation is thorough with a tutorial and worked examples (examples/tutorial, examples/celery), and the framework asks for almost no boilerplate to start while staying explicit about how requests flow.

Used by 30 apps in this directory

TypeScript
44%
Apache 2.0

OpenMetadata

AI Development · Analytics · Data Engineering

15,562

Open-source metadata platform that unifies data catalog, lineage, quality, and governance into a single searchable graph, with an MCP server that gives AI agents governed access to that context.

View details
93
Repo Health
85
Technical
74
Dependency
Built with
TypeScript 44%
Java 37%
Python 17%
Updated 5 days ago
Go
36%

OpenPanel

Devops · Hosting Control Panel

764

Docker-powered web hosting control panel that gives every user a fully isolated environment with dedicated web server, database, and networking — VPS-grade security on shared hardware.

View details
87
Repo Health
75
Technical
63
Dependency
Built with
Go 36%
HTML 30%
TypeScript 24%
Updated 6 days ago
Go
71%
Apache 2.0

OSV.dev

Security

3,001

Google's open-source vulnerability database that maps CVEs to exact package versions across 50+ ecosystems with a public API and data dumps.

View details
87
Repo Health
82
Technical
66
Dependency
Built with
Go 71%
Python 19%
Updated 6 days ago
JavaScript
50%
AGPL 3.0

QRev

AI Agents · CRM

364

Open source AI-first sales platform that replaces Salesforce with autonomous agents handling prospecting, outreach, and lead management at scale.

View details
39
Repo Health
68
Technical
64
Dependency
Built with
JavaScript 50%
Python 28%
TypeScript 14%
Updated 8 months ago
Python
45%
Other

Redash

Analytics · Data Engineering

28,849

Redash lets anyone connect to 35+ SQL and NoSQL data sources, write a query in the browser, and turn the result into a shared dashboard — no separate BI suite required.

View details
91
Repo Health
74
Technical
61
Dependency
Built with
Python 45%
JavaScript 29%
TypeScript 19%
Updated 1 weeks ago
TypeScript
98%
Apache 2.0

rowboat

AI Assistants · AI Development

18,060

Build, test, and deploy multi-agent AI workflows with a visual editor, RAG data sources, MCP tool integration, and a production-ready REST API.

View details
88
Repo Health
72
Technical
65
Dependency
Built with
TypeScript 98%
Updated 6 days ago
Python
82%
AGPL 3.0

SearXNG

Search

38,786

Privacy-first metasearch engine that aggregates results from 250+ search services — no tracking, no profiling, full control when self-hosted.

View details
80
Repo Health
82
Technical
73
Dependency
Built with
Python 82%
Updated 6 days ago
Python
76%
Apache 2.0

Second Me

AI Assistants · Productivity

15,687

Train a locally hosted AI twin on your own memories—then connect it to the world through a decentralized identity network.

View details
41
Repo Health
75
Technical
68
Dependency
Built with
Python 76%
TypeScript 19%
Updated 1 years ago
Python
59%
AGPL 3.0

Speakr

AI Assistants

4,112

Self-hosted AI transcription with speaker diarization, smart tagging, and multi-user collaboration — your recordings stay on your infrastructure.

View details
84
Repo Health
79
Technical
70
Dependency
Built with
Python 59%
HTML 21%
JavaScript 17%
Updated 6 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers