The Pallets team is pleased to release Werkzeug 1.0. Werkzeug is the low-level WSGI and HTTP toolkit that powers Flask. It's been almost 13 years since the first commit, and this milestone for the project brings many fixes and changes. Read the full changelog to understand what may affect your code when upgrading.
werkzeugmodule in favor of direct imports. If you haven't already, use version 0.16 first to see deprecation warnings while upgrading.
samesite='None'option. Cookies are parsed as a
MultiDictinstead of overwriting repeated keys.
Acceptheader preserves order for tags with equal quality and considers options on each value. The
Accept-Languageheader can match the primary tag if the specific value is not present.
websocket, in which case it will only match for
wss://requests. This allows async web frameworks to use Werkzeug for routing.
As outlined in Ending Python 2 Support, 1.0.x will be the last version to support Python 2.7 and 3.5. The next version will be 2.0 and will support Python 3.6 and newer.
Install from PyPI with pip:
pip install -U Werkzeug
The Pallets organization accepts donations as part of the non-profit Python Software Foundation (PSF). Donations through the PSF support our efforts to maintain the projects and grow the community.
The Pallets team and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.