Parquery/icontract
View on GitHub ↗ ★ 419 Python
Design-by-contract in Python3 with informative violation messages and inheritance
8 mentions on Hacker News by 4 people: 0 stories, 8 comments · first 2020-12-14 · latest 2026-03-17
20082026
-
Parquery/icontract: https://github.com/Parquery/icontract mristin/icontract-hypothesis: https://github.com/mristin/icontract-hypothesis : > The result is a powerful combination that allows you to automatically test your code. Instead of…
comment by westurner · 2026-03-17 · in Comparing Python Type Checkers: Typing Spec Conformance -
…def recolor(image): For icontract, there's icontract-hyothesis. parquery/icontract: https://github.com/Parquery/icontract : > There exist a couple of contract libraries. However, at the time of this writing (September 2018), they all…
comment by westurner · 2026-03-16 · in Comparing Python Type Checkers: Typing Spec Conformance -
…transformations of arbitrarily complex structures built from PMaps and PVectors. ## icontract Src: https://github.com/Parquery/icontract > icontract provides design-by-contract to Python3 with informative violation messages and…
comment by westurner · 2025-12-11 · in A “frozen” dictionary for Python -
pycontracts: https://github.com/AlexandruBurlacu/pycontracts icontract: https://github.com/Parquery/icontract The DbC Design-by-Contract patterns supported by icontract probably have code quality returns beyond saving work. Safety critical…
comment by westurner · 2025-01-30 · in "We're building a new static type checker for Python" -
…nature that the library provides to Python in order to work became too much for me in the end. [1] https://github.com/Parquery/icontract
comment by digitalsankhara · 2024-09-10 · in Oxygene: A modern language built on the foundation of Object Pascal -
…Command, Postconditions (assertions, assertions of invariance after command C_funcname executed) https://github.com/Parquery/icontract pydantic_schemaorg: https://github.com/lexiq-legal/pydantic_schemaorg > Pydantic_schemaorg contains all…
comment by westurner · 2023-03-02 · in Show HN: Mathesar – open-source collaborative UI for Postgres databases -
See also: https://github.com/Parquery/icontract
comment by crazypython · 2021-02-18 · in Precisely: Better assertions for Python tests -
…See Hypothesis library in Python (and other laguages). I wrote a library for contracts in Python ( http://github.com/Parquery/icontract , see its readme for further references to other libraries).
comment by mristin · 2020-12-14 · in “This is the worst documentation I have ever seen in my life”