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.
☆409Updated 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☆546Updated last year
- Bottom-up approach to refactoring in python☆716Updated 3 years ago
- An implementation of contracts for Python.☆347Updated 6 years ago
- Typing-toolbox for Python 3 _and_ 2.7 w.r.t. PEP 484.☆200Updated 2 years ago
- Powerful Python library for atomic file writes.☆318Updated 3 years ago
- Multiple dispatch☆841Updated 10 months ago
- For Python3, e.g. @typecheck add_count(count: int, when: any(datetime, timedelta) = datetime.now)☆169Updated 4 years ago
- Pattern matching for python☆218Updated 11 years ago
- A fast and thorough lazy object proxy.☆262Updated 2 months ago
- A list-like type with better asymptotic performance and similar performance on small lists☆317Updated 2 years ago
- Syntax-highlighting, declarative and composable pretty printer for Python 3.5+☆340Updated last year
- IDE allow you to refactor code, Baron allows you to write refactoring code.☆298Updated 3 years ago
- An argparse wrapper that doesn't make you say "argh" each time you deal with it.☆378Updated last month
- A command-line search utility for Python ASTs using XPath syntax.☆255Updated 3 years ago
- Python decorators for profiling/tracing/timing a single function☆336Updated 9 months ago
- Line-granularity, thread-aware deterministic and statistic pure-python profiler☆454Updated last year
- Custom Python linting through AST expressions☆277Updated 2 years ago
- Python code object transformers☆184Updated last year
- Thredo was an experiment - It's dead. Feel free to look around.☆338Updated 5 years ago
- Hunter is a flexible code tracing toolkit.☆849Updated 2 months ago
- Self-service finite-state machines for the programmer on the go.☆639Updated 2 months ago
- Easy anonymous functions by partial application of operators☆102Updated last year
- vmprof - a statistical program profiler☆433Updated last month
- A high-performance immutable mapping type for Python.☆1,183Updated 5 months ago
- Mutation testing for Python☆610Updated last month
- A Python implementation of the Maybe pattern☆208Updated 2 years ago
- ☆589Updated last year
- Python Sorted Collections Library☆109Updated 2 years ago
- effect isolation in Python, to facilitate more purely functional code☆384Updated 3 years ago
- Mypy static type checker plugin for Pytest☆256Updated 6 months ago