AndreaCensi / contractsLinks
PyContracts is a Python package that allows to declare constraints on function parameters and return values. Contracts can be specified using Python3 annotations, or inside a docstring. PyContracts supports a basic type system, variables binding, arithmetic constraints, and has several specialized contracts and an extension API.
☆415Updated last month
Alternatives and similar repositories for contracts
Users that are interested in contracts are comparing it to the libraries listed below
Sorting:
- Python 3.5+ runtime type checking for integration testing and data validation☆548Updated last year
- Bottom-up approach to refactoring in python☆722Updated 3 years ago
- Typing-toolbox for Python 3 _and_ 2.7 w.r.t. PEP 484.☆201Updated 2 years ago
- For Python3, e.g. @typecheck add_count(count: int, when: any(datetime, timedelta) = datetime.now)☆168Updated 4 years ago
- Powerful Python library for atomic file writes.☆319Updated 3 years ago
- An implementation of contracts for Python.☆350Updated 6 years ago
- Multiple dispatch☆843Updated last year
- An argparse wrapper that doesn't make you say "argh" each time you deal with it.☆379Updated 4 months ago
- Pattern matching for python☆218Updated 11 years ago
- A fast and thorough lazy object proxy.☆262Updated 4 months ago
- IDE allow you to refactor code, Baron allows you to write refactoring code.☆298Updated 4 years ago
- A list-like type with better asymptotic performance and similar performance on small lists☆317Updated 3 years ago
- Python code object transformers