# miguelgrinberg/python-socketio

Python Socket.IO server and client

Repository: https://github.com/miguelgrinberg/python-socketio
Canonical: https://ross.abutalabs.com/products/python-socketio
Language: Python
License: MIT
License Family: permissive
Topics: socket-io, socketio, socketio-server, websocket, long-polling, low-latency, web-server, python, asyncio, eventlet, gevent
Last push: 2026-08-09T23:02:03+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 96, longevity 100
- inputs: {"age_days": 4067, "days_push": 24, "days_rel": 27, "gap_med": 24, "n_releases_24m": 14}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4368, forks 625 (observed 2026-08-28T04:08:46.709819+00:00)

## What it is
A Python implementation of the Socket.IO realtime client and server, supporting WebSocket and long-polling transports with asyncio, eventlet, and gevent integration. It enables bidirectional, event-based communication between Python servers and clients, including compatibility with the JavaScript Socket.IO reference implementation.

## Use cases
- build a realtime chat server in Python
- push live updates to web clients over websockets
- add bidirectional event-based messaging to a Flask or FastAPI app
- connect a Python client to a JavaScript Socket.IO server
- implement low-latency notifications or live dashboards
- stream data to browsers in real time

## When to choose
- you need Socket.IO protocol compatibility in Python, including with JS clients
- you want event-based realtime messaging with fallback to long-polling
- you need asyncio, eventlet, or gevent support
- you want a mature, well-documented library with an active maintainer

## When to avoid
- you only need plain WebSockets without the Socket.IO protocol overhead
- you need protocol revisions older than revision 4 (Engine.IO 3)
- your project is not Python-based

## Facets
- artifact type: library
- maturity: stable
- function: websocket, http-server, middleware
- domain: web-development, backend, networking
- platform: python, cross-platform
- tags: socketio, realtime, asyncio, eventlet, gevent, long-polling, low-latency, event-driven, real-time, web-server

## Member repositories
- miguelgrinberg/python-socketio (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:46.709819+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-29T18:21:23.990098+00:00, confidence not recorded.
  - readme: https://github.com/miguelgrinberg/python-socketio (fetched 2026-08-28T04:08:46.709819+00:00, sha 704c0371796f)
  - registry_pypi: https://pypi.org/pypi/python-socketio/json (fetched 2026-08-29T09:09:53.820388+00:00, sha f814f03f0933)
- Data as of 2026-08-30T08:39:29.467469+00:00.
