pip install PyContracts==1.8.12

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 docstring :type: and :rtype: tags. PyContracts supports a basic type system, variables binding, arithmetic constraints, and has several specialized contracts (notably for Numpy arrays), as well as an extension API.

Source
Among top 2% packages on PyPI.
Over 204.4K downloads in the last 90 days.

Commonly used with PyContracts

Based on how often these packages appear together in public requirements.txt files on GitHub.

simpleai

An implementation of AI algorithms based on aima-python

pyrtlsdr

A Python wrapper for librtlsdr (a driver for Realtek RTL2832U based SDR's)

livestreamer

Livestreamer is command-line utility that extracts streams from various services and pipes them into a video player of choice.

txgithub

GitHub API client implemented using Twisted.

ofxclient

OFX client for dowloading transactions from banks

mongodict

MongoDB-backed Python dict-like interface

scikits.samplerate

A python module for high quality audio resampling

mysql-connector-repackaged

MySQL driver written in Python

power

Cross-platform system power status information.

dosage

a comic strip downloader and archiver

smartdc

Experimental Joyent SmartDataCenter 6.5 & 7.0 CloudAPI connector using http-signature authentication via Requests

httpserver

Asyncio implementation of an HTTP server

simplebayes

A memory-based, optional-persistence naïve bayesian text classifier.

graphite-api

Graphite-web, without the interface. Just the rendering HTTP API.

notify

Notify process termination via email

chainmap

Backport/clone of ChainMap for py26, py32, and pypy3.

hsaudiotag3k

Read metdata (tags) of mp3, mp4, wma, ogg, flac and aiff files.

atomiclong

An AtomicLong type using CFFI.

pymetar

None

Version usage of PyContracts

Proportion of downloaded versions in the last 3 months (only versions over 1%).

1.8.12

93.10%

1.8.6

1.37%