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
alternativesdirectory. - The
@asyncio.coroutinessubdirectory includes versions of the examples using theasyncio.coroutinedecorator and will work on Python 3.4 and above. - Other subdirectories include versions using libraries like Trio or Tornado.
- Clone this repo
- Create and activate a virtualenv
pip install -r requirements.txtpython <NAME_OF_SAMPLE>.py
Enjoy!