--- id: trio-websocket version: "0.12.2" license: unclear license_treatment: permissive maintenance: aging --- # trio-websocket — WebSocket library for Trio License: permissive · Maintenance: aging · Popularity: top 1,000 on PyPI ## Install pip install trio-websocket uv add trio-websocket poetry add trio-websocket ## Description # Trio WebSocket This library implements both server and client aspects of the [the WebSocket protocol](https://tools.ietf.org/html/rfc6455), striving for safety, correctness, and ergonomics. It is based on the [wsproto project](https://wsproto.readthedocs.io/en/latest/), which is a [Sans-IO](https://sans-io.readthedocs.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](https://trio.readthedocs.io/en/latest/). This library passes the [Autobahn Test Suite](https://github.com/crossbario/autobahn-testsuite). This README contains a brief introduction to the project. Full documentation [is available here](https://trio-websocket.readthedocs.io). [![PyPI](https://img.shields.io/pypi/v/trio-websocket.svg?style=flat-square)](https://pypi.org/project/trio-websocket/) ![Python Versions](https://img.shields.io/pypi/pyversions/trio-websocket.svg?style=flat-square) [![Build Status](https://img.shields.io/github/actions/workflow/status/python-trio/trio-websocket/ci.yml)](https://github.com/python-trio/trio-websocket/actions/workflows/ci.yml) [![Read the... ## AI interpretation — verify before relying Implements WebSocket client and server using the Trio async framework, built on wsproto for protocol handling and passing the Autobahn Test Suite. 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. [View on SkillFed](https://skillfed.io/packages/trio-websocket) · [View on PyPI](https://pypi.org/project/trio-websocket/)