AndreaCensi / contracts
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.
☆399Updated last week
Related projects ⓘ
Alternatives and complementary repositories for contracts
- Python 3.5+ runtime type checking for integration testing and data validation☆543Updated 5 months ago
- Bottom-up approach to refactoring in python☆697Updated 2 years ago
- An implementation of contracts for Python.☆342Updated 5 years ago
- A high-performance immutable mapping type for Python.☆1,132Updated last month
- Typing-toolbox for Python 3 _and_ 2.7 w.r.t. PEP 484.☆200Updated last year
- For Python3, e.g. @typecheck add_count(count: int, when: any(datetime, timedelta) = datetime.now)☆169Updated 3 years ago
- Python decorators for profiling/tracing/timing a single function☆329Updated 3 weeks ago
- Syntax-highlighting, declarative and composable pretty printer for Python 3.5+☆337Updated 10 months ago
- A lightweight Traits like module☆617Updated last month
- A python package that provides useful locks.☆250Updated 5 months ago
- IDE allow you to refactor code, Baron allows you to write refactoring code.☆289Updated 2 years ago
- A fast and thorough lazy object proxy.☆247Updated 2 months ago
- Tool for pinpointing circular imports in Python. Find cyclic imports in any project☆337Updated 2 years ago
- ☆585Updated 3 months ago
- Monitoring tool based on radon☆237Updated 2 weeks ago
- McCabe complexity checker for Python☆640Updated 3 months ago
- Runtime inspection utilities for Python typing module☆350Updated 2 months ago
- Function overloading for Python 3☆112Updated 3 years ago
- Multiple dispatch☆811Updated 3 months ago
- Line-granularity, thread-aware deterministic and statistic pure-python profiler☆447Updated 2 months ago
- Recursive descent parsing library for Python based on functional combinators☆346Updated 6 months ago
- A list-like type with better asymptotic performance and similar performance on small lists☆313Updated last year
- vmprof - a statistical program profiler☆433Updated last month
- Pattern matching for python☆216Updated 10 years ago
- A Python implementation of the Maybe pattern☆209Updated last year
- Remote vanilla PDB (over TCP sockets).☆275Updated 2 years ago
- Cython implementation of Toolz: High performance functional utilities☆1,008Updated last week
- Powerful Python library for atomic file writes.☆317Updated 2 years ago
- Python code object transformers☆184Updated 8 months ago
- A python lens library for manipulating deeply nested immutable structures☆310Updated 11 months ago