๐Ÿ“ฆ pallets / flask

The Python micro framework for building web applications.

โ˜… 71.1k stars โ‘‚ 16.7k forks ๐Ÿ‘ 71.1k watching โš–๏ธ BSD 3-Clause "New" or "Revised" License
flaskjinjapalletspythonweb-frameworkwerkzeugwsgi
๐Ÿ“ฅ Clone https://github.com/pallets/flask.git
HTTPS git clone https://github.com/pallets/flask.git
SSH git clone git@github.com:pallets/flask.git
CLI gh repo clone pallets/flask
David Lord David Lord Merge branch 'stable' 2579ce9 2 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .devcontainer
๐Ÿ“ .github
๐Ÿ“ docs
๐Ÿ“ examples
๐Ÿ“ src
๐Ÿ“ tests
๐Ÿ“„ .editorconfig
๐Ÿ“„ .gitignore
๐Ÿ“„ .readthedocs.yaml
๐Ÿ“„ CHANGES.rst
๐Ÿ“„ LICENSE.txt
๐Ÿ“„ pyproject.toml
๐Ÿ“„ README.md
๐Ÿ“„ uv.lock
๐Ÿ“„ README.md

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.