Built on top of Python's asynchronous I/O support introduced in PEP 3156, it provides an API based on coroutines, making it easy to write highly concurrent applications.
Installation is as simple as
pip install websockets. It requires Python ≥
3.4 or Python 3.3 with the
asyncio module, which is available with
Documentation is available on Read the Docs.