perceptible
Observable versions of python data structures
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
Metadata
Release files for perceptible 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| perceptible-0.4.2.tar.gz | 19.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| perceptible-0.4.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 23.5 kB
Release files / perceptible-0.4.2.tar.gz
| Download URL | perceptible-0.4.2.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdc413a3f8ffd69eeccf1b98b953c2732355f0a20270944a9806d7585acbdf56
|
|
BLAKE2b-256 checksum How to use checksums |
2979386ffd9ad5508c17963d91fad094c87a9fe1cfc70d2e1e548827410f70b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14
|
Release files / perceptible-0.4.2-py2.py3-none-any.whl
| Download URL | perceptible-0.4.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
44693c8d890843b1068f0671b4ce7fd53dc84504f3741ccee6035eee24adbca0
|
|
BLAKE2b-256 checksum How to use checksums |
2ab02bb34c22ead6cd27e28d955ff3755ba55193167ba150857b1e294d877059
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14
|