zope.annotation
Object annotation mechanism
Decision gist · record as of 2026-08-14
Yes, if you are building within the Zope ecosystem or need a clean, non-invasive way to attach metadata to objects in a component-based architecture. The package is stable, actively maintained, and has no known vulnerabilities. The ZPL-2.1 license is OSI-approved but less mainstream; verify it aligns with your project before committing. Install friction is low and dependencies are all from the same ecosystem, so integration is straightforward for Zope-aware projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; integration with Zope component architecture assumes familiarity with zope.interface and zope.component patterns.
- Low install friction with a pure-Python wheel and five runtime dependencies all from the Zope ecosystem.
- Actively maintained with recent releases supporting Python 3.9 through 3.13; last commit was 2026-05-13.
License · maintenance · safety
ZPL-2.1 (unclear) — Licensed under ZPL-2.1 (Zope Public License 2.1), which is OSI-approved but less common than MIT or Apache 2.0; verify compatibility with your project's license policy before adopting.
last release 2025-09-12 (336 days) · last repo commit 2026-05-13 · 1 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 150,924 downloads/mo, #10,950 on PyPI
Alternatives
Verify before relying
from zope.annotation.interfaces import IAnnotations
from zope.annotation.attribute import AttributeAnnotations
# Register adapter or use directly
annotations = IAnnotations(your_object)- Whether BTrees is automatically installed or only available via optional [btree] extra in version 6.0.
- Concrete examples of how annotation storage differs between dict and BTrees backends in practice.
- Performance characteristics when storing large numbers of annotations on a single object.
What it is and what it does
zope.annotation provides a framework for attaching arbitrary metadata to objects at runtime without modifying their class definition. It integrates with the Zope component architecture (zope.interface, zope.component, zope.location, zope.proxy) to register and retrieve annotations through a clean adapter-based API. The package is particularly useful in ZODB-backed systems where you need to associate extra data with persistent objects.
The core mechanism uses IAnnotations adapters to store metadata, with AttributeAnnotations providing a dict-like interface for attribute-based storage. The package supports both in-memory dict storage and persistent BTrees storage, falling back gracefully if BTrees is unavailable. It has been actively maintained since 2007 and currently supports Python 3.9 through 3.13.
Use it for
- Attach domain-specific metadata to ZODB objects without altering their schema or class hierarchy.
- Store temporary or computed attributes on objects in a Zope application without modifying the persistent object structure.
- Build plugin systems where different components can independently annotate shared objects with their own metadata.
- Implement object traversal helpers by storing parent references via __parent__ annotations for upward navigation.
- Manage object-level configuration or state in frameworks that use zope.component for adaptation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building within the Zope ecosystem or need a clean, non-invasive way to attach metadata to objects in a component-based architecture.
The package is stable, actively maintained, and has no known vulnerabilities. The ZPL-2.1 license is OSI-approved but less mainstream; verify it aligns with your project before committing. Install friction is low and dependencies are all from the same ecosystem, so integration is straightforward for Zope-aware projects.
Install
zope-annotation on PyPI
Before you install
Low install friction with a pure-Python wheel and five runtime dependencies all from the Zope ecosystem. Actively maintained with recent releases supporting Python 3.9 through 3.13; last commit was 2026-05-13.
Requires Python 3.9 or later; integration with Zope component architecture assumes familiarity with zope.interface and zope.component patterns.
License in practice
Licensed under ZPL-2.1 (Zope Public License 2.1), which is OSI-approved but less common than MIT or Apache 2.0; verify compatibility with your project's license policy before adopting.
Quickstart
from zope.annotation.interfaces import IAnnotations
from zope.annotation.attribute import AttributeAnnotations
# Register adapter or use directly
annotations = IAnnotations(your_object)
Verify before relying
- Whether BTrees is automatically installed or only available via optional [btree] extra in version 6.0.
- Concrete examples of how annotation storage differs between dict and BTrees backends in practice.
- Performance characteristics when storing large numbers of annotations on a single object.
Package facts
| License | ZPL-2.1 unclear |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagessetuptoolszope.interfacezope.componentzope.locationzope.proxy |
| Maintenance | Actively maintained 336 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 150,924 / month, #10,950 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended 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/HTTPTopic :: Software Development |
Evidence: zope_annotation-6.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “object annotation storage”
- zope.annotationStores additional metadata on objects without modifying their class,…
- fiftyone-dbProvides the database backend for FiftyOne, a computer vision…
- pycocotoolsProvides Python APIs for loading, parsing, and working with the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also zope.container · zope.filerepresentation · zope.globalrequest · zope.hookable · zope.lifecycleevent · Persistence · persistent · MultiMapping · zope.location · zope.configuration