Description
PyContracts is a Python package that allows to declare constraints on function parameters and
return values. It supports a basic type system, variables binding, arithmetic constraints, and
has several specialized contracts (notably for Numpy arrays).
As a quick intro, please see this presentation about PyContracts.
PyContracts alternatives and similar packages
Based on the "Functional Programming" category.
Alternatively, view contracts alternatives based on common mentions on social networks and blogs.
-
fn.py
Functional programming in Python: implementation of missing features to enjoy FP -
returns
Make your functions return something meaningful, typed, and safe! -
Pyrsistent
Persistent/Immutable/Functional data structures for Python -
CyToolz
Cython implementation of Toolz: High performance functional utilities -
Deal
Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free. -
effect
effect isolation in Python, to facilitate more purely functional code -
icontract
Design-by-contract in Python3 with informative violation messages and inheritance
Write Clean Python Code. Always.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of PyContracts or a related project?