Skip to main content

Observable versions of python data structures

Project description

Observable versions of python data structures

Build Status Coverage Status Docs Status Package Status

This library is meant to be API compatible with standard Python objects, but with the addition of observability. Currently supports Lists and Dictionaries.

A simple use looks like this:

>>> from perceptible import ObservableDictionary
>>> def observer(o):
...     print('observer was called with', o)
>>> o_dict = ObservableDictionary()
>>> o_dict.add_observer(observer)
>>> o_dict['key'] = 'value'
observer was called with {'key': 'value'}

Installation is as simple as installing via pip.

pip install perceptible

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for perceptible, version 0.4.2
Filename, size File type Python version Upload date Hashes
Filename, size perceptible-0.4.2-py2.py3-none-any.whl (4.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size perceptible-0.4.2.tar.gz (19.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page