| What it is | WebSocket client for Python with low-level API access | Library for building WebSocket servers and clients in Python |
| Kind | Open source | Open source |
| Trust | 0.60 | 0.67 |
| Stars | 3710 | 5748 |
| Last commit | 2026-10-20 | 2026-11-14 |
| Licence | Apache-2.0 | BSD-3-Clause |
| Pricing | Free and open source | Free and open source |
| Free tier | Yes | Yes |
| Self-hostable | — | — |
| Ways to run it | — | — |
| SOC 2 | — | — |
| HIPAA | — | — |
| SSO | — | — |
| API | — | — |
| Plugins | — | — |
| MCP server | — | — |
| Company | websocket-client | Aymeric Augustin |
| Features | - low-level WebSocket API
- WebSocketApp with callbacks and automatic reconnection
- proxy support through python-socks
- optional wsaccel speed-up
| - WebSocket servers and clients for Python
- coroutine API on asyncio, plus threading and trio implementations
- Sans-I/O layer for integration in other projects
- compliance with RFC 6455 and RFC 7692 compression, with 100% branch coverage
- handles backpressure
- C extension, pre-built for Linux, macOS and Windows
|
| Limitations | - Doesn't support the permessage-deflate compression extension (RFC 7692).
| - It has no callback-based API: pick another library if you prefer callbacks over coroutines.
- Its HTTP support is minimal, just enough for a health check; for HTTP and WebSocket in one server, use a server built on it such as Uvicorn.
|