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☆715Updated 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.☆199Updated 2 years ago
- A list-like type with better asymptotic performance and similar performance on small lists☆317Updated 2 years ago
- Powerful Python library for atomic file writes.☆318Updated 3 years ago
- Multiple dispatch☆840Updated 9 months ago
- Pattern matching for python☆218Updated 11 years ago
- For Python3, e.g. @typecheck add_count(count: int, when: any(datetime, timedelta) = datetime.now)☆169Updated 4 years ago
- An argparse wrapper that doesn't make you say "argh" each time you deal with it.☆377Updated last month
- IDE allow you to refactor code, Baron allows you to write refactoring code.☆297Updated 3 years ago
- Python code object transformers☆184Updated last year
- Custom Python linting through AST expressions☆276Updated 2 years ago
- ☆589Updated last year
- Python decorators for profiling/tracing/timing a single function☆336Updated 8 months ago
- vmprof - a statistical program profiler☆435Updated last week
- Syntax-highlighting, declarative and composable pretty printer for Python 3.5+☆339Updated last year
- Easy anonymous functions by partial application of operators☆102Updated last year
- Line-granularity, thread-aware deterministic and statistic pure-python profiler☆454Updated last year
- Thredo was an experiment - It's dead. Feel free to look around.☆337Updated 5 years ago
- Cython implementation of Toolz: High performance functional utilities☆1,081Updated 9 months ago
- Hunter is a flexible code tracing toolkit.☆846Updated last month
- A command-line search utility for Python ASTs using XPath syntax.☆253Updated 3 years ago
- A fast and thorough lazy object proxy.☆261Updated last month
- A Python implementation of the Maybe pattern☆208Updated 2 years ago
- Memory efficient Python objects☆368Updated 2 weeks ago
- Self-service finite-state machines for the programmer on the go.☆635Updated last month
- Monitoring tool based on radon☆257Updated 11 months ago
- effect isolation in Python, to facilitate more purely functional code☆384Updated 3 years ago
- A high-performance immutable mapping type for Python.☆1,178Updated 4 months ago