python-contract - Programming by contract for Python

Property Value
Distribution Ubuntu 16.04 LTS (Xenial Xerus)
Repository Ubuntu Universe amd64
Package name python-contract
Package version 1.4
Package release 4
Package architecture all
Package type deb
Installed size 147 B
Download size 26.56 KB
Official Mirror
This package provides a means for programming by contract in Python.
Programming by contact is a methodology whereby a API designer can
define checkable preconditions and postconditions for method calls,
and invariants for classes and methods.  The most famous use of this
methodology is in the Eiffel programming language.
This implementation of programming by contract has the developer
write constraints in the docstrings of methods and classes that can
be optionally checked at runtime.  If the constraints are not met,
an exception is raised.


Package Version Architecture Repository
python-contract_1.4-4_all.deb 1.4 all Ubuntu Universe
python-contract - - -


Name Value
python << 2.8
python >= 2.7


Type URL
Binary Package python-contract_1.4-4_all.deb
Source Package python-contract

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install python-contract deb package:
    # sudo apt-get install python-contract




2014-07-13 - Matthias Klose <>
python-contract (1.4-4) unstable; urgency=medium
* QA upload.
* Build using dh_python2
2011-04-14 - Jakub Wilk <>
python-contract (1.4-3) unstable; urgency=low
* QA upload.
[ Piotr Ożarowski ]
* Rename XS-Vcs-* fields to Vcs-* (dpkg supports them now)
[ Scott Kitterman ]
* Adjust build dir and test PYTHONPATH in debian/rules to fix FTBFS due to
test failure when only Python 2.6 and later are supported Python versions
(closes: #614949)
[ Sandro Tosi ]
* debian/control
- uniforming Vcs-Browser field
* debian/control
- switch Vcs-Browser field to viewsvn
[ Jakub Wilk ]
* Set maintainer to Debian QA Group and remove uploaders (see #565754).
* Fix capitalization errors in the package description.
* Add ${misc:Depends}.
* Build-depend on python-all rather than python-all-dev.
* Remove debian/dirs; not needed anymore.
* Switch to source format 3.0 (quilt).
* Bump standards version to 3.9.2.
+ Remove quilt from Build-Depends.
+ Remove explicit patching from debian/rules.
* Set section to ‘python’.
* Remove XB-Python-Version.
* Add patch descriptions.
2007-09-29 - Mike O'Connor <>
python-contract (1.4-2) unstable; urgency=low
* Initial release (Closes: 444390)
2007-09-14 - Mike O'Connor <>
python-contract (1.4-1) UNRELEASED; urgency=low
* initially packaged

See Also

Package Description
python-convoy_0.2.1+bzr39-1_all.deb WSGI app for loading multiple files in the same request
python-cookiecutter-doc_1.3.0-2_all.deb create projects from project templates (documentation)
python-cookiecutter_1.3.0-2_all.deb create projects from project templates (Python 2 module)
python-cookies_2.2.1-1_all.deb Python RFC 6265-compliant cookie parser and renderer
python-corepywrap_1.005-4build1_amd64.deb library that exports C++ mmCIF accessors to Python
python-couchdb_0.10-1.1_all.deb library for working with Apache CouchDB
python-couchdbkit_0.6.5-2_all.deb Trying to improve couchdb experience in Python
python-couleur_0.5.0-3_all.deb tool to play around with ANSI features in a unix terminal
python-cov-core_1.15.0-1build1_all.deb plugin core for use by pytest-cov, nose-cov and nose2-cov
python-coverage-test-runner_1.11-1_all.deb fail Python program unit tests unless they test everything
python-coverage_3.7.1+dfsg.1-1ubuntu7_amd64.deb code coverage tool for Python 2
python-cpl_0.7-4build2_amd64.deb Control pipeline recipes from the European Southern Observatory
python-cpopen_1.4-1_amd64.deb C reimplementation of the tricky bits of Python's Popen
python-cqmf2_0.16-9ubuntu2_amd64.deb enterprise messaging system - Python CQMF2 bindings
python-cqpid_0.16-9ubuntu2_amd64.deb enterprise messaging system - Python CQPID bindings