Utilities — Werkzeug documentation

From Get docs


Various utility functions shipped with Werkzeug.

HTML Helpers

General Helpers

URL Helpers

Please refer to URL Helpers.

User Agent API

UserAgent Parsing (deprecated)

Deprecated since version 2.0: This module will be removed in Werkzeug 2.1. Subclass werkzeug.user_agent.UserAgent to use a dedicated parser instead.

Security Helpers

New in version 0.6.1.


Werkzeug uses standard Python logging. The logger is named "werkzeug".

import logging
logger = logging.getLogger("werkzeug")

If the logger level is not set, it will be set to INFO on first use. If there is no handler for that level, a StreamHandler is added.