Skip to main content

Rx based collections that supports change notification

Project description

Observable Collections

A Rx based collections implementation in Python

Build Status Coveralls github

It contains following Observable collections and internally depends on RxPy

* ObservableList
* ObservableDict
* ObservableSet

These collections expose when_collection_changes() method that creates an Observable which can be subscribed.

Any changes to the ObservableList / ObservableSet / ObservableDict that modifies the collection, publishes the event either via on_next or error via on_error


#####Requires Python 3.5+

pip install observable-collections


from reactive.ObservableList import ObservableList

ol = ObservableList([1, 2, 3, 4])
ol.when_collection_changes() \
    .map(lambda x: x.Items) \
    .subscribe(print, print)


Project details

Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
observable_collections-0.1.2-py3-none-any.whl (19.2 kB) Copy SHA256 hash SHA256 Wheel py3
observable-collections-0.1.2.tar.gz (11.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page