Comparison
trio-websocket vs websockets vs ws4py vs wsproto
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
WebSocket library for Trio
Low maintenance activity. Last release 21 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install trio-websocketAn implementation of the WebSocket Protocol (RFC 6455 & 7692)
Actively maintained. Last release 5 weeks ago, commits in 20 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 ws4pyPure-Python WebSocket protocol implementation
Low maintenance activity. Last release 12 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install wsprotoIn short
- websockets is the most used: 550.8M downloads a month, 7.6× more than wsproto.
- websockets also has the best Pythie’s Index (86).
- ws4py is growing fastest: downloads +14% over the last month.
- Safe default for a new project: websockets.
Side by side
| Metric | trio-websocket | websockets | ws4py | wsproto |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 24 | Pythie’s Index: 86 | Pythie’s Index: 32 | Pythie’s Index: 30 |
| Verdict | Low maintenance activity | Actively maintained | Low maintenance activity | Low maintenance activity |
| Downloads / month | 25.2M | 550.8M | 238.8K | 72.8M |
| Downloads, month over month | -9% | +12% | +14% | +4% |
| GitHub stars | 81 | 5.7K | 1.1K | 303 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 66 | 5.9K | 41 | 175 |
| Last release | Feb 25, 2025 | Oct 30, 2026 | Dec 19, 2024 | Nov 20, 2025 |
| Releases, 12 months | 0 | 9 | 0 | 0 |
| Weeks with commits | 0 / 26 | 20 / 26 | 2 / 26 | 0 / 26 |
| Recent contributors | 11 | 5 | 25 | 18 |
| First release | Sep 2018 | Nov 2013 | Sep 2013 | Aug 2016 |
| Python versions | 3.8 – 3.13 | 3.11 – 3.15 | 3.6 – 3.12 | 3.10 – 3.14 |
| License | MIT | BSD-3-Clause | BSD-3-Clause | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.