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
=========
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)
------------------
- Update documentation to clarify the intentions of this package. Also see
http://thread.gmane.org/gmane.comp.web.zope.devel/18023 for more information.
[witsch]
1.0a1 (2009-01-15)
------------------
- Initial release
[witsch]
Raw data
{
"_id": null,
"home_page": "https://github.com/zopefoundation/zope.globalrequest",
"name": "zope.globalrequest",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "zope request global",
"author": "Zope Foundation and Contributors",
"author_email": "zope-dev@zope.dev",
"download_url": "https://files.pythonhosted.org/packages/b1/e0/bfdd4643798188d251eb3bdcb799b9d4906d24bc07f6df76e7eaa7959583/zope_globalrequest-2.1.tar.gz",
"platform": "Any",
"description": "\n\nIntroduction\n------------\n\nThis package provides a contextless way to retrieve the currently active request object in a zope-based web framework.\nTo do so you simply need to do the following::\n\n from zope.globalrequest import getRequest\n request = getRequest()\n\nThis package is mainly intended to be used with the Zope/Plone stack.\nWhile it also works with the Zope3 framework,\nthe latter promotes a clean separation of concerns and the pattern of having a globally available request object is discouraged.\n\nChangelog\n=========\n\n2.1 (2025-09-04)\n----------------\n\n- Add support for Python 3.12, 3.13.\n\n- Drop support for Python 3.7, 3.8.\n\n\n2.0 (2023-03-27)\n----------------\n\n- Drop support for Python 2.7, 3.5, 3.6.\n\n- Mention Python 3.11 support in trove classifiers.\n\n\n1.6 (2022-10-18)\n----------------\n\n- Add support for Python 3.8, 3.9, 3.10 and 3.11\n\n- Drop support for Python 3.4.\n\n\n1.5 (2018-10-04)\n----------------\n\n- Add support for Python 3.7.\n\n\n1.4 (2017-05-29)\n----------------\n\n- Turn functional tests into better covering unit tests and also add more tests.\n This removes test dependencies on unrelated packages.\n\n\n1.3 (2016-10-22)\n----------------\n\n- Python 3 compatibility.\n\n\n1.2 (2016-06-07)\n----------------\n\n- Lighten test dependencies by using neither `zope.app.testing` nor\n `zope.app.zcmlfiles` any longer.\n\n\n1.1 (2015-04-29)\n----------------\n\n- Fix import locations and declare all dependencies.\n [thet]\n\n\n1.0 (2010-08-07)\n----------------\n\n- Fix test setup regarding `zope.securitypolicy`.\n [ldr]\n\n\n1.0a2 (2009-01-17)\n------------------\n\n- Update documentation to clarify the intentions of this package. Also see\n http://thread.gmane.org/gmane.comp.web.zope.devel/18023 for more information.\n [witsch]\n\n\n1.0a1 (2009-01-15)\n------------------\n\n- Initial release\n [witsch]\n",
"bugtrack_url": null,
"license": "ZPL",
"summary": "Global way of retrieving the currently active request.",
"version": "2.1",
"project_urls": {
"Homepage": "https://github.com/zopefoundation/zope.globalrequest",
"Issue Tracker": "https://github.com/zopefoundation/zope.globalrequest/issues",
"Sources": "https://github.com/zopefoundation/zope.globalrequest"
},
"split_keywords": [
"zope",
"request",
"global"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "e6ac333573c80529d92eb19f19a3a2acc6d014c672004daa67ae97ea1ebc27e6",
"md5": "d7399d6f8efd884683762bd417b8ec9b",
"sha256": "69025823e6b200c80ecfd3c7399b7ca7677aee3ae0a021cc9aa67819f56bbe27"
},
"downloads": -1,
"filename": "zope_globalrequest-2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d7399d6f8efd884683762bd417b8ec9b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 5748,
"upload_time": "2025-09-04T15:09:53",
"upload_time_iso_8601": "2025-09-04T15:09:53.072587Z",
"url": "https://files.pythonhosted.org/packages/e6/ac/333573c80529d92eb19f19a3a2acc6d014c672004daa67ae97ea1ebc27e6/zope_globalrequest-2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b1e0bfdd4643798188d251eb3bdcb799b9d4906d24bc07f6df76e7eaa7959583",
"md5": "c70c74ddaafc049f6fc352b57315bbdf",
"sha256": "636bcc5501b28599f5308fe5646685332f64cb69c9e76be829df354217a3b676"
},
"downloads": -1,
"filename": "zope_globalrequest-2.1.tar.gz",
"has_sig": false,
"md5_digest": "c70c74ddaafc049f6fc352b57315bbdf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 7479,
"upload_time": "2025-09-04T15:09:54",
"upload_time_iso_8601": "2025-09-04T15:09:54.010660Z",
"url": "https://files.pythonhosted.org/packages/b1/e0/bfdd4643798188d251eb3bdcb799b9d4906d24bc07f6df76e7eaa7959583/zope_globalrequest-2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-04 15:09:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zopefoundation",
"github_project": "zope.globalrequest",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "zope.globalrequest"
}