websocket-client
WebSocket client library for Python with low-level API options.
HTTP clients and networking PyPI Apache-2.0
Used in agent projects
36
0.3% of 12,697 public repos built with AI coding agents
Rank in http clients and networking
#22 of 29
by use in those projects
Downloads
40M
PyPI, last 7 days, websocket-client
GitHub stars
3,708
last push Sep 24, 2026
How websocket-client is used
websocket-client is a dependency in 36 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.3%), #22 of 29 in http clients and networking. The most used alternative there is Axios. Projects that use it most often also use Requests (91.7%), NumPy (80.6%), python-dotenv (66.7%).
Often used with websocket-client
| Requests | 91.7% of websocket-client projects · 17.2× more than average |
|---|---|
| NumPy | 80.6% of websocket-client projects · 21.0× more than average |
| python-dotenv | 66.7% of websocket-client projects · 10.2× more than average |
| urllib3 | 63.9% of websocket-client projects · 42.0× more than average |
| websockets | 63.9% of websocket-client projects · 28.4× more than average |
| pandas | 63.9% of websocket-client projects · 21.2× more than average |
| attrs | 61.1% of websocket-client projects · 60.6× more than average |
| charset-normalizer | 61.1% of websocket-client projects · 49.1× more than average |
By coding agent
| Claude Code | 0.3% of projects set up for it |
|---|---|
| GitHub Copilot | 0.2% of projects set up for it |
| Cursor | 0.2% of projects set up for it |
Share of public repos configured for each agent that list websocket-client as a dependency.
Install
| Package | pip install websocket-client |
|---|---|
| Main stacks | Python (34), Other (1), Next.js (1) |
| Example projects | Josh-XT/AGiXT, fireblocks/fireblocks-key-recovery-tool, loblawbob873-svg/posterchanai, ManojINaik/manimAnimationAgent, PhungXuanAnh/selenium-mcp-server |
Alternatives to websocket-client
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Axios npm Promise-based HTTP client for browser and Node.js with interceptors. |
1,264 (10.0%) | 115M | 109K | MIT |
| Requests pypi Elegant Python HTTP library for making web requests. |
675 (5.3%) | 309M | 54.6K | Apache-2.0 |
| aiohttp pypi Async HTTP client/server framework for Python with WebSocket support. |
295 (2.3%) | 117M | 16.6K | — |
| ws npm Simple, fast WebSocket client and server for Node.js with full RFC support. |
287 (2.3%) | 283M | 22.8K | MIT |
| websockets pypi WebSocket implementation for Python with RFC 6455 and 7692 compliance. |
286 (2.3%) | 109M | 5,732 | — |
| httpx pypi Modern Python HTTP client with async support, replacing the standard requests library. |
266 (2.1%) | 16M | 15.6K | BSD-3-Clause |
| node-fetch npm Bring the Fetch API to Node.js for making HTTP requests. |
219 (1.7%) | 207M | 8,852 | MIT |
| urllib3 pypi HTTP client with thread-safe connection pooling, file uploads and advanced features. |
193 (1.5%) | 338M | 4,071 | — |