websocket-client
WebSocket client for Python with low level API options
Install
websocket-client on PyPI
pip
pip install websocket-clientuv
uv add websocket-clientpoetry
poetry add websocket-clientPackage facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 310 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: websocket_client-1.9.0-py3-none-any.whl
Keywords: websockets, client
About websocket-client
from the package's own PyPI description — quoted content, verbatim
docs (image) Build Status (image) codecov (image) PyPI Downloads (image) PyPI version (image) License (image) Code style: black (image)
websocket-client
websocket-client is a WebSocket client for Python. It provides access to low level APIs for WebSockets. websocket-client implements version hybi-13 of the WebSocket...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
websocket-client provides a Python WebSocket client implementing the hybi-13 protocol with low-level APIs for establishing and managing WebSocket connections, including automatic reconnection support via event callbacks.
Installs with zero runtime dependencies and ships as a pure-Python wheel. Actively maintained with recent commits and a 13-year release history; last release 310 days ago signals steady but not rushed development.
Apache-2.0 is permissive and imposes minimal restrictions; you may use, modify, and distribute this package freely in commercial and private projects provided you include a copy of the license.
Usage
pip install websocket-client
from websocket import create_connection
ws = create_connection("ws://echo.websocket.events/")
ws.send("Hello")
print(ws.recv())
ws.close()
Requires Python 3.9 or later; optional dependencies unlock proxy support, performance tuning, and automatic reconnection.
Verdict: A stable, dependency-free WebSocket client suitable for production use. Zero known vulnerabilities, permissive licensing, and active maintenance make it a low-risk choice. The 310-day gap since last release is normal for a mature library; the recent commit history confirms ongoing support.
Needs verification
- Whether the hybi-13 protocol version and lack of RFC 7692 (permessage-deflate) compression support meet your application's interoperability requirements.
- Real-world performance characteristics and whether optional wsaccel installation is necessary for your use case.
Similar packages
permissive · top 1,000 on PyPI
websocketspermissive · top 100 on PyPI
tornadopermissive · top 1,000 on PyPI
simple-websocketpermissive · top 1,000 on PyPI
trio-websocketpermissive · top 1,000 on PyPI
uvicornpermissive · top 100 on PyPI
elastic-transportpermissive · top 1,000 on PyPI
aiohttppermissive · top 100 on PyPI
jwcryptocopyleft · top 1,000 on PyPI
amqppermissive · top 1,000 on PyPI