zope.location
Zope Location
What it is and what it does
zope.location is a foundational Zope 3 package that provides a location system for marking objects with structural identity within an application. Objects gain ``__name__`` and ``__parent__`` attributes to indicate their position in an object hierarchy, enabling traversal and location-aware operations. It is typically used as a base layer in Zope applications and frameworks that need to track object containment and identity.
The package depends on zope.interface, zope.schema, and zope.proxy to implement location proxies and interface contracts. It is maintained as part of the Zope Foundation ecosystem and supports modern Python versions (3.9 through 3.13, including PyPy). The package is stable and production-ready but is primarily useful within Zope-based architectures; standalone use outside that context is uncommon.
Use it for:
- Building Zope 3 applications that require objects to maintain structural location and parent-child relationships
- Implementing location-aware traversal in web frameworks built on Zope components
- Creating container hierarchies where objects need to know their position and parent context
- Extending zope.container with location tracking for custom object models
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a structural location system for Zope 3 objects using ``__name__`` and ``__parent__`` attributes to track object hierarchy and identity within an application.
Yes, if you are building or maintaining a Zope 3 or Zope 5 application. No, if you are working outside the Zope ecosystem—this package is a specialized component with no general-purpose use case. The aging maintenance status (336 days since last release) is typical for stable Zope Foundation packages and does not indicate abandonment, but verify that your Zope version aligns with the supported Python versions (3.9+).
Install
zope-location on PyPI
pip
pip install zope-locationuv
uv add zope-locationpoetry
poetry add zope-locationInstalling zope.location
Before you install
Low friction install with a pure-Python wheel and four runtime dependencies (setuptools, zope.interface, zope.schema, zope.proxy). Last release was 336 days ago; repository is active but aging.
License in practice
Licensed under ZPL-2.1 (Zope Public License), classified as OSI-approved. License treatment is marked unclear in the fact sheet; verify compatibility with your project's license requirements before use.
Quickstart
pip install zope.location
from zope.location import Location
obj = Location()
obj.__name__ = 'myobject'
obj.__parent__ = parent_object
Requires Python 3.9 or later; does not support Python 3.7 or 3.8.
Verify before relying
- Exact semantics of LocationProxy and how it differs from direct Location usage
- Performance characteristics when managing deeply nested object hierarchies
- Integration patterns with zope.container for container-specific location behavior
Package facts
| License | ZPL-2.1 (unclear) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — setuptools, zope.interface, zope.schema, zope.proxy |
| Maintenance | aging — 336 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 183,914/month — #10,052 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: zope_location-6.0-py3-none-any.whl
Keywords: zope, location, structural
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
zope.containerProvides container interfaces and…
unclear · top 15,000 on PyPI
zope.traversingResolves object paths by traversing an object…
unclear · top 15,000 on PyPI
zope.lifecycleeventDefines event objects and API functions for…
unclear · top 15,000 on PyPI
zope.siteProvides a local and persistent site manager…
unclear · top 15,000 on PyPI
zope.annotationStores additional metadata on objects without…
unclear · top 15,000 on PyPI
zope.proxyzope.proxy provides transparent wrapper objects…
unclear · top 15,000 on PyPI
zope.configurationZope.configuration provides an extensible…
unclear · top 5,000 on PyPI
zope.filerepresentationDefines interfaces for representing objects as…
unclear · top 15,000 on PyPI
zope.browsermenuProvides browser menu implementation and ZCML…
unclear · top 15,000 on PyPI
zope.indexzope.index provides indexing structures for…
unclear · top 15,000 on PyPI