AndreaCensi / contractsView external linksLinks
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.
☆415Dec 2, 2025Updated 2 months ago
Alternatives and similar repositories for contracts
Users that are interested in contracts are comparing it to the libraries listed below
Sorting:
- Design-by-contract in Python3 with informative violation messages and inheritance☆398Jan 29, 2026Updated 2 weeks ago
- An implementation of contracts for Python.☆351Aug 30, 2019Updated 6 years ago
- The property-based testing library for Python☆8,446Updated this week
- Persistent/Immutable/Functional data structures for Python☆2,172Jan 31, 2026Updated 2 weeks ago
- Python 3.5+ runtime type checking for integration testing and data validation☆548Jun 2, 2024Updated last year
- Typing-toolbox for Python 3 _and_ 2.7 w.r.t. PEP 484.☆201Apr 29, 2023Updated 2 years ago
- Easy going emails with Python for easy going people, who email☆14Jan 13, 2025Updated last year
- small wiki engine based on static reST files and git for versionning☆25Oct 26, 2015Updated 10 years ago
- A functional standard library for Python.☆5,114Jan 1, 2026Updated last month
- Cython implementation of Toolz: High performance functional utilities☆1,100Dec 1, 2025Updated 2 months ago
- Canonical JSON☆32Mar 16, 2023Updated 2 years ago
- A Python library that generates static type annotations by collecting runtime types☆4,990Updated this week
- ☆15Jul 13, 2019Updated 6 years ago
- Build languages on Python.☆12May 2, 2021Updated 4 years ago
- Natural language hashing library.☆10Nov 24, 2014Updated 11 years ago
- 🔩 Like builtins, but boltons. 250+ constructs, recipes, and snippets which extend (and rely on nothing but) the Python standard library.…☆6,851Jan 28, 2026Updated 2 weeks ago
- 🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.☆862Nov 30, 2025Updated 2 months ago
- Run-time type checker for Python☆1,744Feb 7, 2026Updated last week
- For Python3, e.g. @typecheck add_count(count: int, when: any(datetime, timedelta) = datetime.now)☆168Sep 1, 2021Updated 4 years ago
- Good Curio!☆4,132Dec 21, 2025Updated last month
- Simple, elegant, Pythonic functional programming.☆4,308Feb 8, 2026Updated last week
- A pythonic wrapper over `atd` to schedule deletion of files/directories.☆53Aug 6, 2017Updated 8 years ago
- Domain Specific Languages in Python☆97Dec 1, 2023Updated 2 years ago
- Python S-expression emulation using tuple-like objects.☆25Oct 20, 2025Updated 3 months ago
- Multiple dispatch☆843Dec 5, 2024Updated last year
- asyncio (PEP 3156) nsq (message queue) client.☆16Aug 10, 2018Updated 7 years ago
- Pick a license, any license.☆13Feb 7, 2016Updated 10 years ago
- Playing OpenAI games with Neuroevolution☆11Nov 16, 2019Updated 6 years ago
- Tagged union types and immutable records (product types) in Python☆11Jun 5, 2017Updated 8 years ago
- A lightweight library for converting complex objects to and from simple Python datatypes.☆7,233Feb 4, 2026Updated last week
- A python lens library for manipulating deeply nested immutable structures☆332Nov 15, 2023Updated 2 years ago
- Mutation testing system☆1,204Feb 1, 2026Updated 2 weeks ago
- Auto-generate PEP-484 annotations☆1,449Jul 3, 2022Updated 3 years ago
- Functional-style recursive pattern matching in Python. Crazy stuff.☆29May 23, 2016Updated 9 years ago
- A weather monitoring Dashboard built upon Python and Yahoo API☆14Jun 10, 2015Updated 10 years ago
- Bottom-up approach to refactoring in python☆723Jan 29, 2022Updated 4 years ago
- Python Classes Without Boilerplate☆5,726Feb 4, 2026Updated last week
- A fancy and practical functional tools☆3,498Sep 19, 2025Updated 4 months ago
- Functional programming in Python: implementation of missing features to enjoy FP☆3,380Aug 30, 2022Updated 3 years ago