Skip to main content

zope.globalrequest

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.1 (2026-11-18)

  • Add support for Python 3.14, 3.15.

  • Move package metadata from setup.py to pyproject.toml.

  • Add LICENSE.txt and COPYRIGHT.txt, so they ship in the sdist.

  • Drop support for Python 3.10, 3.9.

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.1

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.1
File Size Uploaded Provenance Actions
zope_globalrequest-3.1.tar.gz 8.7 kB With provenance Details for zope_globalrequest-3.1.tar.gz

Built distribution (wheel)

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

Total release size: 15.2 kB

Release files / zope_globalrequest-3.1.tar.gz

Download URL zope_globalrequest-3.1.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5863e2eb8794b9b321c3ae7159acf2979a3d0b714849a34b3a7a021e3b415bed
BLAKE2b-256 checksum
How to use checksums
9691be8645d10d415541ca79d4a352d3f2b8e6aa8b1a93b2dd031f84d94747d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

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

Download URL zope_globalrequest-3.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be0571a5a8950bd85be6a11a2c9ee3c296070ddf2cac0753ca0d5e83a1f418f6
BLAKE2b-256 checksum
How to use checksums
4ebf5c4834f9530e8e6e636ad5b95d0c4ee94bf6243233d751f2ed7c5091c855
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for zope.globalrequest 3.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zope_globalrequest-3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

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