This package provides a definition of simple interface that allows applications to retrieve the size of the object for displaying and for sorting.
The default adapter is also provided. It expects objects to have the getSize method that returns size in bytes. However, the adapter won’t crash if an object doesn’t have one and will show size as “not available” instead.
Development is hosted at https://github.com/zopefoundation/zope.size
Documentation is hosted at https://zopesize.readthedocs.io
Changes
6.0 (2025-09-12)
Replace pkg_resources namespace with PEP 420 native namespace.
5.1 (2025-02-14)
Add support for Python 3.12, 3.13.
Drop support for Python 3.7, 3.8.
5.0 (2023-06-30)
Drop support for Python 2.7, 3.5, 3.6.
Add support for Python 3.11.
4.4 (2022-08-30)
Drop support for Python 3.4.
Add support for Python 3.8, 3.9, 3.10.
4.3 (2018-10-05)
Add support for Python 3.7.
4.2.0 (2017-07-27)
Add support for Python 3.5 and 3.6.
Drop support for Python 2.6, 3.2 and 3.3.
4.1.0 (2014-12-29)
Add support for PyPy3.
Add support for Python 3.4.
Add support for testing on Travis.
4.0.1 (2013-03-08)
Add Trove classifiers indicating CPython and PyPy support.
4.0.0 (2013-02-13)
Replace deprecated zope.interface.implements usage with equivalent zope.interface.implementer decorator.
Drop support for Python 2.4 and 2.5.
Add support for Python 3.2 and 3.3.
Conditionally disable tests that require zope.configuration and zope.security.
3.5.0 (2011-11-29)
Include zcml dependencies in configure.zcml, require the necessary packages via a zcml extra, added tests for zcml.
3.4.1 (2009-09-10)
Add support for bootstrapping on Jython.
Add docstrings.
Beautify package’s README and include CHANGES into the description.
Change package’s url to PyPI instead of Subversion.
3.4.0 (2006-09-29)
First release as a separate egg
Release files for zope.size 6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zope_size-6.0.tar.gz | 15.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zope_size-6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.3 kB
Release files / zope_size-6.0.tar.gz
| Download URL | zope_size-6.0.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5ceb10bc878aed4fa4c205e4865bfb936df916a4d0c5d2cd87e5b369c84048d
|
|
BLAKE2b-256 checksum How to use checksums |
014f947e6ba4529aa51b01799e4ae2407eb62a3d413d0fa5ab9bb7511328364f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / zope_size-6.0-py3-none-any.whl
| Download URL | zope_size-6.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f1cf02e89884653b8525607e6be1a8e6984c253bf770b0454e0799dcd4f07ef
|
|
BLAKE2b-256 checksum How to use checksums |
298ecc5b9c953ecc3056979ddbc0ad04198f9861822cf77d951771eb62f42233
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|