python-contract - Programming by contract for Python

Property Value
Distribution Ubuntu 18.04 LTS (Bionic Beaver)
Repository Ubuntu Universe i386
Package filename python-contract_1.4-4_all.deb
Package name python-contract
Package version 1.4
Package release 4
Package architecture all
Package type deb
Category universe/devel
License -
Maintainer Ubuntu Developers <>
Download size 26.56 KB
Installed size 147.00 KB
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.6.0-2_all.deb create projects from project templates (documentation)
python-cookiecutter_1.6.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-coreapi_2.3.3-2_all.deb Python client library for Core API
python-corepywrap_1.005-5build1_i386.deb library that exports C++ mmCIF accessors to Python
python-coreschema_0.0.4-1_all.deb Python utilities to describe an abstract data schema to coreapi
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-4_all.deb tool to play around with ANSI features in a unix terminal
python-cov-core_1.15.0-2_all.deb plugin core for use by pytest-cov, nose-cov and nose2-cov
python-coverage-doc_4.5+dfsg.1-3_all.deb code coverage tool for Python — documentation
python-coverage-test-runner_1.13.1-1_all.deb fail Python program unit tests unless they test everything
python-coverage_4.5+dfsg.1-3_i386.deb code coverage tool for Python 2
python-cpl_0.7.2-1build2_i386.deb Control pipeline recipes from the European Southern Observatory