werkzeug 3.1.3


pip install werkzeug

  Latest version

Released: Nov 08, 2024


Meta
Maintainer: Pallets
Requires Python: >=3.9

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • Web Environment

Intended Audience
  • Developers

License
  • OSI Approved :: BSD License

Operating System
  • OS Independent

Programming Language
  • Python

Topic
  • Internet :: WWW/HTTP :: Dynamic Content
  • Internet :: WWW/HTTP :: WSGI
  • Internet :: WWW/HTTP :: WSGI :: Application
  • Internet :: WWW/HTTP :: WSGI :: Middleware
  • Software Development :: Libraries :: Application Frameworks

Typing
  • Typed

Werkzeug

werkzeug German noun: "tool". Etymology: werk ("work"), zeug ("stuff")

Werkzeug is a comprehensive WSGI web application library. It began as a simple collection of various utilities for WSGI applications and has become one of the most advanced WSGI utility libraries.

It includes:

  • An interactive debugger that allows inspecting stack traces and source code in the browser with an interactive interpreter for any frame in the stack.
  • A full-featured request object with objects to interact with headers, query args, form data, files, and cookies.
  • A response object that can wrap other WSGI applications and handle streaming data.
  • A routing system for matching URLs to endpoints and generating URLs for endpoints, with an extensible system for capturing variables from URLs.
  • HTTP utilities to handle entity tags, cache control, dates, user agents, cookies, files, and more.
  • A threaded WSGI server for use while developing applications locally.
  • A test client for simulating HTTP requests during testing without requiring running a server.

Werkzeug doesn't enforce any dependencies. It is up to the developer to choose a template engine, database adapter, and even how to handle requests. It can be used to build all sorts of end user applications such as blogs, wikis, or bulletin boards.

Flask wraps Werkzeug, using it to handle the details of WSGI while providing more structure and patterns for defining powerful applications.

A Simple Example

# save this as app.py
from werkzeug.wrappers import Request, Response

@Request.application
def application(request: Request) -> Response:
    return Response("Hello, World!")

if __name__ == "__main__":
    from werkzeug.serving import run_simple
    run_simple("127.0.0.1", 5000, application)
$ python -m app
  * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

Donate

The Pallets organization develops and supports Werkzeug and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.

3.1.3 Nov 08, 2024
3.1.2 Nov 04, 2024
3.1.1 Nov 01, 2024
3.1.0 Oct 31, 2024
3.0.6 Oct 25, 2024
3.0.5 Oct 25, 2024
3.0.4 Aug 21, 2024
3.0.3 May 05, 2024
3.0.2 Apr 01, 2024
3.0.1 Oct 24, 2023
3.0.0 Sep 30, 2023
2.3.8 Nov 08, 2023
2.3.7 Aug 14, 2023
2.3.6 Jun 08, 2023
2.3.5 Jun 07, 2023
2.3.4 May 08, 2023
2.3.3 May 01, 2023
2.3.2 Apr 28, 2023
2.3.1 Apr 27, 2023
2.3.0 Apr 25, 2023
2.2.3 Feb 14, 2023
2.2.2 Aug 08, 2022
2.2.1 Jul 27, 2022
2.2.0 Jul 23, 2022
2.2.0a1 Jul 08, 2022
2.1.2 Apr 28, 2022
2.1.1 Apr 01, 2022
2.1.0 Mar 28, 2022
2.0.3 Feb 07, 2022
2.0.2 Oct 06, 2021
2.0.1 May 17, 2021
2.0.0 May 11, 2021
2.0.0rc5 May 03, 2021
2.0.0rc4 Apr 16, 2021
2.0.0rc3 Mar 17, 2021
2.0.0rc2 Mar 03, 2021
2.0.0rc1 Feb 08, 2021
1.0.1 Mar 31, 2020
1.0.0 Feb 06, 2020
1.0.0rc1 Jan 31, 2020
0.16.1 Jan 27, 2020
0.16.0 Sep 19, 2019
0.15.6 Sep 04, 2019
0.15.5 Jul 17, 2019
0.15.4 May 15, 2019
0.15.3 May 14, 2019
0.15.2 Apr 02, 2019
0.15.1 Mar 21, 2019
0.15.0 Mar 19, 2019
0.14.1 Dec 31, 2017
0.14 Dec 31, 2017
0.13 Dec 07, 2017
0.12.2 May 16, 2017
0.12.1 Mar 15, 2017
0.12 Mar 10, 2017
0.11.15 Dec 30, 2016
0.11.14 Dec 30, 2016
0.11.13 Dec 26, 2016
0.11.12 Dec 26, 2016
0.11.11 Aug 31, 2016
0.11.10 May 24, 2016
0.11.9 Apr 24, 2016
0.11.8 Apr 15, 2016
0.11.7 Apr 14, 2016
0.11.6 Apr 14, 2016
0.11.5 Mar 22, 2016
0.11.4 Feb 14, 2016
0.11.3 Dec 19, 2015
0.11.2 Nov 12, 2015
0.11.1 Nov 10, 2015
0.11 Nov 08, 2015
0.10.4 Mar 26, 2015
0.10.2 Mar 26, 2015
0.10.1 Feb 03, 2015
0.10 Jan 29, 2015
0.9.6 Jun 07, 2014
0.9.5 Jun 06, 2014
0.9.4 Aug 25, 2013
0.9.3 Jul 25, 2013
0.9.2 Jul 18, 2013
0.9.1 Jun 14, 2013
0.9 Jun 13, 2013
0.8.3 Feb 05, 2012
0.8.2 Dec 16, 2011
0.8.1 Sep 30, 2011
0.8 Sep 29, 2011
0.7.2 Sep 30, 2011
0.7.1 Jul 26, 2011
0.7 Jul 24, 2011
0.6.2 Apr 23, 2010
0.6.1 Apr 13, 2010
0.6 Feb 19, 2010
0.5.1 Jul 09, 2009
0.5 Apr 25, 2009
0.4.1 Jan 11, 2009
0.4 Nov 23, 2008
0.3.1 Jun 24, 2008
0.3 Jun 14, 2008
0.2 Feb 13, 2008
0.1 Dec 09, 2007

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
MarkupSafe (>=2.1.1)