Skip to content

Simple interface and default adapter for retrieving the size of an object for displaying or sorting

License

Notifications You must be signed in to change notification settings

zopefoundation/zope.size

Repository files navigation

zope.size

Latest release Supported Python versions 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

About

Simple interface and default adapter for retrieving the size of an object for displaying or sorting

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages