# Lawouach/WebSocket-for-Python

WebSocket client and server library for Python 2 and 3 as well as PyPy (ws4py 0.5.1)

Repository: https://github.com/Lawouach/WebSocket-for-Python
Canonical: https://ross.abutalabs.com/products/websocket-for-python
Homepage: https://ws4py.readthedocs.org/en/latest/
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: python, ws4py, websockets
Last push: 2026-03-30T05:25:44+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 74, release rhythm 9, longevity 100
- inputs: {"age_days": 5504, "days_push": 156, "days_rel": 396, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1127, forks 285 (observed 2026-08-28T04:03:41.543507+00:00)

## What it is
ws4py is a Python library implementing the WebSocket protocol (RFC 6455) for both clients and servers, supporting Python 2, 3, and PyPy. It provides a lightweight way to add real-time bidirectional communication to Python applications.

## Use cases
- add websocket support to a python server
- python websocket client library
- implement rfc 6455 websockets in python
- stream real-time messages over websockets
- websocket library that works on pypy

## When to choose
- you need a lightweight, pure-Python WebSocket implementation
- you must support both Python 2 and 3 or PyPy
- you want client and server WebSocket support in one library

## When to avoid
- you need a actively developed library with frequent updates
- you want WebSocket support integrated with a modern async framework like asyncio or FastAPI
- you need high-performance production websockets at scale

## Facets
- artifact type: library
- maturity: maintenance
- function: websocket, http-server, http-client
- domain: web-development, networking
- platform: python, cross-platform
- tags: rfc6455, ws4py, pypy-support, real-time

## Member repositories
- Lawouach/WebSocket-for-Python (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:41.543507+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:38:45.849419+00:00, confidence not recorded.
  - readme: https://github.com/Lawouach/WebSocket-for-Python (fetched 2026-08-28T04:03:41.543507+00:00, sha 1af374ca7d6c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
