websockets requires Python ≥ 3.7.
Use the most recent Python release
For each minor version (3.x), only the latest bugfix or security release (3.x.y) is officially supported.
It doesn’t have any dependencies.
Install websockets with:
$ pip install websockets
Wheels are available for all platforms.
Learn how to build an real-time web application with websockets.
- Part 1 - Send & receive
- Part 2 - Route & broadcast
- Part 3 - Deploy to the web
In a hurry?#
Look at the quick start guide.