Simple interface and default adapter for retrieving the size of an object for displaying or sorting
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
src/zope
.coveragerc
.gitignore
.travis.yml
CHANGES.rst
COPYRIGHT.txt
LICENSE.txt
MANIFEST.in
README.rst
bootstrap.py
buildout.cfg
doc-requirements.txt
setup.cfg
setup.py
tox.ini
version.txt

README.rst

zope.size

Latest release Supported Python versions https://travis-ci.org/zopefoundation/zope.size.svg?branch=master Documentation Status https://coveralls.io/repos/github/zopefoundation/zope.size/badge.svg?branch=master

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