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
- Host: GitHub
- URL: https://github.com/marcosvbras/rxpy-talk
- Owner: marcosvbras
- License: apache-2.0
- Created: 2018-07-02T02:04:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T03:00:13.000Z (almost 7 years ago)
- Last Synced: 2025-02-01T08:47:37.622Z (4 months ago)
- Topics: lecture-material, lecture-slides, python, reactive-programming, rxpy
- Language: Python
- Size: 2.36 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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