All Projects → ReactiveX → Rxpy

ReactiveX / Rxpy

Licence: mit
Reactive Extensions for Python, https://rxpy.rtfd.io

Programming Languages

python
139335 projects - #7 most used programming language
Jupyter Notebook
11667 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Rxpy

Rxdownloader
- Reactive Extension Library for Android to download files
Stars: ✭ 40 (-99.02%)
Mutual labels:  reactive, reactive-extensions, reactivex
Awesome Reactive Programming
A repository for sharing all the resources available on Reactive Programming and Reactive Systems
Stars: ✭ 163 (-96.01%)
Mutual labels:  reactive, reactive-extensions, reactivex
Awesome Rxjs
A collection of awesome RxJS resources
Stars: ✭ 314 (-92.32%)
Mutual labels:  reactive, reactive-extensions, reactivex
Ayanami
🍭 A better way to react with state
Stars: ✭ 129 (-96.84%)
Mutual labels:  reactive, reactivex
Rxjs In Action
Code sample repository
Stars: ✭ 117 (-97.14%)
Mutual labels:  reactive, reactivex
Fable.reaction
Fable Reaction - Reactive (AsyncRx) for F# Elmish and Fable
Stars: ✭ 122 (-97.01%)
Mutual labels:  reactive, reactivex
Reactive Examples
Samples App using the Reactive Extensions and Reactive UI
Stars: ✭ 203 (-95.03%)
Mutual labels:  reactive-extensions, reactivex
Smallrye Mutiny
An Intuitive Event-Driven Reactive Programming Library for Java
Stars: ✭ 231 (-94.35%)
Mutual labels:  reactive, reactive-extensions
Newbe.claptrap
This is a frameworks with reactive, event sourcing and Actor pattern as basic theories. On top of this, developers can create "distributed", "scale out", and "easy to test" application more simply. Claptrap and it`s Minions is on the way.
Stars: ✭ 163 (-96.01%)
Mutual labels:  reactive, reactivex
Reactor Core
Non-Blocking Reactive Foundation for the JVM
Stars: ✭ 3,891 (-4.77%)
Mutual labels:  reactive, reactive-extensions
purescript-outwatch
A functional and reactive UI framework based on Rx and VirtualDom
Stars: ✭ 33 (-99.19%)
Mutual labels:  reactivex, reactive
Rocket.jl
Functional reactive programming extensions library for Julia
Stars: ✭ 69 (-98.31%)
Mutual labels:  reactive, reactive-extensions
rx
Reactive Extensions for D Programming Language
Stars: ✭ 52 (-98.73%)
Mutual labels:  reactivex, reactive-extensions
InterReact
Interactive Brokers reactive C# API.
Stars: ✭ 28 (-99.31%)
Mutual labels:  reactive, reactive-extensions
Rxswift
Reactive Programming in Swift
Stars: ✭ 21,163 (+417.94%)
Mutual labels:  reactive, reactivex
Rxjava2 Extras
Utilities for use with RxJava 2
Stars: ✭ 167 (-95.91%)
Mutual labels:  reactive, reactivex
Dynamicdata
Reactive collections based on Rx.Net
Stars: ✭ 1,083 (-73.49%)
Mutual labels:  reactive-extensions, reactivex
Deepspeech Server
A testing server for a speech to text service based on mozilla deepspeech
Stars: ✭ 176 (-95.69%)
Mutual labels:  reactive-extensions, reactivex
Pharmacist
Builds observables from events.
Stars: ✭ 221 (-94.59%)
Mutual labels:  reactivex, reactive-extensions
Rx.Http
A reactive way to make HTTP Request in .NET Core 🚀
Stars: ✭ 62 (-98.48%)
Mutual labels:  reactivex, reactive

The Reactive Extensions for Python (RxPY)

Documentation Status

A library for composing asynchronous and event-based programs using observable collections and query operator functions in Python

RxPY v3.0

For v1.X please go to the v1 branch.

RxPY v3.x runs on Python 3.6 or above. To install RxPY:

pip3 install rx

About ReactiveX

Reactive Extensions for Python (RxPY) is a set of libraries for composing asynchronous and event-based programs using observable sequences and pipable query operators in Python. Using Rx, developers represent asynchronous data streams with Observables, query asynchronous data streams using operators, and parameterize concurrency in data/event streams using Schedulers.

import rx
from rx import operators as ops

source = rx.of("Alpha", "Beta", "Gamma", "Delta", "Epsilon")

composed = source.pipe(
    ops.map(lambda s: len(s)),
    ops.filter(lambda i: i >= 5)
)
composed.subscribe(lambda value: print("Received {0}".format(value)))

Learning RxPY

Read the documentation to learn the principles of RxPY and get the complete reference of the available operators.

If you need to migrate code from RxPY v1.x, read the migration section.

There is also a list of third party documentation available here.

Community

Join the conversation on Slack!

The gracious folks at PySlackers have given us a home in the #rxpy Slack channel. Please join us there for questions, conversations, and all things related to RxPy.

To join, navigate the page above to receive an email invite. After signing up, join us in the #rxpy channel.

Please follow the community guidelines and terms of service.

Differences from .NET and RxJS

RxPY is a fairly complete implementation of Rx with more than 120 operators, and over 1300 passing unit-tests. RxPY is mostly a direct port of RxJS, but also borrows a bit from RxNET and RxJava in terms of threading and blocking operators.

RxPY follows PEP 8, so all function and method names are lowercase with words separated by underscores as necessary to improve readability.

Thus .NET code such as:

var group = source.GroupBy(i => i % 3);

need to be written with an _ in Python:

group = source.pipe(ops.group_by(lambda i: i % 3))

With RxPY you should use named keyword arguments instead of positional arguments when an operator has multiple optional arguments. RxPY will not try to detect which arguments you are giving to the operator (or not).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].