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.
☆416Dec 2, 2025Updated 5 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☆404Jan 29, 2026Updated 3 months ago
- An implementation of contracts for Python.☆351Aug 30, 2019Updated 6 years ago
- The property-based testing library for Python☆8,618May 13, 2026Updated last week
- Persistent/Immutable/Functional data structures for Python☆2,180Jan 31, 2026Updated 3 months ago
- Python 3.5+ runtime type checking for integration testing and data validation☆551Jun 2, 2024Updated last year
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Build languages on Python.☆12May 2, 2021Updated 5 years ago
- Typing-toolbox for Python 3 _and_ 2.7 w.r.t. PEP 484.☆202Apr 29, 2023Updated 3 years ago
- Natural language hashing library.☆10Nov 24, 2014Updated 11 years ago
- Easy going emails with Python for easy going people, who email☆14Jan 13, 2025Updated last year
- A functional standard library for Python.☆5,140Jan 1, 2026Updated 4 months ago
- For Python3, e.g. @typecheck add_count(count: int, when: any(datetime, timedelta) = datetime.now)☆168Sep 1, 2021Updated 4 years ago
- Run-time type checker for Python☆1,759Updated this week
- QuickCheck specification-based testing for Julia☆17Jan 24, 2021Updated 5 years ago
- Cython implementation of Toolz: High performance functional utilities☆1,109Dec 1, 2025Updated 5 months ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- This code bears NO RELATIONSHIP to the newest version of StarQueue. This is an early queue I wrote in Python. The code is kept here for …☆16Mar 1, 2023Updated 3 years ago
- Good Curio!☆4,129Dec 21, 2025Updated 4 months ago
- 🔩 Like builtins, but boltons. 250+ constructs, recipes, and snippets which extend (and rely on nothing but) the Python standard library.…☆6,885Mar 6, 2026Updated 2 months ago
- Canonical JSON☆30May 6, 2026Updated 2 weeks ago
- A Python library that generates static type annotations by collecting runtime types☆4,996Feb 11, 2026Updated 3 months ago
- small wiki engine based on static reST files and git for versionning☆25Oct 26, 2015Updated 10 years ago
- 🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.☆891Nov 30, 2025Updated 5 months ago
- Simple, elegant, Pythonic functional programming.☆4,331Feb 16, 2026Updated 3 months ago
- A pythonic wrapper over `atd` to schedule deletion of files/directories.☆53Aug 6, 2017Updated 8 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.
- A python lens library for manipulating deeply nested immutable structures☆336Nov 15, 2023Updated 2 years ago
- Functional-style recursive pattern matching in Python. Crazy stuff.☆29May 23, 2016Updated 9 years ago
- Pick a license, any license.☆13Feb 7, 2016Updated 10 years ago
- pattern matching for python☆25May 12, 2009Updated 17 years ago
- A lightweight library for converting complex objects to and from simple Python datatypes.☆7,238May 11, 2026Updated last week
- Proxies and wrappers for ordinary Python objects☆21Jul 24, 2015Updated 10 years ago
- Bottom-up approach to refactoring in python☆725Jan 29, 2022Updated 4 years ago
- Hipster-orgazmic tool to mange application settings☆11Oct 17, 2022Updated 3 years ago
- Python Classes Without Boilerplate☆5,781May 11, 2026Updated last week
- 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.
- Functional programming in Python: implementation of missing features to enjoy FP☆3,375Aug 30, 2022Updated 3 years ago
- Multiple dispatch☆843Dec 5, 2024Updated last year
- Auto-generate PEP-484 annotations☆1,447Apr 22, 2026Updated 3 weeks ago
- pdfcli is a CLI tool for manipulating PDFS from the command line.☆13Dec 8, 2022Updated 3 years ago
- Easy anonymous functions by partial application of operators☆104Dec 14, 2023Updated 2 years ago
- A fancy and practical functional tools☆3,501Apr 19, 2026Updated last month
- Collection of library stubs for Python, with static types☆5,061Updated this week