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.
☆412Updated 3 months 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☆547Updated last year
- Bottom-up approach to refactoring in python☆717Updated 3 years ago
- An implementation of contracts for Python.☆348Updated 6 years ago
- An argparse wrapper that doesn't make you say "argh" each time you deal with it.☆378Updated 3 months 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
- IDE allow you to refactor code, Baron allows you to write refactoring code.☆298Updated 3 years ago
- For Python3, e.g. @typecheck add_count(count: int, when: any(datetime, timedelta) = datetime.now)☆169Updated 4 years ago
- A fast and thorough lazy object proxy.☆262Updated 3 months ago
- Multiple dispatch☆844Updated last year
- Python code object transformers☆184Updated last year
- Syntax-highlighting, declarative and composable pretty printer for Python 3.5+☆340Updated last year
- Custom Python linting through AST expressions☆278Updated 2 years ago
- A list-like type with better asymptotic performance and similar performance on small lists☆317Updated 3 years ago
- Self-service finite-state machines for the programmer on the go.☆643Updated 3 months ago
- A Python implementation of the Maybe pattern☆209Updated 2 years ago
- Easy anonymous functions by partial application of operators☆102Updated last year
- Pattern matching for python☆218Updated 11 years ago
- Python decorators for profiling/tracing/timing a single function☆337Updated 3 weeks ago
- Hunter is a flexible code tracing toolkit.☆858Updated 3 months ago
- Line-granularity, thread-aware deterministic and statistic pure-python profiler☆457Updated last year
- Thredo was an experiment - It's dead. Feel free to look around.☆338Updated 5 years ago
- vmprof - a statistical program profiler☆434Updated 2 months ago
- Monitoring tool based on radon☆259Updated last year
- Memory efficient Python objects☆369Updated 2 months ago
- Function overloading for Python 3☆111Updated 4 years ago
- effect isolation in Python, to facilitate more purely functional code☆385Updated 3 years ago
- Python library to easily setup basic logging functionality☆339Updated last week
- Cython implementation of Toolz: High performance functional utilities☆1,096Updated this week
- Tool for pinpointing circular imports in Python. Find cyclic imports in any project☆356Updated 3 years ago