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.
☆401Updated last week
Alternatives and similar repositories for contracts:
Users that are interested in contracts are comparing it to the libraries listed below
- Typing-toolbox for Python 3 _and_ 2.7 w.r.t. PEP 484.☆201Updated last year
- Bottom-up approach to refactoring in python☆700Updated 2 years ago
- Python 3.5+ runtime type checking for integration testing and data validation☆542Updated 6 months ago
- Python decorators for profiling/tracing/timing a single function☆328Updated 2 months ago
- Multiple dispatch☆813Updated last week
- An implementation of contracts for Python.☆345Updated 5 years ago
- Runtime inspection utilities for Python typing module☆352Updated 4 months ago
- A fast and thorough lazy object proxy.☆251Updated 3 weeks ago
- IDE allow you to refactor code, Baron allows you to write refactoring code.☆290Updated 3 years ago
- A high-performance immutable mapping type for Python.☆1,134Updated 2 months ago
- For Python3, e.g. @typecheck add_count(count: int, when: any(datetime, timedelta) = datetime.now)☆169Updated 3 years ago
- Python code object transformers☆184Updated 9 months ago
- Syntax-highlighting, declarative and composable pretty printer for Python 3.5+☆336Updated 11 months ago
- Easy anonymous functions by partial application of operators☆103Updated last year
- Monitoring tool based on radon☆239Updated last month
- testfixtures is a collection of helpers and mock objects that are useful when writing automated tests in Python.☆231Updated last month
- Function overloading for Python 3☆113Updated 3 years ago
- Cython implementation of Toolz: High performance functional utilities☆1,010Updated this week
- ☆586Updated 5 months ago
- Powerful Python library for atomic file writes.☆316Updated 2 years ago
- Pattern matching for python☆215Updated 10 years ago
- Hunter is a flexible code tracing toolkit.☆804Updated 5 months ago
- vmprof - a statistical program profiler☆432Updated 2 months ago
- effect isolation in Python, to facilitate more purely functional code☆372Updated 2 years ago
- pprint++: a drop-in replacement for pprint that's actually pretty☆406Updated last year
- Custom Python linting through AST expressions☆265Updated last year
- pytest fixture for benchmarking code☆1,262Updated last month
- Mypy static type checker plugin for Pytest☆249Updated last week
- A Python implementation of the Maybe pattern☆207Updated last year
- An argparse wrapper that doesn't make you say "argh" each time you deal with it.☆369Updated 3 months ago