trio-websocket
WebSocket library for Trio
Install
trio-websocket on PyPI
pip
pip install trio-websocketuv
uv add trio-websocketpoetry
poetry add trio-websocketPackage facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — outcome, trio, wsproto, exceptiongroup |
| Maintenance | aging — 534 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: trio_websocket-0.12.2-py3-none-any.whl
Keywords: websocket, client, server, trio
About trio-websocket
from the package's own PyPI description — quoted content, verbatim
Trio WebSocket
This library implements both server and client aspects of the the WebSocket protocol, striving for safety, correctness, and ergonomics. It is based on the wsproto project, which is a Sans-IO state machine that implements the majority of the WebSocket protocol, including framing, codecs, and events. This library handles I/O using the Trio framework. This library passes the Autobahn Test Suite.
This README contains a brief introduction to the project. Full documentation is available here.
PyPI (image) Python Versions (image) Build Status (image) [![Read the...
Read as markdown · JSON record · Source repository · Homepage
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
Implements WebSocket client and server using the Trio async framework, built on wsproto for protocol handling and passing the Autobahn Test Suite.
Low install friction with a pure-Python wheel and four straightforward runtime dependencies. However, the project is on life-support maintenance with the last release 534 days ago, though the repository remains active and not archived.
Licensed under the MIT License (permissive), allowing commercial and private use with minimal restrictions.
Usage
pip install trio-websocket
import trio
from trio_websocket import open_websocket_url
async def main():
async with open_websocket_url('wss://echo.websocket.org') as ws:
await ws.send_message('hello')
msg = await ws.get_message()
print(msg)
trio.run(main)
Requires Python 3.8 or greater; Trio framework must be installed as a runtime dependency.
Verdict: A solid, well-tested WebSocket implementation for Trio with no known vulnerabilities and permissive licensing. The aging maintenance status and 534-day gap since last release warrant caution for new projects; consider it stable for existing deployments but evaluate alternatives like quart-trio if you need active development support.
Needs verification
- Whether the 534-day release gap reflects true maintenance inactivity or intentional stability; last commit date is recent (2025-10-21) but may not indicate active feature work.
- Performance comparison with alternatives mentioned (quart-trio) to inform selection for new projects.
Similar packages
permissive · top 1,000 on PyPI
sniffiopermissive · top 100 on PyPI
triopermissive · top 1,000 on PyPI
outcomepermissive · top 1,000 on PyPI
websocket-clientpermissive · top 1,000 on PyPI
jeepneypermissive · top 1,000 on PyPI
websocketspermissive · top 100 on PyPI
uvicornpermissive · top 100 on PyPI
anyiopermissive · top 100 on PyPI
realtimepermissive · top 1,000 on PyPI