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.4 (2011-07-04)

  • LP 804951: InterfaceClass instances were unhashable under Python 3.x.

3.6.3 (2011-05-26)

  • LP #570942: Now correctly compare interfaces from different modules but with the same names.

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

This version

3.6.4

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.4.tar.gz (95.3 kB view details)

Uploaded Source

Built Distributions

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

zope.interface-3.6.4.win-amd64-py2.7.exe (356.8 kB view details)

Uploaded Source

zope.interface-3.6.4.win-amd64-py2.6.exe (356.8 kB view details)

Uploaded Source

zope.interface-3.6.4.win32-py2.7.exe (328.5 kB view details)

Uploaded Source

zope.interface-3.6.4.win32-py2.6.exe (328.5 kB view details)

Uploaded Source

zope.interface-3.6.4-py2.7-win-amd64.egg (210.8 kB view details)

Uploaded Egg

zope.interface-3.6.4-py2.7-win32.egg (210.0 kB view details)

Uploaded Egg

zope.interface-3.6.4-py2.6-win-amd64.egg (211.3 kB view details)

Uploaded Egg

zope.interface-3.6.4-py2.6-win32.egg (210.5 kB view details)

Uploaded Egg

zope.interface-3.6.4-py2.5-win32.egg (209.9 kB view details)

Uploaded Egg

zope.interface-3.6.4-py2.4-win32.egg (211.3 kB view details)

Uploaded Egg

File details

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

File metadata

File hashes

Hashes for zope.interface-3.6.4.tar.gz
Algorithm Hash digest
SHA256 83c59a22c154029fbf35862afa7b56a22e295b7fe58ee358ef1d7532ed3bb7a9
MD5 2071121e3c5daeeca229e4d3a58548c1
BLAKE2b-256 bdad1236762dd3cd69ea687d61c65ed0510770f2eec1019349794fa95ddcea30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.interface-3.6.4.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 962141f4665aa6f1b5a19a913a0fb8ef4732844e96082af8bee37140c8ea1ab6
MD5 0631037e5021821523360f3a96777771
BLAKE2b-256 c472f96ad9483bcf63c1947beaa4afa7039c864b2e34f6ff8419de669b19c51f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.interface-3.6.4.win-amd64-py2.6.exe
Algorithm Hash digest
SHA256 da3ad7e41473c48ca0840ec39f529a56b4504887fc9553d801bc207297dd834e
MD5 668164816ce18021e8d579d1903f618f
BLAKE2b-256 19df40c4ba2d21ed4b633fb6e5247a3d0d11f442d761a99029c23c479dc87f1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.interface-3.6.4.win32-py2.7.exe
Algorithm Hash digest
SHA256 b8e9e0065e81eac6524c563cd88bd0ef0c21cf561082b144c5105d1273b4f027
MD5 e25b27a37a9f567789aad175cab70fd2
BLAKE2b-256 211d5733a1747af02c0e41e9885cdda14d868ec0febae7ef49a224035310185f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.interface-3.6.4.win32-py2.6.exe
Algorithm Hash digest
SHA256 25eac0f8c320c03eb986ce1f4a8a6a1e2e4b9b3368b78d46630166477e73c646
MD5 6efb19d3a2231f6c88ba61885eaceccb
BLAKE2b-256 c2a85cffa70dddfab6baecae807bbb6615146b15f1d897f9583ee199234da1f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.interface-3.6.4-py2.7-win-amd64.egg
Algorithm Hash digest
SHA256 998a31f5f8c6bbbf0c11b0c77ba6e177eed99e1aa44ef26dbe23c78622c3879a
MD5 873abba61fcc8e77e9b9e8b05c0f5266
BLAKE2b-256 451b97d4ce322fda421d0b86c076c8e08ac787e81d236d8c0c5778b899e39669

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.interface-3.6.4-py2.7-win32.egg
Algorithm Hash digest
SHA256 36c75a62438a748b2edac9ca28ceddecce18481615f66bb5798cef4a387b3fed
MD5 887bffa4e7739c03f2dec72145a67b69
BLAKE2b-256 b192d64b66ccf8277cbfc4254861fde65844d373501d35feaf29dffc9d1b3c42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.interface-3.6.4-py2.6-win-amd64.egg
Algorithm Hash digest
SHA256 ac14a0d55d268a683cd7910ce8d1279bf94d498eca9d07048ab9ac2e6c57bfa4
MD5 13e80424d7f9bda8aa666568a80d5ee1
BLAKE2b-256 7600b3ea8466154c9c898d2643bfb3d708ecc490c17f7876a1e2775f89581ff8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.interface-3.6.4-py2.6-win32.egg
Algorithm Hash digest
SHA256 8d501093044b453bc789ce06606748661bf4a4311102888d042267c07d50cc21
MD5 500877d10724f7357924186517989927
BLAKE2b-256 18dead494200f1acd989f2f4df8a1f2bbf75578db16f0c45770b633b37d483da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.interface-3.6.4-py2.5-win32.egg
Algorithm Hash digest
SHA256 885176e63a01ece5c1e71139131553b000ac3e6a53b6d4cf16d9f95a72ead5e5
MD5 f8cfcee9d8974d8f421572cc3d1c5126
BLAKE2b-256 f79d831f99dd9aca68a66d117a94cca6179254bfb4efb758ace91b5bd3a375f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.interface-3.6.4-py2.4-win32.egg
Algorithm Hash digest
SHA256 6435d62497798f82a15d11c79763778495b0081ce40da592e5c34d2e6a1a995f
MD5 8c560e475ecb6c53b44ef50245d514c9
BLAKE2b-256 c46787b0c9827af2e272d953dc218f30283611a9b72907581324f45c1ca2fe81

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