Comparison
httpx-ws vs simple-websocket vs websocket-client vs ws4py
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
WebSockets support for HTTPX
Maintained. Last release 2 weeks ago, commits in 5 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install httpx-wsSimple WebSocket server and client for Python
Low maintenance activity. Last release over 2 years ago, commits in 1 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install simple-websocketWebSocket client for Python with low level API options
Maintained. Last release 3 months ago, commits in 3 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install websocket-clientWebSocket 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
- websocket-client is the most used: 176.7M downloads a month, 6.3× more than simple-websocket.
- httpx-ws is better maintained: Pythie’s Index 60 against 48.
- ws4py is growing fastest: downloads +14% over the last month.
Side by side
| Metric | httpx-ws | simple-websocket | websocket-client | ws4py |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 60 | Pythie’s Index: 22 | Pythie’s Index: 48 | Pythie’s Index: 32 |
| Verdict | Maintained | Low maintenance activity | Maintained | Low maintenance activity |
| Downloads / month | 10.9M | 28.3M | 176.7M | 238.8K |
| Downloads, month over month | +4% | +5% | -1% | +14% |
| GitHub stars | 151 | 90 | 3.7K | 1.1K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 46 | 69 | 2.1K | 41 |
| Last release | Nov 14, 2026 | Oct 10, 2024 | Aug 31, 2026 | Dec 19, 2024 |
| Releases, 12 months | 2 | 0 | 2 | 0 |
| Weeks with commits | 5 / 26 | 1 / 26 | 3 / 26 | 2 / 26 |
| Recent contributors | 9 | 3 | 20 | 25 |
| First release | Nov 2022 | Apr 2021 | Jan 2011 | Sep 2013 |
| Python versions | 3.11 – 3.15 | – | 3.10 – 3.14 | 3.6 – 3.12 |
| License | MIT | MIT | Apache-2.0 | 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.