{"library":"sentinel","title":"sentinel","description":"Create sentinel objects, akin to None, NotImplemented, Ellipsis. Provides a simple way to define unique sentinel values for signaling special conditions (e.g., default arguments, missing data). Current version: 1.0.0. Release cadence: infrequent, stable.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install sentinel"],"cli":null},"imports":["from sentinel import Sentinel"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from sentinel import Sentinel\n\n# Create a unique sentinel\nNotGiven = Sentinel('NotGiven')\n\ndef get_value(key, default=NotGiven):\n    if default is NotGiven:\n        print('No default provided')\n    else:\n        print(f'Default is {default}')\n\nget_value('foo')\nget_value('foo', default='bar')","lang":"python","description":"Creates a sentinel object to use as a default argument marker.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}