RxPY
RxPY copied to clipboard
ReactiveX for Python
Coming from RxJS it was really convenient having the concatMap operator to have a pipeline of dynamic observables that wait for the previous to complete. I noticed that RxPY does...
The __eq__ magic method for the Notification class seems to be implemented as a comparison of the two sides of the equality being casted to string. This can lead to...
Hey everyone, I am building a small app that listens to WebSocket stream and parses the received events. I tried to mock the basic functionality in the code snippet: ```...
I'm using rxpy for a realtime audio processing tool. The tool receives two event streams, one that contains audio chunks and one that contains small text like annotation snippets. The...
Hi, I'm using rxpy for an event-driven application and after some stress tests I noticed a strange behaviour on memory usage. I've created a simple script to reproduce the issue....
Hi I am trying to combine Subject with start_with operator as I want the each observer to get the initial image using start_with and the subsequence update via Subject on_next....
Observables created with rx.just() and rx.from_iterable() handle exceptions differently on subscription. - rx.just() raises the exception to the caller - rx.from_iterable() drops it. ``` import rx import rx.operators as op...
Does RxPY provide a facility for converting async iterators into Observables? For example, if I have: ``` async foo(): for x in range(5): result = await get_data_from_somewhere(x) yield result ```...
Example code: ```python from typing import Iterator from contextlib import contextmanager from rx import from_iterable from rx.operators import take @contextmanager def my_context(): print('enter context') yield print('release context') def my_generator() ->...
I'm a little confused about subscribe_on and the 'scheduler' parameter of Observable.create: ## Example ```python import rx import rx.scheduler import rx.operators as op import time import threading scheduler = rx.scheduler.ThreadPoolScheduler(max_workers=5)...