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.
☆402Updated last month
Alternatives and similar repositories for contracts:
Users that are interested in contracts are comparing it to the libraries listed below
- An implementation of contracts for Python.☆345Updated 5 years ago
- Python 3.5+ runtime type checking for integration testing and data validation☆542Updated 7 months ago
- Typing-toolbox for Python 3 _and_ 2.7 w.r.t. PEP 484.☆201Updated last year
- Bottom-up approach to refactoring in python☆702Updated 2 years ago
- A fast and thorough lazy object proxy.☆251Updated last month
- For Python3, e.g. @typecheck add_count(count: int, when: any(datetime, timedelta) = datetime.now)☆169Updated 3 years ago
- Powerful Python library for atomic file writes.☆315Updated 2 years ago
- An argparse wrapper that doesn't make you say "argh" each time you deal with it.☆373Updated 4 months ago
- Python decorators for profiling/tracing/timing a single function☆329Updated last week
- ☆586Updated 6 months ago
- Runtime inspection utilities for Python typing module☆352Updated 5 months ago
- A python package that provides useful locks.☆254Updated 7 months ago
- Custom Python linting through AST expressions☆267Updated last year
- Cython implementation of Toolz: High performance functional utilities☆1,016Updated 2 weeks ago
- A high-performance immutable mapping type for Python.☆1,137Updated 3 months ago
- testfixtures is a collection of helpers and mock objects that are useful when writing automated tests in Python.☆231Updated 2 months ago
- Line-granularity, thread-aware deterministic and statistic pure-python profiler☆448Updated 4 months ago
- Hunter is a flexible code tracing toolkit.☆803Updated 6 months ago
- Mypy static type checker plugin for Pytest☆248Updated last month
- Thredo was an experiment - It's dead. Feel free to look around.☆338Updated 4 years ago
- Self-service finite-state machines for the programmer on the go.☆598Updated 3 weeks ago
- A Python implementation of the Maybe pattern☆208Updated 2 years ago
- Easy anonymous functions by partial application of operators☆103Updated last year
- IDE allow you to refactor code, Baron allows you to write refactoring code.☆290Updated 3 years ago
- Tool for pinpointing circular imports in Python. Find cyclic imports in any project☆340Updated 3 years ago
- A command-line search utility for Python ASTs using XPath syntax.☆245Updated 2 years ago
- A common base representation of python source code for pylint and other projects☆539Updated this week
- An extensions for Hypothesis that provides fully automatic testing for type hinted functions☆345Updated last year
- The multidict implementation☆427Updated last week
- Plugin for py.test to enter PyCharm debugger on uncaught exceptions☆130Updated 4 years ago