{"library":"icontract","type":"library","category":null,"description":"icontract provides design-by-contract for Python, allowing developers to define preconditions, postconditions, and invariants for functions and classes using expressive lambda functions. It helps ensure correctness and provides informative violation messages, failing fast when contracts are broken. The current version is 2.7.3, and it maintains a steady release cadence with frequent patch updates addressing bugs and adding support for newer Python versions.","language":"python","status":"active","version":"2.7.3","tags":["design by contract","contracts","preconditions","postconditions","invariants","validation","runtime checks","type checking"],"last_verified":"Sun May 24","install":[{"cmd":"pip install icontract","imports":["from icontract import require","from icontract import ensure","from icontract import invariant","from icontract import ViolationError"]}],"homepage":null,"github":"https://github.com/Parquery/icontract","docs":null,"changelog":null,"pypi":"https://pypi.org/project/icontract/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.8,"avg_import_s":0.07,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/icontract/compatibility"}}