Provides a global way to retrieve the currently active request, commonly used in Zope/ Pyramid applications. Current version: 3.0, requires Python >=3.9. Maintained by the Zope Foundation.
pip install zope.globalrequestVerified import paths — ran on the pinned version, not inferred.
Set and retrieve the current global request.
Set zope.globalrequest.config.SET_AS_COROUTINE_LOCAL = True for async support.
Change imports to 'from zope.globalrequest import getRequest'.
Configure via zope.globalrequest.config.set_local_storage('coroutine') or 'thread' explicitly.Use 'from zope.globalrequest import getRequest' instead.
Pass a request object: setRequest(request_obj).
No dependency data recorded yet.