# pallets/flask

> Flask is a lightweight WSGI web application framework for building Python web applications. It is designed to make getting started quick and easy, and it can scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and is written in Python.

Source: https://github.com/pallets/flask
Indexed: commit 49943b5 on 2026-11-13 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Command-line tool
- Language: Python
- Stars: 75,111 at index time
- License: BSD-3-Clause
- Code health: 7.5/10, Good
- Last commit: 2026-10-30
- Contributors: 859

## How to use

Start the application with the flask command from the directory that contains app.py.
    flask run

## How it works

The src/flask directory holds the framework itself, including the application object, request handling, and the flask command. src/flask/app.py is the central file and defines the Flask application object, where routing and view execution are handled. src/flask/__init__.py is an entry point that exposes Flask for import, as the README example does with from flask import Flask. src/flask/__main__.py is another entry point for running the package as a module. src/flask/json is the JSON subsystem, which handles serialization and deserialization and routes helpers through the active application context when one is available. A WSGI server calls the application object, and the response it returns is sent back to the client.

- examples/javascript/js_example/__init__.py: entry point
- examples/tutorial/flaskr/__init__.py: entry point
- src/flask/__init__.py: entry point
- src/flask/__main__.py: entry point
- src/flask/app.py: entry point
Modules: tests, src, examples, docs, .devcontainer. 128 files, 13,377 lines, 1,046 symbols.

## Code health

- Score: 7.5/10 (Good)
- Trend: 7.2 on 2026-10-10, 7.5 on 2026-11-13, 7.5 on 2026-11-13
- Rank: #86 of 4,000+ indexed repos
- Hotspots: src/flask/app.py, tests/test_basic.py
- Lowest file: src/flask/app.py
- Dead code: 1 findings

## Maintenance

- Last commit 2026-10-30, first commit 2010-04-06, 3,832 commits
- 859 contributors, bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/pallets/flask/security

## More

- Page: https://repowise.dev/repo/pallets/flask
- Ask this codebase: https://repowise.dev/repo/pallets/flask/chat
- Docs: https://repowise.dev/repo/pallets/flask/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/pallets/flask
