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.
☆405Updated 3 months ago
Alternatives and similar repositories for contracts:
Users that are interested in contracts are comparing it to the libraries listed below
- Python 3.5+ runtime type checking for integration testing and data validation☆543Updated 9 months ago
- Bottom-up approach to refactoring in python☆704Updated 3 years ago
- Powerful Python library for atomic file writes.☆316Updated 2 years ago
- An implementation of contracts for Python.☆345Updated 5 years ago
- A fast and thorough lazy object proxy.☆254Updated 4 months ago
- Pattern matching for python☆218Updated 10 years ago
- 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
- Syntax-highlighting, declarative and composable pretty printer for Python 3.5+☆338Updated last year
- An argparse wrapper that doesn't make you say "argh" each time you deal with it.☆375Updated 7 months ago
- IDE allow you to refactor code, Baron allows you to write refactoring code.☆292Updated 3 years ago
- A python package that provides useful locks.☆254Updated last week
- A Python implementation of the Maybe pattern☆208Updated 2 years ago
- Monitoring tool based on radon☆249Updated 5 months ago
- McCabe complexity checker for Python☆651Updated 7 months ago
- Python code object transformers☆185Updated last year
- Runtime inspection utilities for Python typing module☆355Updated 7 months ago
- Composable custom class converters for attrs, dataclasses and friends.☆872Updated last week
- A command-line search utility for Python ASTs using XPath syntax.☆246Updated 2 years ago
- vmprof - a statistical program profiler☆430Updated last month
- Function overloading for Python 3☆112Updated 4 years ago
- Custom Python linting through AST expressions☆268Updated last year
- Tool for pinpointing circular imports in Python. Find cyclic imports in any project☆344Updated 3 years ago
- A list-like type with better asymptotic performance and similar performance on small lists☆314Updated 2 years ago
- Hunter is a flexible code tracing toolkit.☆811Updated 8 months ago
- Flake8 plugin that checks import order against various Python Style Guides☆276Updated last year
- Mypy static type checker plugin for Pytest☆250Updated last week
- Debug Python logging problems by printing out the tree of handlers you have defined.☆328Updated 10 months ago
- Easy anonymous functions by partial application of operators☆102Updated last year
- Python decorators for profiling/tracing/timing a single function☆328Updated 2 months ago