Skip to main content

Interfaces for Python

Project description

zope.interface README

This package is intended to be independently reusable in any Python project. It is maintained by the Zope Toolkit project.

This package provides an implementation of “object interfaces” for Python. Interfaces are a mechanism for labeling objects as conforming to a given API or contract. So, this package can be considered as implementation of the Design By Contract methodology support in Python.

For detailed documentation, please see http://docs.zope.org/zope.interface

zope.interface Changelog

3.6.2 (2011-05-17)

  • Moved detailed documentation out-of-line from PyPI page, linking instead to http://docs.zope.org/zope.interface .

  • Fixes for small issues when running tests under Python 3.2 using zope.testrunner.

  • LP # 675064: Specify return value type for C optimizations module init under Python 3: undeclared value caused warnings, and segfaults on some 64 bit architectures.

  • setup.py now raises RuntimeError if you don’t have Distutils installed when running under Python 3.

3.6.1 (2010-05-03)

  • A non-ASCII character in the changelog made 3.6.0 uninstallable on Python 3 systems with another default encoding than UTF-8.

  • Fixed compiler warnings under GCC 4.3.3.

3.6.0 (2010-04-29)

  • LP #185974: Clear the cache used by Specificaton.get inside Specification.changed. Thanks to Jacob Holm for the patch.

  • Added support for Python 3.1. Contributors:

    Lennart Regebro Martin v Loewis Thomas Lotze Wolfgang Schnerring

    The 3.1 support is completely backwards compatible. However, the implements syntax used under Python 2.X does not work under 3.X, since it depends on how metaclasses are implemented and this has changed. Instead it now supports a decorator syntax (also under Python 2.X):

    class Foo:
        implements(IFoo)
        ...

    can now also be written:

    @implementor(IFoo):
    class Foo:
        ...

    There are 2to3 fixers available to do this change automatically in the zope.fixers package.

  • Python 2.3 is no longer supported.

3.5.4 (2009-12-23)

  • Use the standard Python doctest module instead of zope.testing.doctest, which has been deprecated.

3.5.3 (2009-12-08)

3.5.2 (2009-07-01)

  • BaseAdapterRegistry.unregister, unsubscribe: Remove empty portions of the data structures when something is removed. This avoids leaving references to global objects (interfaces) that may be slated for removal from the calling application.

3.5.1 (2009-03-18)

  • verifyObject: use getattr instead of hasattr to test for object attributes in order to let exceptions other than AttributeError raised by properties propagate to the caller

  • Add Sphinx-based documentation building to the package buildout configuration. Use the bin/docs command after buildout.

  • Improve package description a bit. Unify changelog entries formatting.

  • Change package’s mailing list address to zope-dev at zope.org as zope3-dev at zope.org is now retired.

3.5.0 (2008-10-26)

  • Fixed declaration of _zope_interface_coptimizations, it’s not a top level package.

  • Add a DocTestSuite for odd.py module, so their tests are run.

  • Allow to bootstrap on Jython.

  • Fix https://bugs.launchpad.net/zope3/3.3/+bug/98388: ISpecification was missing a declaration for __iro__.

  • Added optional code optimizations support, which allows the building of C code optimizations to fail (Jython).

  • Replaced _flatten with a non-recursive implementation, effectively making it 3x faster.

3.4.1 (2007-10-02)

  • Fixed a setup bug that prevented installation from source on systems without setuptools.

3.4.0 (2007-07-19)

  • Final release for 3.4.0.

3.4.0b3 (2007-05-22)

  • Objects with picky custom comparison methods couldn’t be added to component registries. Now, when checking whether an object is already registered, identity comparison is used.

3.3.0.1 (2007-01-03)

  • Made a reference to OverflowWarning, which disappeared in Python 2.5, conditional.

3.3.0 (2007/01/03)

New Features

  • The adapter-lookup algorithim was refactored to make it much simpler and faster.

    Also, more of the adapter-lookup logic is implemented in C, making debugging of application code easier, since there is less infrastructre code to step through.

  • We now treat objects without interface declarations as if they declared that they provide zope.interface.Interface.

  • There are a number of richer new adapter-registration interfaces that provide greater control and introspection.

  • Added a new interface decorator to zope.interface that allows the setting of tagged values on an interface at definition time (see zope.interface.taggedValue).

Bug Fixes

  • A bug in multi-adapter lookup sometimes caused incorrect adapters to be returned.

3.2.0.2 (2006-04-15)

  • Fix packaging bug: ‘package_dir’ must be a relative path.

3.2.0.1 (2006-04-14)

  • Packaging change: suppress inclusion of ‘setup.cfg’ in ‘sdist’ builds.

3.2.0 (2006-01-05)

  • Corresponds to the verison of the zope.interface package shipped as part of the Zope 3.2.0 release.

3.1.0 (2005-10-03)

  • Corresponds to the verison of the zope.interface package shipped as part of the Zope 3.1.0 release.

  • Made attribute resolution order consistent with component lookup order, i.e. new-style class MRO semantics.

  • Deprecated ‘isImplementedBy’ and ‘isImplementedByInstancesOf’ APIs in favor of ‘implementedBy’ and ‘providedBy’.

3.0.1 (2005-07-27)

  • Corresponds to the verison of the zope.interface package shipped as part of the Zope X3.0.1 release.

  • Fixed a bug reported by James Knight, which caused adapter registries to fail occasionally to reflect declaration changes.

3.0.0 (2004-11-07)

  • Corresponds to the verison of the zope.interface package shipped as part of the Zope X3.0.0 release.

Release history Release notifications | RSS feed

Download files

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

Source Distribution

zope.interface-3.6.2.tar.gz (95.0 kB view details)

Uploaded Source

Built Distributions

zope.interface-3.6.2.win-amd64-py2.7.exe (356.1 kB view details)

Uploaded Source

zope.interface-3.6.2.win-amd64-py2.6.exe (356.1 kB view details)

Uploaded Source

zope.interface-3.6.2.win32-py2.7.exe (327.8 kB view details)

Uploaded Source

zope.interface-3.6.2.win32-py2.6.exe (327.8 kB view details)

Uploaded Source

zope.interface-3.6.2-py2.7-win-amd64.egg (210.1 kB view details)

Uploaded Egg

zope.interface-3.6.2-py2.7-win32.egg (209.3 kB view details)

Uploaded Egg

zope.interface-3.6.2-py2.6-win-amd64.egg (210.6 kB view details)

Uploaded Egg

zope.interface-3.6.2-py2.6-win32.egg (209.7 kB view details)

Uploaded Egg

zope.interface-3.6.2-py2.5-win32.egg (209.2 kB view details)

Uploaded Egg

zope.interface-3.6.2-py2.4-win32.egg (210.6 kB view details)

Uploaded Egg

File details

Details for the file zope.interface-3.6.2.tar.gz.

File metadata

File hashes

Hashes for zope.interface-3.6.2.tar.gz
Algorithm Hash digest
SHA256 e305424a0ff48e0a86c1f4ddc118858e82284e21bb607854ab370b3a38ee5d55
MD5 ff96143235ee69d8f1d88e3b1bfd1c20
BLAKE2b-256 9d61652e5c0dcbc5a6b3b93cdb2a1d8ce3e41be1af288a45ddae82c7bbe93dbb

See more details on using hashes here.

File details

Details for the file zope.interface-3.6.2.win-amd64-py2.7.exe.

File metadata

File hashes

Hashes for zope.interface-3.6.2.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 b4e9814b9cc8785d143a7a9515fee7a77611778d9871d612053dac5c452a865f
MD5 9f915b532c9639d3132a67253fe299a6
BLAKE2b-256 5bcf756ba1c679d803e5c031bc4863bad6df557391f02a8d76617bc7c592f1be

See more details on using hashes here.

File details

Details for the file zope.interface-3.6.2.win-amd64-py2.6.exe.

File metadata

File hashes

Hashes for zope.interface-3.6.2.win-amd64-py2.6.exe
Algorithm Hash digest
SHA256 9c4aca9784d2335120966408b7d1d38bfdc4c6734d9fe6e3f4522be0b64f6837
MD5 5fa21b39f5054b165152724817e61494
BLAKE2b-256 5e15c7bd5846d0a1f406eefc051603e77f38fd6b6aa2f74bac36e489c8bc4754

See more details on using hashes here.

File details

Details for the file zope.interface-3.6.2.win32-py2.7.exe.

File metadata

File hashes

Hashes for zope.interface-3.6.2.win32-py2.7.exe
Algorithm Hash digest
SHA256 9af8a78311ef810c7f1e5616a48b24a0a096b2bce8f9923b72c81debe2e3fc5b
MD5 00c3831f9c665b8242e846dd8f4643e0
BLAKE2b-256 0d894357d8df4a7af179f57cafe4fdbee9f3623a0d209aebc86a57c22d7c007a

See more details on using hashes here.

File details

Details for the file zope.interface-3.6.2.win32-py2.6.exe.

File metadata

File hashes

Hashes for zope.interface-3.6.2.win32-py2.6.exe
Algorithm Hash digest
SHA256 032b19f77ddab06d07642c4cd8a9311b40a9276cba0ad5ca75e9aecea4913aac
MD5 dcd77ea10afa205490e65e08aea76b13
BLAKE2b-256 8f9f91974d41b9fe65dbb753998e2056c82830daa2d95beaf0831a11d5d4edb1

See more details on using hashes here.

File details

Details for the file zope.interface-3.6.2-py2.7-win-amd64.egg.

File metadata

File hashes

Hashes for zope.interface-3.6.2-py2.7-win-amd64.egg
Algorithm Hash digest
SHA256 6bc018f9056df4350a02233a831e304912003b155f78b40c48499564446bdbe0
MD5 080dccaa7d3c1d3f8c6568590358dea1
BLAKE2b-256 530b11baca9b7b70a02f27abeea177c21ee0dfdf3c71b66994a0337b5d966204

See more details on using hashes here.

File details

Details for the file zope.interface-3.6.2-py2.7-win32.egg.

File metadata

File hashes

Hashes for zope.interface-3.6.2-py2.7-win32.egg
Algorithm Hash digest
SHA256 7e43cff382cb6d54b7579d88faaedecb5da729ab288a295f0e74ec52e54efc8f
MD5 7fc3da1d5c0e5c29eb69afaa7c770bed
BLAKE2b-256 764064be2b0076c51307e5e3878bad79fba3311ec65109aad0d5608cf2e40961

See more details on using hashes here.

File details

Details for the file zope.interface-3.6.2-py2.6-win-amd64.egg.

File metadata

File hashes

Hashes for zope.interface-3.6.2-py2.6-win-amd64.egg
Algorithm Hash digest
SHA256 bae61c6d32dafb3e0a05d5fc6f22560dfeb678e7e7b7eccc3f090b2daab27247
MD5 8ab892d410640efd9f1e4e05bea94542
BLAKE2b-256 71b2d04efa2936d5f9cd42de431c4d68346bddbfc1e2cd5440980eacf31ead6c

See more details on using hashes here.

File details

Details for the file zope.interface-3.6.2-py2.6-win32.egg.

File metadata

File hashes

Hashes for zope.interface-3.6.2-py2.6-win32.egg
Algorithm Hash digest
SHA256 f9a95640c564bf99469b60a1ced986976ddeca3a91eb1fd01ab7afe453a6e744
MD5 36c4985976f8f3cca5971e3cf1a99334
BLAKE2b-256 e659e6dcc99af396c76070a73e5455ce2708c596d8832559b59f72327d478658

See more details on using hashes here.

File details

Details for the file zope.interface-3.6.2-py2.5-win32.egg.

File metadata

File hashes

Hashes for zope.interface-3.6.2-py2.5-win32.egg
Algorithm Hash digest
SHA256 58d2b3ba4cedb525b07b4468d4e7a83d67d8ac870d2b1b91330ae0fbafadd19f
MD5 ad731d9e3a41454779fc56fdfe7db192
BLAKE2b-256 0e328838eec72b86f38b77ec154c29fbc6151e5a21c8ef055c34a30e8cb45c02

See more details on using hashes here.

File details

Details for the file zope.interface-3.6.2-py2.4-win32.egg.

File metadata

File hashes

Hashes for zope.interface-3.6.2-py2.4-win32.egg
Algorithm Hash digest
SHA256 5ae7b3de72626cfb74bc0d5b1c7cf8bf8775f58a8860699d04600b0608c49c53
MD5 878385083b8a242d15c3a5b50d11ae9d
BLAKE2b-256 b886dcd90294a21cb7391608bf4f8cb0f092681ef372ac3b8577ee45df0c2476

See more details on using hashes here.

Supported by

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