Werkzeug

Table of Contents

Reference

LocalProxy

session = LocalProxy(lambda: get_current_request().session)

Topics

Context Locals

Werkzeug provides its own implementation of local data storage called werkzeug.local. This approach provides a similar functionality to thread locals but also works with greenlets.