Metadata-Version: 2.4
Name: zope.size
Version: 6.0
Summary: Interfaces and simple adapter that give the size of an object
Home-page: http://github.com/zopefoundation/zope.size
Author: Zope Foundation and Contributors
Author-email: zope-dev@zope.dev
License: ZPL-2.1
Keywords: size display human bytes
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development
Requires-Python: >=3.9
License-File: LICENSE.txt
Requires-Dist: setuptools
Requires-Dist: zope.interface
Requires-Dist: zope.i18nmessageid
Provides-Extra: zcml
Requires-Dist: zope.component[zcml]; extra == "zcml"
Requires-Dist: zope.configuration; extra == "zcml"
Requires-Dist: zope.security[zcml]; extra == "zcml"
Provides-Extra: test
Requires-Dist: zope.component[zcml]; extra == "test"
Requires-Dist: zope.configuration; extra == "test"
Requires-Dist: zope.security[zcml]; extra == "test"
Provides-Extra: docs
Requires-Dist: Sphinx; extra == "docs"
Requires-Dist: repoze.sphinx.autointerface; extra == "docs"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

===============
 ``zope.size``
===============

.. image:: https://img.shields.io/pypi/v/zope.size.svg
        :target: https://pypi.python.org/pypi/zope.size/
        :alt: Latest release

.. image:: https://img.shields.io/pypi/pyversions/zope.size.svg
        :target: https://pypi.org/project/zope.size/
        :alt: Supported Python versions

.. image:: https://github.com/zopefoundation/zope.size/actions/workflows/tests.yml/badge.svg
        :target: https://github.com/zopefoundation/zope.size/actions/workflows/tests.yml

.. image:: https://readthedocs.org/projects/zopesize/badge/?version=latest
        :target: https://zopesize.readthedocs.io/en/latest/
        :alt: Documentation Status

.. image:: https://coveralls.io/repos/github/zopefoundation/zope.size/badge.svg?branch=master
        :target: https://coveralls.io/github/zopefoundation/zope.size?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


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
