Skip to main content

Introduction

This package provides a contextless way to retrieve the currently active request object in a zope-based web framework. To do so you simply need to do the following:

from zope.globalrequest import getRequest
request = getRequest()

This package is mainly intended to be used with the Zope/Plone stack. While it also works with the Zope3 framework, the latter promotes a clean separation of concerns and the pattern of having a globally available request object is discouraged.

Changelog

3.0 (2025-09-12)

  • Replace pkg_resources namespace with PEP 420 native namespace.

2.1 (2025-09-04)

  • Add support for Python 3.12, 3.13.

  • Drop support for Python 3.7, 3.8.

2.0 (2023-03-27)

  • Drop support for Python 2.7, 3.5, 3.6.

  • Mention Python 3.11 support in trove classifiers.

1.6 (2022-10-18)

  • Add support for Python 3.8, 3.9, 3.10 and 3.11

  • Drop support for Python 3.4.

1.5 (2018-10-04)

  • Add support for Python 3.7.

1.4 (2017-05-29)

  • Turn functional tests into better covering unit tests and also add more tests. This removes test dependencies on unrelated packages.

1.3 (2016-10-22)

  • Python 3 compatibility.

1.2 (2016-06-07)

  • Lighten test dependencies by using neither zope.app.testing nor zope.app.zcmlfiles any longer.

1.1 (2015-04-29)

  • Fix import locations and declare all dependencies. [thet]

1.0 (2010-08-07)

  • Fix test setup regarding zope.securitypolicy. [ldr]

1.0a2 (2009-01-17)

1.0a1 (2009-01-15)

  • Initial release [witsch]

Metadata

Release files for zope.globalrequest 3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zope.globalrequest 3.0
File Size Uploaded Provenance
zope_globalrequest-3.0.tar.gz 7.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for zope.globalrequest 3.0
File Interpreter ABI Platform
zope_globalrequest-3.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / zope_globalrequest-3.0.tar.gz

Download URL zope_globalrequest-3.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7a17403b4d4b56a030609bac28b0833a091711db9367f1956d9148bc73a23439
BLAKE2b-256 checksum
How to use checksums
9131fb59e2037056607c97b1b6246776393af50671851f5d763f0e1b2cca09f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Release files / zope_globalrequest-3.0-py3-none-any.whl

Download URL zope_globalrequest-3.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb9d55e5091743870e21817ae7bc8939f35c3545ac3e7d7ee97ed77fd4b6d5ac
BLAKE2b-256 checksum
How to use checksums
808ab92514793ff71c36f81a4c3a06f045cf3871cff92b088e491a3d8ac7e6de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Security for zope.globalrequest 3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page