Comparison
websocket-client vs websockets vs ws4py
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
WebSocket client for Python with low level API options
Maintained. Last release 3 months ago, commits in 5 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install websocket-clientAn implementation of the WebSocket Protocol (RFC 6455 & 7692)
Actively maintained. Last release 4 weeks ago, commits in 19 of the last 26 weeks. A safe choice.
pip install websocketsWebSocket client and server library for Python 2 and 3 as well as PyPy
Low maintenance activity. Last release 23 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install ws4pyIn short
- websockets is the most used: 553.4M downloads a month, 3.1× more than websocket-client.
- websockets also has the best Pythie’s Index (86).
- websockets is growing fastest: downloads +13% over the last month.
- Safe default for a new project: websockets.
Side by side
| Metric | websocket-client | websockets | ws4py |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 55 | Pythie’s Index: 86 | Pythie’s Index: 32 |
| Verdict | Maintained | Actively maintained | Low maintenance activity |
| Downloads / month | 180.9M | 553.4M | 236.9K |
| Downloads, month over month | +1% | +13% | +13% |
| GitHub stars | 3.7K | 5.7K | 1.1K |
| Stars, last 7 days | – | – | – |
| Direct dependents | 2.1K | 5.9K | 41 |
| Last release | Aug 31, 2026 | Oct 30, 2026 | Dec 19, 2024 |
| Releases, 12 months | 2 | 9 | 0 |
| Weeks with commits | 5 / 26 | 19 / 26 | 2 / 26 |
| Recent contributors | 20 | 5 | 25 |
| First release | Jan 2011 | Nov 2013 | Sep 2013 |
| Python versions | 3.10 – 3.14 | 3.11 – 3.15 | 3.6 – 3.12 |
| License | Apache-2.0 | BSD-3-Clause | BSD-3-Clause |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.