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 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.
Ecosystem
pypi.org
pypi.org
Latest Release
about 7 years ago
1.8.12
about 7 years ago
Versions
39
39
Downloads
13,685 last month
13,685 last month
Dependent Packages
1
1
Dependent Repos
77
77
Loading...
Readme
Loading...
Links
| Registry | pypi.org |
| Source | Repository |
| Homepage | Homepage |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:pypi/pycontracts
spec |
| License | Other |
| First Release | over 14 years ago |
| Last Synced | 2 days ago |
Repository
| Stars | 407 on GitHub |
| Forks | 60 on GitHub |
| Commits | 422 |
| Committers | 19 |
| Avg per Author | 22.211 |
| DDS | 0.382 |
Rankings on pypi.org
Overall
Top 3.4%
Downloads
Top 2.0%
Dependent packages
Top 4.7%
Dependent repos
Top 1.7%
Forks
Top 5.5%