===============
``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
=======
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
Raw data
{
"_id": null,
"home_page": "http://github.com/zopefoundation/zope.size",
"name": "zope.size",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "size display human bytes",
"author": "Zope Foundation and Contributors",
"author_email": "zope-dev@zope.dev",
"download_url": "https://files.pythonhosted.org/packages/cd/39/0f00742892eeb81e3fc9f8d73db4804d6c73ba4ebc0fbc376b855d28f39d/zope.size-5.0.tar.gz",
"platform": null,
"description": "===============\n ``zope.size``\n===============\n\n.. image:: https://img.shields.io/pypi/v/zope.size.svg\n :target: https://pypi.python.org/pypi/zope.size/\n :alt: Latest release\n\n.. image:: https://img.shields.io/pypi/pyversions/zope.size.svg\n :target: https://pypi.org/project/zope.size/\n :alt: Supported Python versions\n\n.. image:: https://github.com/zopefoundation/zope.size/actions/workflows/tests.yml/badge.svg\n :target: https://github.com/zopefoundation/zope.size/actions/workflows/tests.yml\n\n.. image:: https://readthedocs.org/projects/zopesize/badge/?version=latest\n :target: https://zopesize.readthedocs.io/en/latest/\n :alt: Documentation Status\n\n.. image:: https://coveralls.io/repos/github/zopefoundation/zope.size/badge.svg?branch=master\n :target: https://coveralls.io/github/zopefoundation/zope.size?branch=master\n\nThis package provides a definition of simple interface that allows\napplications to retrieve the size of the object for displaying and for sorting.\n\nThe default adapter is also provided. It expects objects to have the ``getSize``\nmethod that returns size in bytes. However, the adapter won't crash if an\nobject doesn't have one and will show size as \"not available\" instead.\n\nDevelopment is hosted at https://github.com/zopefoundation/zope.size\n\nDocumentation is hosted at https://zopesize.readthedocs.io\n\n\nChanges\n=======\n\n5.0 (2023-06-30)\n----------------\n\n- Drop support for Python 2.7, 3.5, 3.6.\n\n- Add support for Python 3.11.\n\n\n4.4 (2022-08-30)\n----------------\n\n- Drop support for Python 3.4.\n\n- Add support for Python 3.8, 3.9, 3.10.\n\n\n4.3 (2018-10-05)\n----------------\n\n- Add support for Python 3.7.\n\n\n4.2.0 (2017-07-27)\n------------------\n\n- Add support for Python 3.5 and 3.6.\n\n- Drop support for Python 2.6, 3.2 and 3.3.\n\n\n4.1.0 (2014-12-29)\n------------------\n\n- Add support for PyPy3.\n\n- Add support for Python 3.4.\n\n- Add support for testing on Travis.\n\n\n4.0.1 (2013-03-08)\n------------------\n\n- Add Trove classifiers indicating CPython and PyPy support.\n\n\n4.0.0 (2013-02-13)\n------------------\n\n- Replace deprecated ``zope.interface.implements`` usage with equivalent\n ``zope.interface.implementer`` decorator.\n\n- Drop support for Python 2.4 and 2.5.\n\n- Add support for Python 3.2 and 3.3.\n\n- Conditionally disable tests that require ``zope.configuration`` and\n ``zope.security``.\n\n\n3.5.0 (2011-11-29)\n------------------\n\n- Include zcml dependencies in configure.zcml, require the necessary packages\n via a zcml extra, added tests for zcml.\n\n3.4.1 (2009-09-10)\n------------------\n\n- Add support for bootstrapping on Jython.\n\n- Add docstrings.\n\n- Beautify package's README and include CHANGES into the description.\n\n- Change package's url to PyPI instead of Subversion.\n\n3.4.0 (2006-09-29)\n------------------\n\n- First release as a separate egg\n",
"bugtrack_url": null,
"license": "ZPL 2.1",
"summary": "Interfaces and simple adapter that give the size of an object",
"version": "5.0",
"project_urls": {
"Homepage": "http://github.com/zopefoundation/zope.size"
},
"split_keywords": [
"size",
"display",
"human",
"bytes"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "36189d02077feb06605d24cb6ed1604b0313f9619700781c3bb546d72afaf221",
"md5": "d557da0960e3c7450f19784fe6b082e3",
"sha256": "2d4b3d6de6c51ad003ee16631f8bf423f4b3f8ecaf48ac46ca39f3f4c22319ba"
},
"downloads": -1,
"filename": "zope.size-5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d557da0960e3c7450f19784fe6b082e3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 7926,
"upload_time": "2023-06-30T06:24:32",
"upload_time_iso_8601": "2023-06-30T06:24:32.685170Z",
"url": "https://files.pythonhosted.org/packages/36/18/9d02077feb06605d24cb6ed1604b0313f9619700781c3bb546d72afaf221/zope.size-5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cd390f00742892eeb81e3fc9f8d73db4804d6c73ba4ebc0fbc376b855d28f39d",
"md5": "93fd60fc40fb4b3fae538ee724de8287",
"sha256": "b15453e34f816ff5459ad83cd935029aa581c6a453463e03c5e2d97bd20a432a"
},
"downloads": -1,
"filename": "zope.size-5.0.tar.gz",
"has_sig": false,
"md5_digest": "93fd60fc40fb4b3fae538ee724de8287",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 14737,
"upload_time": "2023-06-30T06:24:34",
"upload_time_iso_8601": "2023-06-30T06:24:34.963533Z",
"url": "https://files.pythonhosted.org/packages/cd/39/0f00742892eeb81e3fc9f8d73db4804d6c73ba4ebc0fbc376b855d28f39d/zope.size-5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-30 06:24:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zopefoundation",
"github_project": "zope.size",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "zope.size"
}