Simple interface and default adapter for retrieving the size of an object for displaying or sorting
Python
Latest commit 98b1847 Dec 15, 2016 @jamadden jamadden committed on GitHub Support for hosting the docs on RTD. (#3)
* Support for hosting the docs on RTD.

* copyright date and one-line description in conf.py per review [skip ci]
Permalink
Failed to load latest commit information.
docs
src/zope Support for hosting the docs on RTD. (#3) Dec 15, 2016
.gitignore
.travis.yml
CHANGES.rst
COPYRIGHT.txt Conform to repository policy. May 5, 2010
LICENSE.txt
MANIFEST.in
README.rst Support for hosting the docs on RTD. (#3) Dec 15, 2016
bootstrap.py update bootstrap.py Apr 20, 2016
buildout.cfg include zcml dependencies in configure.zcml, require the necessary pa… Feb 14, 2011
doc-requirements.txt Support for hosting the docs on RTD. (#3) Dec 15, 2016
setup.py
tox.ini Add support for Python 3.5. Apr 14, 2016
version.txt

README.rst

zope.size

https://travis-ci.org/zopefoundation/zope.size.png?branch=master Documentation Status

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