AsyncIO for the Working Python Developer
Code for the examples on my article in medium AsyncIO for the Working Python Developer.
The examples in the root directory will only work on Python 3.7, the alternatives directory includes versions of the examples for:
- Python 3.5 and above in the base
alternatives
directory. - The
@asyncio.coroutines
subdirectory includes versions of the examples using theasyncio.coroutine
decorator and will work on Python 3.4 and above. - Other subdirectories include versions using libraries like Trio or Tornado.
Usage:
- Clone this repo
- Create and activate a virtualenv
pip install -r requirements.txt
python <NAME_OF_SAMPLE>.py
Enjoy!