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.

Source Distribution

perceptible-0.4.2.tar.gz (19.4 kB view hashes)

Uploaded Source

Built Distribution

perceptible-0.4.2-py2.py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page