Pythie
CategoriesTrending
An open index of Python tools.Pythie’s IndexLegal noticePrivacyData: PyPI (package metadata; download statistics under CC BY 4.0, via ClickHouse), deps.dev (CC BY 4.0), GitHub, OSV.

Werkzeug

3.1.9ActivePythie’s Index: 85

The comprehensive WSGI web application library.

Actively maintained. Last release 2 months ago, commits in 13 of the last 26 weeks. A safe choice.

Web FrameworksHTTP & Networking
$pip install werkzeug
pallets/werkzeugHomepagePyPI

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.

Contributing

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

Popularity

Downloads / month
268.8M
GitHub stars
6.9K
Downloads, last 7 days
52.1M-10%
Stars, last 7 days
–
Direct dependents
1.4K
All dependents
20.1K

Pythie’s Index

How it works
85

Healthy

Maintenance, out of 100

  • Recent release

    last release 62 days ago

  • Commit activity

    13/26 weeks with commits

  • Release cadence

    6 releases in 12 months

  • Issues & PRs handled

    94% closed in the past year

  • Contributor spread

    1 authors in last 100 commits

  • OpenSSF Scorecard

    6.0/10

Commits, last 26 weeks249

Releases

Latest
3.1.9
Released
Sep 27, 2026
Releases, 12 months
6
First release
Dec 9, 2007

Compatibility

Requires Python
>=3.9
License
BSD-3-Clause (Permissive)

Keywords

pythonwsgiwerkzeughttppallets

Alternatives

Use instead of Werkzeug: tools that do the same job, closest first.

Compare with WebOb →

  • WebOb1.8.11ActivePythie’s Index: 67

    WSGI request and response object

    Web FrameworksHTTP & Networking–4.3M/moReleased Aug 2, 2026

Works well with

Use together with Werkzeug: extensions, drivers, servers and companion tools.

  • FlaskPythie’s Index: 57A simple framework for building complex web applications.198.6M downloads/mo
  • gunicornPythie’s Index: 82WSGI HTTP Server for UNIX127.5M downloads/mo
  • flask-corsPythie’s Index: 55A Flask extension simplifying CORS support53M downloads/mo
  • granianPythie’s Index: 83A Rust HTTP server for Python applications14.1M downloads/mo
  • waitressPythie’s Index: 40Waitress WSGI server7.9M downloads/mo
  • Flask-RESTfulPythie’s Index: 24Simple framework for creating REST APIs2.3M downloads/mo