Skip to main content

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

Installation

#####Requires Python 3.5+

pip install observable-collections

Example

from reactive.ObservableList import ObservableList

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

ol.append(5)

Release files for observable-collections 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for observable-collections 0.1.2
File Size Uploaded
observable-collections-0.1.2.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for observable-collections 0.1.2
File Interpreter ABI Platform
observable_collections-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 30.7 kB

Release files / observable-collections-0.1.2.tar.gz

Download URL observable-collections-0.1.2.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
712b24037655e0080040b709e49b87c2c274af0380cedd2af8779a7a94bd898d
BLAKE2b-256 checksum
How to use checksums
4e76b482d32cb2bf9f384b39235fd09ac9d6d2c163a27fbcfb94829982b38fcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / observable_collections-0.1.2-py3-none-any.whl

Download URL observable_collections-0.1.2-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e01111ab7c30bd9bf2310825e18dfaa0786ad4be83fb1cd13451bd5591651b94
BLAKE2b-256 checksum
How to use checksums
08ecda57d02fd3925c7ab4f21cf472ddeea59ea572077005a23b59cf5a447bc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page