AndreaCensi / contracts
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.
☆407Updated 4 months ago
Alternatives and similar repositories for contracts:
Users that are interested in contracts are comparing it to the libraries listed below
- An implementation of contracts for Python.☆344Updated 5 years ago
- Python 3.5+ runtime type checking for integration testing and data validation☆545Updated 11 months ago
- Bottom-up approach to refactoring in python☆707Updated 3 years ago
- A fast and thorough lazy object proxy.☆257Updated 2 weeks ago
- Multiple dispatch☆828Updated 5 months ago
- For Python3, e.g. @typecheck add_count(count: int, when: any(datetime, timedelta) = datetime.now)☆169Updated 3 years ago
- vmprof - a statistical program profiler☆432Updated last month
- A high-performance immutable mapping type for Python.☆1,149Updated 6 months ago
- An argparse wrapper that doesn't make you say "argh" each time you deal with it.☆375Updated 8 months ago
- Python decorators for profiling/tracing/timing a single function☆331Updated 3 months ago
- Custom Python linting through AST expressions☆269Updated last year
- IDE allow you to refactor code, Baron allows you to write refactoring code.☆292Updated 3 years ago
- Typing-toolbox for Python 3 _and_ 2.7 w.r.t. PEP 484.☆200Updated 2 years ago
- Monitoring tool based on radon☆250Updated 6 months ago
- Cython implementation of Toolz: High performance functional utilities☆1,041Updated 4 months ago
- Syntax-highlighting, declarative and composable pretty printer for Python 3.5+