MCPcopy
hub / github.com/pallets/flask

github.com/pallets/flask @3.1.3 sqlite

repository ↗ · DeepWiki ↗ · release 3.1.3 ↗
1,512 symbols 4,446 edges 83 files 291 documented · 19%
README

Flask

Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja, and has become one of the most popular Python web application frameworks.

Flask offers suggestions, but doesn't enforce any dependencies or project layout. It is up to the developer to choose the tools and libraries they want to use. There are many extensions provided by the community that make adding new functionality easy.

A Simple Example

# save this as app.py
from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello():
    return "Hello, World!"
$ flask run
  * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

Donate

The Pallets organization develops and supports Flask and the libraries it uses. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.

Contributing

See our detailed contributing documentation for many ways to contribute, including reporting issues, requesting features, asking or answering questions, and making PRs.

Core symbols most depended-on inside this repo

register_blueprint
called by 66
src/flask/sansio/app.py
url_for
called by 43
src/flask/app.py
add_url_rule
called by 42
src/flask/sansio/app.py
setdefault
called by 35
src/flask/ctx.py
pop
called by 33
src/flask/ctx.py
get
called by 30
src/flask/ctx.py
app_context
called by 28
src/flask/app.py
as_view
called by 20
src/flask/views.py

Shape

Function 805
Method 387
Route 185
Class 135

Languages

Python100%

Modules by API surface

tests/test_basic.py264 symbols
tests/test_blueprints.py149 symbols
tests/test_user_error_handler.py65 symbols
tests/test_cli.py59 symbols
tests/test_helpers.py55 symbols
tests/test_views.py47 symbols
tests/test_templating.py47 symbols
tests/test_json.py47 symbols
tests/test_testing.py45 symbols
src/flask/json/tag.py44 symbols
src/flask/cli.py41 symbols
tests/test_reqctx.py38 symbols

Dependencies from manifests, versioned

amqp5.1.1 · 1×
async-timeout4.0.2 · 1×
billiard3.6.4.0 · 1×
blinker1.9.0 · 1×
click8.1.3 · 1×
click-didyoumean0.3.0 · 1×
click-plugins1.1.1 · 1×
click-repl0.2.0 · 1×
flask2.3.2 · 1×
itsdangerous2.2.0 · 1×
jinja23.1.2 · 1×
kombu5.2.4 · 1×

For agents

$ claude mcp add flask \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact