skillfed

zope.location

Zope Location

zope-location v6.0 183.9K downloads/30d#10,052 on PyPI0
License unclear ZPL-2.1 AGING released

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-location

uv

uv add zope-location

poetry

poetry add zope-location

Installing 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

Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: Zope :: 3Framework :: Zope :: 5Intended Audience :: DevelopersLicense :: OSI Approved :: Zope Public LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Internet :: WWW/HTTP

Tags

zope object location trackingstructural hierarchy for zope objectsparent child relationships zopezope location proxyobject location in zope frameworkzope container location supportlocation aware objects
zope-frameworkobject-hierarchy

More WWW/HTTP packages