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.
☆419Sep 12, 2026Updated 2 months ago
Alternatives and similar repositories for contracts
Users that are interested in contracts are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Design-by-contract in Python3 with informative violation messages and inheritance☆422Jan 29, 2026Updated 9 months ago
- An implementation of contracts for Python.☆353Aug 30, 2019Updated 7 years ago
- A simple Python library for plotting data in a web browser -- NOT READY FOR PRIME TIME☆12Jan 27, 2012Updated 14 years ago
- The property-based testing library for Python☆9,193Updated this week
- Persistent/Immutable/Functional data structures for Python☆2,202Jan 31, 2026Updated 9 months ago
- Bare Metal GPUs on DigitalOcean Gradient AI • AdPurpose-built for serious AI teams training foundational models, running large-scale inference, and pushing the boundaries of what's possible.
- Python 3.5+ runtime type checking for integration testing and data validation☆553Jun 2, 2024Updated 2 years ago
- Compmake is a non-obtrusive module that provides Makefile-like facilities (including parallel processing) for batch Python applications.☆18Oct 31, 2026Updated 2 weeks ago
- A functional standard library for Python.☆5,161Oct 7, 2026Updated last month
- Typing-toolbox for Python 3 _and_ 2.7 w.r.t. PEP 484.☆203Apr 29, 2023Updated 3 years ago
- A decorater-based backport of PEP-3107 function annotations to Python 2.7, and related tools☆13Feb 19, 2013Updated 13 years ago
- A fancy and practical functional tools lib☆3,508Oct 26, 2026Updated 3 weeks ago
- Functional programming in Python: implementation of missing features to enjoy FP☆3,365Aug 30, 2022Updated 4 years ago
- Schema validation just got Pythonic☆2,939Jun 20, 2026Updated 5 months ago
- Build languages on Python.☆12May 2, 2021Updated 5 years ago
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Dependency injection in python #di #python☆58Mar 5, 2018Updated 8 years ago
- A python lens library for manipulating deeply nested immutable structures☆338Nov 9, 2026Updated last week
- Good Curio!☆4,116Dec 21, 2025Updated 10 months ago
- pip script installer☆1,991May 24, 2019Updated 7 years ago
- MathLib is a versatile C++ library that provides a wide range of mathematical algorithms and functions, including but not limited to tran…☆10Jun 6, 2023Updated 3 years ago
- Cython implementation of Toolz: High performance functional utilities☆1,115Oct 8, 2026Updated last month
- For Python3, e.g. @typecheck add_count(count: int, when: any(datetime, timedelta) = datetime.now)☆168Sep 1, 2021Updated 5 years ago
- Python Data Structures for Humans™.☆2,586Jul 12, 2023Updated 3 years ago
- 🔩 Like builtins, but boltons. 250+ constructs, recipes, and snippets which extend (and rely on nothing but) the Python standard library.…☆6,949Oct 25, 2026Updated 3 weeks ago
- GPU virtual machines on DigitalOcean Gradient AI • AdGet to production fast with high-performance AMD and NVIDIA GPUs you can spin up in seconds. The definition of operational simplicity.
- 🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.☆925Nov 30, 2025Updated 11 months ago
- Inspects Python source files and provides information about type and location of classes, methods etc☆2,085Updated this week
- Lazy strings for Python☆61Jan 7, 2016Updated 10 years ago
- Simple, elegant, Pythonic functional programming.☆4,356Feb 16, 2026Updated 9 months ago
- Run-time type checker for Python☆1,795Updated this week
- Plumbum: Shell Combinators☆3,060Nov 6, 2026Updated last week
- Macros in Python: quasiquotes, case classes, LINQ and more!☆3,308Jun 10, 2023Updated 3 years ago
- Observable typed attributes for Python classes☆465Nov 9, 2026Updated last week
- Evidence-based scheduling tool for Jira☆14Apr 11, 2014Updated 12 years ago
- Virtual machines for every use case on DigitalOcean • AdGet dependable uptime with 99.99% SLA, simple security tools, and predictable monthly pricing with DigitalOcean's virtual machines, called Droplets.
- Canonical JSON☆30May 6, 2026Updated 6 months ago
- Python Classes Without Boilerplate☆5,862Updated this week
- Shared Memory Numpy ( Deprecated, See https://github.com/ContinuumIO/blaze )☆22Oct 27, 2012Updated 14 years ago
- Library to test all fields of a python dictionary☆12Mar 28, 2018Updated 8 years ago
- ☆17Jun 10, 2020Updated 6 years ago
- A lightweight library for converting complex objects to and from simple Python datatypes.☆7,243Updated this week
- Bottom-up approach to refactoring in python☆727Jan 29, 2022Updated 4 years ago
Are these results useful?