{"library":"safe-assert","title":"safe-assert","description":"Provides a drop-in replacement for Python's assert statement that remains active even when Python is run with -O (optimized mode). Currently at version 0.5.0, supports Python 3.9-3.12, and is released irregularly.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install safe-assert"],"cli":null},"imports":["from safe_assert import safe_assert","from safe_assert import AssertionError"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from safe_assert import safe_assert\n\nx = 0\nsafe_assert(x != 0, \"x should not be zero\")  # raises safe_assert.AssertionError if False, even with python -O","lang":"python","description":"Run this script normally or with python -O; safe_assert will still raise an error.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}