zope.size
Interfaces and simple adapter that give the size of an object
Decision gist · record as of 2026-08-14
Yes, if you are working within the Zope ecosystem or need a lightweight, stable interface for object sizing. The package has no known vulnerabilities, low install friction, and current Python support. However, verify that ZPL-2.1 is compatible with your project's license requirements before committing, and note that the aging maintenance status means updates are infrequent.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; zope.interface and zope.i18nmessageid must be available at runtime.
- Low install friction with a pure-wheel distribution.
- Maintenance status is aging—last release was 336 days ago—but the package remains in production/stable state with active repository and current Python version support.
License · maintenance · safety
ZPL-2.1 (unclear) — Licensed under ZPL-2.1 (Zope Public License 2.1), which is OSI-approved but marked as unclear in treatment. Verify compatibility with your project's license policy before adopting.
last release 2025-09-12 (336 days) · last repo commit 2025-09-12 · 2 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 148,174 downloads/mo, #11,042 on PyPI
Alternatives
Verify before relying
pip install zope.size
from zope.size import ISized
from zope.interface import implementer
@implementer(ISized)
class MyObject:
def getSize(self):
return size in bytes- Whether ZPL-2.1 license is compatible with common project licenses (GPL, MIT, Apache 2.0, etc.)
- Real-world usage patterns and adoption outside the Zope ecosystem
- Concrete example values for getSize() return to illustrate typical usage
What it is and what it does
zope.size defines a simple interface (ISized) that applications can use to retrieve the size of objects in bytes, typically for display or sorting purposes. It provides a default adapter that expects objects to implement a getSize() method returning bytes; if the method is absent, the adapter gracefully returns 'not available' rather than crashing.
The package is part of the Zope ecosystem and is designed as a lightweight utility for standardizing how object sizes are exposed across applications. It depends on zope.interface for interface definitions and zope.i18nmessageid for internationalization support. The package is stable and actively maintained for current Python versions (3.9, 3.10, 3.11, 3.12, 3.13), though releases are infrequent.
Use it for
- Display object sizes in web applications or admin interfaces without custom size-retrieval logic.
- Sort collections of objects by their size using a standardized interface.
- Provide a consistent interface for third-party libraries to query object sizes in Zope-based systems.
- Adapt legacy objects to expose size information through a common interface.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are working within the Zope ecosystem or need a lightweight, stable interface for object sizing.
The package has no known vulnerabilities, low install friction, and current Python support. However, verify that ZPL-2.1 is compatible with your project's license requirements before committing, and note that the aging maintenance status means updates are infrequent.
Install
zope-size on PyPI
Before you install
Low install friction with a pure-wheel distribution. Maintenance status is aging—last release was 336 days ago—but the package remains in production/stable state with active repository and current Python version support.
Requires Python 3.9 or later; zope.interface and zope.i18nmessageid must be available at runtime.
License in practice
Licensed under ZPL-2.1 (Zope Public License 2.1), which is OSI-approved but marked as unclear in treatment. Verify compatibility with your project's license policy before adopting.
Quickstart
pip install zope.size
from zope.size import ISized
from zope.interface import implementer
@implementer(ISized)
class MyObject:
def getSize(self):
return size in bytes
Verify before relying
- Whether ZPL-2.1 license is compatible with common project licenses (GPL, MIT, Apache 2.0, etc.)
- Real-world usage patterns and adoption outside the Zope ecosystem
- Concrete example values for getSize() return to illustrate typical usage
Package facts
| License | ZPL-2.1 unclear |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagessetuptoolszope.interfacezope.i18nmessageid |
| Maintenance | Aging 336 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 148,174 / month, #11,042 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_size-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 size interface”
- zope.sizeProvides a standard interface and adapter for retrieving object…
- s3pathlibs3pathlib provides a pathlib-like object-oriented interface to AWS…
- objsizeMeasures the complete memory footprint of Python objects including…
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.component · zope.globalrequest · zope.filerepresentation · zope.traversing · zope.container · zope.configuration · zope.exceptions · zope.annotation · zope.dottedname · zope.deferredimport