How to Install and Uninstall python-contract Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: December 25,2024

1. Install "python-contract" package

In this section, we are going to explain the necessary steps to install python-contract on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python-contract

2. Uninstall "python-contract" package

Here is a brief guide to show you how to uninstall python-contract on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove python-contract $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-contract package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python-contract
Priority: optional
Section: universe/devel
Installed-Size: 147
Maintainer: Ubuntu Developers
Original-Maintainer: Debian QA Group
Architecture: all
Version: 1.4-4
Depends: python (>= 2.7), python (<< 2.8)
Filename: pool/universe/p/python-contract/python-contract_1.4-4_all.deb
Size: 27198
MD5sum: f29bfbdf94850642f778feea13725fec
SHA1: 13e35f9786ee8929232a2329d12ca8fea950a1f8
SHA256: e99b7e8b864229380fd96528d9eefef3770664652cf0588b9c22e3a686e345ab
Description-en: Programming by contract for Python
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.
Description-md5: 47c1b509ceffaa4bd200d5881b030c48
Homepage: http://www.wayforward.net/pycontract/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu