Comparison
httpx-ws 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 4 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install httpx-wsWebSocket 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-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: 180.9M downloads a month, 16× more than httpx-ws.
- Maintenance is comparable: httpx-ws 59, websocket-client 55, ws4py 32 on Pythie’s Index.
- ws4py is growing fastest: downloads +13% over the last month.
Side by side
| Metric | httpx-ws | websocket-client | ws4py |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 59 | 55 |