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.
-
Deal
🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.
Judoscale - Save 47% on cloud hosting with autoscaling that just works

* 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?