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.
☆407Updated 3 weeks ago
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☆545Updated last year
- Bottom-up approach to refactoring in python☆713Updated 3 years ago
- An implementation of contracts for Python.☆345Updated 5 years ago
- Powerful Python library for atomic file writes.☆316Updated 3 years ago
- For Python3, e.g. @typecheck add_count(count: int, when: any(datetime, timedelta) = datetime.now)☆169Updated 3 years ago
- Typing-toolbox for Python 3 _and_ 2.7 w.r.t. PEP 484.☆198Updated 2 years ago
- A fast and thorough lazy object proxy.☆261Updated 2 months ago
- Python code object transformers☆185Updated last year
- Multiple dispatch☆834Updated 7 months ago
- Custom Python linting through AST expressions☆273Updated last year
- Pattern matching for python☆218Updated 10 years ago
- IDE allow you to refactor code, Baron allows you to write refactoring code.☆296Updated 3 years ago
- Python decorators for profiling/tracing/timing a single function☆333Updated 5 months ago
- Hunter is a flexible code tracing toolkit.☆820Updated this week
- A list-like type with better asymptotic performance and similar performance on small lists☆315Updated 2 years ago
- Thredo was an experiment - It's dead. Feel free to look around.☆338Updated 5 years ago
- Line-granularity, thread-aware deterministic and statistic pure-python profiler☆452Updated 10 months ago
- A command-line search utility for Python ASTs using XPath syntax.☆251Updated 3 years ago
- Memory efficient Python objects☆367Updated 4 months ago
- Cython implementation of Toolz: High performance functional utilities☆1,058Updated 6 months ago
- Self-service finite-state machines for the programmer on the go.☆628Updated 3 weeks ago
- A Python implementation of the Maybe pattern☆208Updated 2 years ago
- A lightweight Traits like module☆644Updated 3 weeks ago
- Python library to easily setup basic logging functionality☆339Updated 6 months ago
- An argparse wrapper that doesn't make you say "argh" each time you deal with it.☆378Updated last month
- vmprof - a statistical program profiler☆432Updated 3 months ago
- Function overloading for Python 3☆112Updated 4 years ago
- Syntax-highlighting, declarative and composable pretty printer for Python 3.5+☆340Updated last year
- A python package that provides useful locks.☆257Updated 4 months ago
- ☆588Updated last year