Interfaces and simple adapter that give the size of an object
Project description
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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file zope.size-5.0.tar.gz
.
File metadata
- Download URL: zope.size-5.0.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b15453e34f816ff5459ad83cd935029aa581c6a453463e03c5e2d97bd20a432a |
|
MD5 | 93fd60fc40fb4b3fae538ee724de8287 |
|
BLAKE2b-256 | cd390f00742892eeb81e3fc9f8d73db4804d6c73ba4ebc0fbc376b855d28f39d |
File details
Details for the file zope.size-5.0-py3-none-any.whl
.
File metadata
- Download URL: zope.size-5.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d4b3d6de6c51ad003ee16631f8bf423f4b3f8ecaf48ac46ca39f3f4c22319ba |
|
MD5 | d557da0960e3c7450f19784fe6b082e3 |
|
BLAKE2b-256 | 36189d02077feb06605d24cb6ed1604b0313f9619700781c3bb546d72afaf221 |