Comparison
autobahn vs trio-websocket vs websockets vs ws4py
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
WebSocket client & server library, WAMP real-time framework
Actively maintained. Last release 7 days ago, commits in 17 of the last 26 weeks. A safe choice.
pip install autobahnWebSocket 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 ws4pyIn short
- websockets is the most used: 550.8M downloads a month, 22× more than trio-websocket.
- Maintenance is comparable: websockets 86, autobahn 82, ws4py 32, trio-websocket 24 on Pythie’s Index.
- ws4py is growing fastest: downloads +18% over the last month.
- Safe default for a new project: websockets.
Side by side
| Metric | autobahn | trio-websocket | websockets | ws4py |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 82 | Pythie’s Index: 24 | Pythie’s Index: 86 | Pythie’s Index: 32 |
| Verdict | Actively maintained | Low maintenance activity | Actively maintained | Low maintenance activity |
| Downloads / month | 7.7M | 25.2M | 550.8M | 244.5K |
| Downloads, month over month | -15% | -9% | +12% | +18% |
| GitHub stars | 2.5K | 81 | 5.7K | 1.1K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 110 | 66 | 5.9K | 41 |
| Last release | Nov 25, 2026 | Feb 25, 2025 | Oct 30, 2026 | Dec 19, 2024 |
| Releases, 12 months | 9 | 0 | 9 | 0 |
| Weeks with commits | 17 / 26 | 0 / 26 | 20 / 26 | 2 / 26 |
| Recent contributors | 1 | 11 | 5 | 25 |
| First release | Aug 2011 | Sep 2018 | Nov 2013 | Sep 2013 |
| Python versions | 3.11 – 3.14 | 3.8 – 3.13 | 3.11 – 3.15 | 3.6 – 3.12 |
| License | MIT | MIT | BSD-3-Clause | BSD-3-Clause |
| 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.