An open API service indexing awesome lists of open source software.

https://github.com/marcosvbras/rxpy-talk

Code and slides used in my talk "Reactive Programming with Python" for PythonMG Meetup
https://github.com/marcosvbras/rxpy-talk

lecture-material lecture-slides python reactive-programming rxpy

Last synced: about 2 months ago
JSON representation

Code and slides used in my talk "Reactive Programming with Python" for PythonMG Meetup

Awesome Lists containing this project

README

        

# Reactive Programming with Python

This repository includes the material used in my talk about **Reactive Programming** for **PythonMG Meetup**. All examples were done in Python and using [RxPy](https://github.com/ReactiveX/RxPY) library.

## Definition



First of all, unlike what many people think, Reactive Programming **is not** either React or React Native programming. It's a common mistake considering the names are too similar. What is **Reactive Programming** then?

**Reactive Programming** is an event-based asynchronous programming paradigm which you have asynchronous data streams that can be observed and you can define actions when it emits values.



To dive into this awesome paradigm, you need to incorporate an important mantra: *Everything can be a data stream*. Really? Everything? Yes, you can create data streams with HTTP calls, click events, text change events, variable changes and WHATEVER!

Aside the asynchronous approach, you can run all tasks in different background tasks without blocking the main thread.

## Examples
- [Example 1](example1/): Creating observables with **.from_** function
- [Example 2](example2/): Using **filter** operator
- [Example 3](example3/): Using **map** operator
- [Example 4](example4/): Using **lambda** in **subscribe**
- [Example 5](example5/): Executing in other thread