{"library":"observable","title":"Observable","description":"Minimalist event system for Python, inspired by the Observable pattern. Current version 1.0.3. Low release cadence; last stable release in 2017.","language":"python","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["pip install observable"],"cli":null},"imports":["from observable import Observable"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from observable import Observable\n\nclass MyObservable(Observable):\n    pass\n\nobj = MyObservable()\n\ndef callback(data):\n    print(f\"Event received: {data}\")\n\nobj.on('change', callback)\nobj.trigger('change', 'Hello, world!')\n","lang":"python","description":"Create a subclass of Observable, register a callback with .on(), and fire events with .trigger().","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}