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

https://github.com/yeraydiazdiaz/asyncio-coroutine-patterns

Code examples for "Asyncio Coroutine Patterns"
https://github.com/yeraydiazdiaz/asyncio-coroutine-patterns

Last synced: 5 months ago
JSON representation

Code examples for "Asyncio Coroutine Patterns"

Awesome Lists containing this project

README

        

# AsyncIO Coroutine Patterns

Full code examples for the two articles on Medium, [*Asyncio Coroutine Patterns: Beyond await*](https://medium.com/@yeraydiazdiaz/asyncio-coroutine-patterns-beyond-await-a6121486656f) and [*Asyncio Coroutine Patterns: Errors and cancellation*](https://medium.com/@yeraydiazdiaz/asyncio-coroutine-patterns-errors-and-cancellation-3bb422e961ff).

These examples require Python 3.5 or above and [`aiohttp`](http://aiohttp.readthedocs.io/en/stable/).

## Installation

1. Make sure your version of Python is 3.5 or above: `python3 --version`
2. Clone this repo
3. Create a virtualenv
4. `pip install -r requirements.txt`
5. Run any file you'd like, i.e. `python 01_recursive_coroutines/recursive_coroutines.py`