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.
☆414Updated 2 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☆548Updated last year
- Bottom-up approach to refactoring in python☆721Updated 3 years ago
- An implementation of contracts for Python.☆350Updated 6 years ago
- Powerful Python library for atomic file writes.☆319Updated 3 years ago
- Typing-toolbox for Python 3 _and_ 2.7 w.r.t. PEP 484.☆201Updated 2 years ago
- An argparse wrapper that doesn't make you say "argh" each time you deal with it.☆378Updated 3 months ago
- For Python3, e.g. @typecheck add_count(count: int, when: any(datetime, timedelta) = datetime.now)☆169Updated 4 years ago
- Memory efficient Python objects☆369Updated 2 months ago
- Multiple dispatch☆843Updated last year
- Custom Python linting through AST expressions☆278Updated 2 years ago
- Python code object transformers☆184Updated last year
- IDE allow you to refactor code, Baron allows you to write refactoring code.☆298Updated 4 years ago
- Syntax-highlighting, declarative and composable pretty printer for Python 3.5+☆340Updated 2 years ago
- A list-like type with better asymptotic performance and similar performance on small lists☆317Updated 3 years ago
- Python decorators for profiling/tracing/timing a single function☆338Updated last month
- A lightweight Traits like module☆648Updated 2 months ago
- Line-granularity, thread-aware deterministic and statistic pure-python profiler☆457Updated last year
- Easy anonymous functions by partial application of operators☆102Updated 2 years ago
- vmprof - a statistical program profiler☆435Updated 2 months ago
- A command-line search utility for Python ASTs using XPath syntax.☆255Updated 3 years ago
- Pattern matching for python☆218Updated 11 years ago
- A Python implementation of the Maybe pattern☆210Updated 2 years ago
- Monitoring tool based on radon☆261Updated 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.☆859Updated 3 months ago
- A python package that provides useful locks.☆271Updated 3 months ago
- Self-service finite-state machines for the programmer on the go.☆643Updated 2 weeks ago
- ☆589Updated last year
- Cython implementation of Toolz: High performance functional utilities☆1,097Updated 2 weeks ago
- Mutation testing for Python☆617Updated last month