freshcrate
Home > Frameworks > flask

flask

A simple framework for building complex web applications.

Description

<div align="center"><img src="https://raw.githubusercontent.com/pallets/flask/refs/heads/stable/docs/_static/flask-name.svg" alt="" height="150"></div> # 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. [WSGI]: https://wsgi.readthedocs.io/ [Werkzeug]: https://werkzeug.palletsprojects.com/ [Jinja]: https://jinja.palletsprojects.com/ ## A Simple Example ```python # 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]. [please donate today]: https://palletsprojects.com/donate ## Contributing See our [detailed contributing documentation][contrib] for many ways to contribute, including reporting issues, requesting features, asking or answering questions, and making PRs. [contrib]: https://palletsprojects.com/contributing/

Release History

VersionChangesUrgencyDate
3.1.3Imported from PyPI (3.1.3)Low4/21/2026
3.1.2This is the Flask 3.1.2 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to the latest feature release. PyPI: https://pypi.org/project/Flask/3.1.2/ Changes: https://flask.palletsprojects.com/page/changes/#version-3-1-2 Milestone: https://github.com/pallets/flask/milestone/38?closed=1 - `stream_with_context` does not fail inside async views. #5774 - When using `follow_redirects` in the test client, the final state of Low8/19/2025
3.1.1This is the Flask 3.1.1 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes compared to the latest feature release. PyPI: https://pypi.org/project/Flask/3.1.1/ Changes: https://flask.palletsprojects.com/en/stable/changes/#version-3-1-1 Milestone https://github.com/pallets/flask/milestone/36?closed=1 - Fix signing key selection order when key rotation is enabled via `SECRET_KEY_FALLBACKS`. GHSA-4grg-w6v8-c28g - Fix type hint for Low5/13/2025
3.1.0This is the Flask 3.1.0 feature release. A feature release may include new features, remove previously deprecated code, add new deprecations, or introduce potentially breaking changes. We encourage everyone to upgrade, and to use a tool such as [pip-tools](https://pypi.org/project/pip-tools/) to pin all dependencies and control upgrades. Test with warnings treated as errors to be able to adapt to deprecation warnings early. PyPI: https://pypi.org/project/Flask/3.1.0/ Changes: https://flask.pLow11/13/2024
3.0.3This is a fix release for the 3.0.x feature branch. PyPI: https://pypi.org/project/Flask/3.0.3/ Changes: https://flask.palletsprojects.com/en/3.0.x/changes/#version-3-0-3 Milestone: https://github.com/pallets/flask/milestone/35?closed=1 - The default `hashlib.sha1` may not be available in FIPS builds. Don't access it at import time so the developer has time to change the default. #5448 - Don't initialize the `cli` attribute in the sansio scaffold, but rather in the `Flask` concrete Low4/7/2024
3.0.2This is a fix release for the 3.0.x feature release branch. It fixes bugs but does not otherwise change behavior and should not result in breaking changes. * Changes: https://flask.palletsprojects.com/en/3.0.x/changes/#version-3.0.2 * Milestone: https://github.com/pallets/flask/milestone/34?closed=1 * PyPI: https://pypi.org/project/Flask/3.0.2/Low2/3/2024
3.0.1This is a fix release for the 3.0.x feature release branch. Fixes an issue where using other JSON providers, such as `flask-orjson`, previously caused loaded session data to have an incorrect format in some cases. * Changes: https://flask.palletsprojects.com/en/3.0.x/changes/#version-3-0-1 * Milestone: https://github.com/pallets/flask/milestone/32?closed=1 * PyPI: https://pypi.org/project/Flask/3.0.1/Low1/18/2024
3.0.0This is a feature release, which includes new features, removes previously deprecated code, and adds new deprecations. The 3.0.x branch is now the supported fix branch, the 2.3.x branch will become a tag marking the end of support for that branch. We encourage everyone to upgrade, and to use a tool such as [pip-tools](https://pypi.org/project/pip-tools/) to pin all dependencies and control upgrades. Test with warnings treated as errors to be able to adapt to deprecation warnings early. * ChanLow9/30/2023
2.3.3This is a fix release for the 2.3.x feature branch. - Changes: https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-3-3 - Milestone: https://github.com/pallets/flask/milestone/31?closed=1Low8/21/2023
2.2.5This is a security fix release for the 2.2.x release branch. Note that 2.3.x is the currently supported release branch; please upgrade to the latest version if possible. * Security advisory: https://github.com/pallets/flask/security/advisories/GHSA-m2qf-hxjv-5gpq, CVE-2023-30861 * Changes: https://flask.palletsprojects.com/en/2.2.x/changes/#version-2-2-5 * Milestone: https://github.com/pallets/flask/milestone/30?closed=1Low5/2/2023
2.3.2This is a security fix release for the 2.3.x release branch. * Security advisory: https://github.com/pallets/flask/security/advisories/GHSA-m2qf-hxjv-5gpq, CVE-2023-30861 * Changes: https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-3-2 * Milestone: https://github.com/pallets/flask/milestone/29?closed=1Low5/1/2023
2.3.1This is a fix release for the 2.3.x release branch. * Changes: https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-3-1 * Milestone: https://github.com/pallets/flask/milestone/28?closed=1Low4/25/2023
2.3.0This is a feature release, which includes new features, removes previously deprecated code, and adds new deprecations. The 2.3.x branch is now the supported fix branch, the 2.2.x branch will become a tag marking the end of support for that branch. We encourage everyone to upgrade, and to use a tool such as [pip-tools](https://pypi.org/project/pip-tools/) to pin all dependencies and control upgrades. Test with warnings treated as errors to be able to adapt to deprecation warnings early. * ChanLow4/25/2023
2.2.4This is a fix release for the 2.2.x release branch. * Changes: https://flask.palletsprojects.com/en/2.2.x/changes/#version-2-2-4 * Milestone: https://github.com/pallets/flask/milestone/27?closed=1Low4/25/2023
2.2.3This is a fix release for the 2.2.x release branch. * Changes: https://flask.palletsprojects.com/en/2.2.x/changes/#version-2-2-3 * Milestone: https://github.com/pallets/flask/milestone/26?closed=1Low2/15/2023
2.2.2This is a fix release for the [2.2.0](https://github.com/pallets/flask/releases/tag/2.2.0) feature release. * Changes: https://flask.palletsprojects.com/en/2.2.x/changes/#version-2-2-2 * Milestone: https://github.com/pallets/flask/milestone/25?closed=1Low8/8/2022
2.2.1This is a fix release for the [2.2.0](https://github.com/pallets/flask/releases/tag/2.2.0) feature release. * Changes: https://flask.palletsprojects.com/en/2.2.x/changes/#version-2-2-1 * Milestone: https://github.com/pallets/flask/milestone/23?closed=1 Low8/3/2022
2.2.0This is a feature release, which includes new features and removes previously deprecated code. The 2.2.x branch is now the supported bug fix branch, the 2.1.x branch will become a tag marking the end of support for that branch. We encourage everyone to upgrade, and to use a tool such as [pip-tools](https://pypi.org/project/pip-tools/) to pin all dependencies and control upgrades. * Changes: https://flask.palletsprojects.com/en/2.2.x/changes/#version-2-2-0 * Milestone: https://github.com/pallLow8/2/2022
2.1.3* Changes: https://flask.palletsprojects.com/en/2.1.x/changes/#version-2-1-3 * Milestone: https://github.com/pallets/flask/milestone/22?closed=1Low7/13/2022
2.1.2This is a fix release for the [2.1.0](https://github.com/pallets/flask/releases/tag/2.1.0) feature release. * Changes: https://flask.palletsprojects.com/en/2.1.x/changes/#version-2-1-2 * Milestone: https://github.com/pallets/flask/milestone/21?closed=1Low4/28/2022
2.1.1This is a fix release for the [2.1.0](https://github.com/pallets/flask/releases/tag/2.1.0) feature release. * Changes: https://flask.palletsprojects.com/en/2.1.x/changes/#version-2-1-1 * Milestone: https://github.com/pallets/flask/milestone/18?closed=1Low3/30/2022
2.1.0This is a feature release, which includes new features and removes previously deprecated features. The 2.1.x branch is now the supported bugfix branch, the 2.0.x branch will become a tag marking the end of support for that branch. We encourage everyone to upgrade, and to use a tool such as [pip-tools](https://pypi.org/project/pip-tools/) to pin all dependencies and control upgrades. * Changes: https://flask.palletsprojects.com/en/2.1.x/changes/#version-2-1-0 * Milestone: https://github.com/pLow3/28/2022
2.0.3* Changes: https://flask.palletsprojects.com/en/2.0.x/changes/#version-2-0-3 * Milestone: https://github.com/pallets/flask/milestone/17?closed=1Low2/14/2022
2.0.2* Changes: https://flask.palletsprojects.com/en/2.0.x/changes/#version-2-0-2Low10/4/2021
2.0.1* Changes: https://flask.palletsprojects.com/en/2.0.x/changes/#version-2-0-1Low5/21/2021
2.0.0New major versions of all the core Pallets libraries, including Flask 2.0, have been released! :tada: * Read the announcement on our blog: https://palletsprojects.com/blog/flask-2-0-released/ * Read the full list of changes: https://flask.palletsprojects.com/changes/#version-2-0-0 * Retweet the announcement on Twitter: https://twitter.com/PalletsTeam/status/1392266507296514048 * Follow our blog, Twitter, or GitHub to see future announcements. This represents a significant amount of worLow5/12/2021
2.0.0rc2* Changes: https://flask.palletsprojects.com/en/master/changes#version-2-0-0Low5/3/2021
2.0.0rc1* Changes: https://flask.palletsprojects.com/en/master/changes/#version-2-0-0Low4/16/2021
1.1.21.1.x is the last version to support Python 2.7 and Python 3.5. It also contains deprecation warnings for code that will be removed in 2.0. Please pay attention to deprecation warnings in your project! This release contains a couple bug fixes. * Changelog: https://flask.palletsprojects.com/en/1.1.x/changelog/#version-1-1-2Low4/3/2020
1.1.1* Blog: https://palletsprojects.com/blog/flask-1-1-released * Changelog: https://flask.palletsprojects.com/en/1.1.x/changelog/#version-1-1-1Low7/9/2019
1.1.0* Blog: https://palletsprojects.com/blog/flask-1-1-released * Changelog: https://flask.palletsprojects.com/en/1.1.x/changelog/#version-1-1-0Low7/9/2019
1.0.4* Changelog: https://flask.palletsprojects.com/en/1.0.x/changelog/#version-1-0-4Low7/9/2019
1.0.3* Changelog: https://flask.palletsprojects.com/en/1.0.x/changelog/#version-1-0-3Low7/9/2019
1.0.2This release includes bug fixes and minor changes since 1.0.1. See the [changelog](http://flask.pocoo.org/docs/changelog/#version-1-0-2) for details. Install or Upgrade ------------------- Install from [PyPI](https://pypi.org/project/Flask/1.0.1/) with pip: pip install -U FlaskLow5/2/2018
1.0.1This release includes bug fixes and minor changes since 1.0. See the [changelog](http://flask.pocoo.org/docs/changelog/#version-1-0-1) for details. Install or Upgrade ------------------- Install from [PyPI](https://pypi.org/project/Flask/1.0.1/) with pip: pip install -U FlaskLow4/30/2018
0.12.4This is a repackage of [0.12.3](https://github.com/pallets/flask/releases/0.12.3) to fix an issue with how the package was built. Upgrade -------- Upgrade from [PyPI](https://pypi.org/project/Flask/0.12.4/) with pip. Use a version identifier if you want to stay at 0.12: pip install -U 'Flask~=0.12.4' Low4/30/2018
1.0The Pallets team is pleased to release Flask 1.0. [Read the announcement on our blog.](https://www.palletsprojects.com/blog/flask-1-0-released/ There are over a year's worth of changes in this release. Many features have been improved or changed. [Read the changelog](http://flask.pocoo.org/docs/1.0/changelog/) to understand how your project's code will be affected. JSON Security Fix ------------------ Flask previously decoded incoming JSON bytes using the content type of the request.Low4/26/2018
0.12.3This release includes an important security fix for JSON and a minor backport for CLI support in PyCharm. It is provided for projects that cannot update to Flask 1.0 immediately. See the [1.0 announcement](../flask-1-0-released) and update to it instead if possible. JSON Security Fix ------------------ Flask previously decoded incoming JSON bytes using the content type of the request. Although JSON should only be encoded as UTF-8, Flask was more lenient. However, Python includes non-texLow4/26/2018

Dependencies & License Audit

Loading dependencies...

Similar Packages

pre-commitA framework for managing and maintaining multi-language pre-commit hooks.v4.6.0
azure-core-tracing-opentelemetryMicrosoft Azure Azure Core OpenTelemetry plugin Library for Pythonazure-template_0.1.0b6187637
spdx-toolsSPDX parser and tools.0.8.5
lacesDjango components that know how to render themselves.0.1.2
django-tasksA backport of Django's built in Tasks framework0.12.0