Skip to main content

Integer Id Utility

Project description

zope.intid

Latest release Supported Python versions https://travis-ci.com/zopefoundation/zope.intid.svg?branch=master Documentation Status Code Coverage

This package provides an API to create integer ids for any object. Later objects can be looked up by their id as well. This functionality is commonly used in situations where dealing with objects is undesirable, such as in search indices or any code that needs an easy hash of an object.

Documentation is hosted at http://zopeintid.readthedocs.io

Changes

4.4.0 (2021-03-19)

  • Fixed deprecation warning for zope.site.hooks in tests.

  • Add support for Python 3.7 and 3.8.

  • Drop support for Python 3.4.

  • Fix incorrect import of zope.interface.interfaces.IComponentLookup in tests.

4.3.0 (2017-07-26)

  • Add support for Python 3.6.

  • Drop support for Python 3.3.

4.2.0 (2016-12-08)

  • Raise more informative KeyError subclasses from the utility when intids or objects cannot be found. This distinguishes them from errors raised by normal dictionaries or BTrees, and is useful in unit testing or when persisting intids or sharing them among processes for later or concurrent use.

  • Propagate POSKeyError from queryId instead of returning the default object. This exception indicates a corrupt database, not a missing object. The queryObject function already behaved this way.

  • Stop depending on ZODB for anything except testing.

  • Add support for Python 3.5 and PyPy3 5.2.

  • Drop support for Python 2.6.

4.1.0 (2014-12-27)

  • Add support for PyPy (PyPy3 blocked on PyPy3-compatible zodbpickle).

  • Add support for Python 3.4.

4.0.0 (2014-12-20)

  • Add support for testing on Travis.

4.0.0a1 (2013-02-22)

  • Add support for Python 3.3.

  • Replace deprecated zope.interface.implements usage with equivalent zope.interface.implementer decorator.

  • Drop support for Python 2.4 and 2.5.

  • Bug fix: ensure that the IntId utility never generates ids greater than the maxint of the BTree family being used.

3.7.2 (2009-12-27)

  • Use the zope.component API in favor of ztapi.

  • Remove zope.app.testing dependency.

3.7.1 (2009-05-18)

  • Remove dependencies on zope.container. Instead import Object*Event classes from zope.lifecycleevent and import IContained from zope.location. In order to be able to do this, depend on zope.lifecycleevent>=3.5.2 and zope.location>=3.5.4.

  • Remove a dependency on zope.container.contained.Contained (this is a dumb base class that defines __parent__ and __name__ as None and declares that the class implements IContained).

3.7.0 (2009-02-01)

  • Split out this package from zope.app.intid. The latter one now only contains browser views and compatibility imports while whole IntId functionality is moved here.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zope.intid-4.4.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zope.intid-4.4.0-py2.py3-none-any.whl (12.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file zope.intid-4.4.0.tar.gz.

File metadata

  • Download URL: zope.intid-4.4.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/2.7.18

File hashes

Hashes for zope.intid-4.4.0.tar.gz
Algorithm Hash digest
SHA256 662f1ff0996302176543b5b0b30ed2064abb58a74aec944c954c1325fcaba08f
MD5 f17c707e6673441f3b61532bbc28d1fe
BLAKE2b-256 16f98060c91e33c8f263730ad5b8608fda3251cc34794cf823ae6ace7c098259

See more details on using hashes here.

File details

Details for the file zope.intid-4.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: zope.intid-4.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/2.7.18

File hashes

Hashes for zope.intid-4.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 264d17ef8c3331d155945270da7fbdcda25e7190920296c30be483bcc6362dec
MD5 b6df082a9ea4024e6407a83657f9de29
BLAKE2b-256 45d18fd674cf0ca3d841959cae252408e65733391492403ec476e3af32818143

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page