Hands-On Reactive Programming with Python
上QQ阅读APP看书,第一时间看更新

aiohttp

The AsyncIO library does not contain an HTTP stack. In this example, as well as throughout this whole book, the aiohttp package will be used. The aiohttp package is a complete implementation of the HTTP 1.x protocol with the support of web sockets. It can be used to implement clients and servers. This is a great package to implement HTTP microservices. Its installation is very easy with pip:

(venv-rx)$ pip3 install aiohttp

Ensure that the package installation is done within virtualenv. Read Chapter 1An Introduction to Reactive Programming, for more information on how to use virtualenv.