PyContracts

PyContracts is a Python package that allows to declare constraints on function parameters and return values. Contracts can be specified using Python3 annotations, in a decorator, or inside a docstrin…

Installation

In a virtualenv (see these instructions if you need to create one):

pip3 install pycontracts

Dependencies

Releases

Version Released Bullseye
Python 3.9
Bookworm
Python 3.11
Trixie
Python 3.13
Files
1.8.12 2019-02-05  
1.8.11 2019-02-05  
1.8.10 2019-02-04  
1.8.9 2019-02-04  
1.8.8 2019-01-30  
1.8.7 2018-11-16  
1.8.6 2018-10-23  
1.8.5 2018-10-21  
1.8.4 2018-10-21  
1.8.3 2018-03-18  
1.8.2 2018-01-06  
1.8.1 2018-01-06  
1.8.0 2017-09-24  
1.7.16 2017-09-24  
1.7.15 2016-11-28  
1.7.14 2016-11-28  
1.7.13 2016-11-28  
1.7.12 2016-11-07  
1.7.11 2016-11-05  
1.7.10 2016-11-05  
1.7.9 2015-11-18  
1.7.8 2015-11-10  
1.7.7 2015-11-06      
1.7.6 2015-06-02  
1.7.4 2015-06-02  
1.7.3 2015-06-02  
1.7.2 2015-05-01  
1.7.1 2014-11-30  
1.7.0 2014-11-21  
1.6.6 2014-10-22  
1.6.5 2014-09-11  
1.6.4 2014-08-20  
1.6.3 2014-08-14  
1.6.2 2014-07-13  
1.6.0 2013-09-10  
1.5.1 2013-03-18  
1.5.0 2013-02-08  
1.4.0 2012-07-15  
1.2.0 2011-10-12  

Issues with this package?

Page last updated 2025-09-08 03:19:45 UTC