zope.container
Zope Container
Decision gist · record as of 2026-08-14
Yes, if you are building a Zope-based application or framework that requires object containment and lifecycle management. The package is actively maintained, supports modern Python versions (3.10–3.14), has no known vulnerabilities, and is well-integrated into the Zope ecosystem. However, verify that ZPL-2.1 is compatible with your project's license requirements (marked unclear), and be aware of the 19 runtime dependencies—this is a heavyweight addition suitable for Zope-centric projects, not a lightweight utility.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; a full Zope environment with persistent object support is typically needed for practical use.
- Medium install friction due to 19 runtime dependencies spanning the Zope ecosystem (BTrees, persistent, zope.interface, zope.security, zope.schema, and others).
- Maintenance is active with recent releases; the package requires Python 3.10+ and has dropped older Python versions progressively.
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. The license treatment is marked unclear in the fact sheet, so verify compatibility with your project's license policy before adoption.
last release 2025-11-15 (272 days) · last repo commit 2026-08-14 · 4 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 157,542 downloads/mo, #10,753 on PyPI
Alternatives
Verify before relying
from zope.container.btree import BTreeContainer
from zope.container.ordered import OrderedContainer
container = BTreeContainer()
container['key'] = some_object- Whether ZPL-2.1 is compatible with your project's license requirements (marked 'unclear' in metadata).
- Performance characteristics of BTreeContainer vs OrderedContainer for your specific use case.
- Integration requirements with zope.site.folder and other Zope framework components.
What it is and what it does
zope.container is a foundational package in the Zope web framework ecosystem that defines interfaces and provides implementations for container objects—data structures that hold and manage other objects. It supplies two main container types: BTreeContainer, which uses B-tree storage for scalable key-value access, and OrderedContainer, which preserves insertion order. The package also serves as the base for zope.site.folder's Folder implementation. It integrates deeply with Zope's component architecture, persistent object storage, security model, and event system through its 19 runtime dependencies.
The package is used in applications that need to organize persistent objects hierarchically, support traversal and lookup by name, emit lifecycle events when objects are added or removed, and maintain compatibility with Zope's interface-based design patterns. It handles both text and byte keys, supports the PURE_PYTHON environment variable for debugging, and provides utilities like NameChooser for generating unique object names within a container.
Use it for
- Building hierarchical object stores in Zope applications where containers hold and manage persistent objects with named access.
- Implementing folder-like structures that preserve insertion order or optimize for large datasets using B-tree storage.
- Integrating container lifecycle events (add, remove, modify) into Zope's event system for reactive application logic.
- Developing Zope-based CMS or document management systems that require object containment and traversal.
- Creating custom container types by inheriting from BTreeContainer or OrderedContainer with Zope interface compliance.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building a Zope-based application or framework that requires object containment and lifecycle management.
The package is actively maintained, supports modern Python versions (3.10–3.14), has no known vulnerabilities, and is well-integrated into the Zope ecosystem. However, verify that ZPL-2.1 is compatible with your project's license requirements (marked unclear), and be aware of the 19 runtime dependencies—this is a heavyweight addition suitable for Zope-centric projects, not a lightweight utility.
Install
zope-container on PyPI
Before you install
Medium install friction due to 19 runtime dependencies spanning the Zope ecosystem (BTrees, persistent, zope.interface, zope.security, zope.schema, and others). Maintenance is active with recent releases; the package requires Python 3.10+ and has dropped older Python versions progressively. Pre-built wheels available for multiple platforms reduce friction on standard architectures.
Requires Python 3.10 or later; a full Zope environment with persistent object support is typically needed for practical use.
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. The license treatment is marked unclear in the fact sheet, so verify compatibility with your project's license policy before adoption.
Quickstart
from zope.container.btree import BTreeContainer
from zope.container.ordered import OrderedContainer
container = BTreeContainer()
container['key'] = some_object
Verify before relying
- Whether ZPL-2.1 is compatible with your project's license requirements (marked 'unclear' in metadata).
- Performance characteristics of BTreeContainer vs OrderedContainer for your specific use case.
- Integration requirements with zope.site.folder and other Zope framework components.
Package facts
| License | ZPL-2.1 unclear |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 19 packagesBTreespersistentzope.cachedescriptorszope.componentzope.deferredimportzope.dottednamezope.eventzope.filerepresentationzope.i18nmessageidzope.interfacezope.lifecycleeventzope.locationzope.proxyzope.publisherzope.schemazope.securityzope.sizezope.traversingsetuptools |
| Maintenance | Actively maintained 272 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 157,542 / month, #10,753 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/StableEnvironment :: Web EnvironmentFramework :: Zope :: 3Intended 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.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Internet :: WWW/HTTP |
Evidence: zope_container-7.2-cp310-cp310-macosx_10_9_x86_64.whl; zope_container-7.2-cp310-cp310-macosx_11_0_arm64.whl; zope_container-7.2-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl; zope_container-7.2-cp310-cp310-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl; zope_container-7.2-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; zope_container-7.2-cp310-cp310-win_amd64.whl; zope_container-7.2-cp311-cp311-macosx_10_9_x86_64.whl; zope_container-7.2-cp311-cp311-macosx_11_0_arm64.whl; zope_container-7.2-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl; zope_container-7.2-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl; zope_container-7.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; zope_container-7.2-cp311-cp311-win_amd64.whl; zope_container-7.2-cp312-cp312-macosx_10_9_x86_64.whl; zope_container-7.2-cp312-cp312-macosx_11_0_arm64.whl; zope_container-7.2-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl; zope_container-7.2-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl; zope_container-7.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; zope_container-7.2-cp312-cp312-win_amd64.whl; zope_container-7.2-cp313-cp313-macosx_10_9_x86_64.whl; zope_container-7.2-cp313-cp313-macosx_11_0_arm64.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 › “zope container object management”
- zope.containerProvides container interfaces and implementations (BTreeContainer,…
- zope.locationProvides a structural location system for Zope 3 objects using…
- AcquisitionAcquisition implements a mechanism for Python objects to…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also BTrees · zope.annotation · zope.location · zope.traversing · zope.filerepresentation · zope.proxy · zope.component · Persistence · zope.interface · zope.lifecycleevent