skillfed

gevent-websocket

Websocket handler for the gevent pywsgi server, a Python network library

gevent-websocket v0.10.1 1.1M downloads/30d#4,314 on PyPI
License unclear Copyright 2011-2017 Jeffrey Gelens <jeffrey@noppo.pro> Abandoned released

What it is and what it does

gevent-websocket is a WebSocket library that integrates with gevent's networking model to add real-time bidirectional communication to WSGI applications. It provides both a high-level application framework and low-level socket integration, allowing developers to handle WebSocket connections in gevent-based servers. The library supports WAMP (WebSocket Application Messaging Protocol) for RPC and publish-subscribe patterns, and includes a plugin API for custom protocol extensions.

The package depends solely on gevent and installs with low friction. However, it has been abandoned since 2017-03-12 with no maintenance, security updates, or compatibility work for modern Python versions. While it remains in the top 5000 PyPI packages by download volume, its age and lack of active development make it a legacy choice for new projects.

Use it for:

  • Building real-time chat or messaging applications using gevent's lightweight concurrency model.
  • Adding live data streaming or push notifications to WSGI applications without external WebSocket services.
  • Implementing RPC or pub-sub communication patterns in gevent-based services using WAMP.
  • Integrating WebSocket support into existing Gunicorn deployments via the GeventWebSocketWorker.
  • Maintaining legacy gevent applications that predate modern async frameworks.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides WebSocket support for gevent-based WSGI servers, enabling real-time bidirectional communication over HTTP with both high-level and low-level APIs.

No, unless maintaining legacy code. The package is abandoned (last release 2017-03-12), offers no security patches, and lacks compatibility assurance for modern Python. For new projects, evaluate actively maintained alternatives. If you must use gevent for WebSocket support, verify whether a fork or alternative is available.

Install

gevent-websocket on PyPI

pip

pip install gevent-websocket

uv

uv add gevent-websocket

poetry

poetry add gevent-websocket

Installing gevent-websocket

Before you install

Installation is straightforward with low friction, but the package is abandoned as of 2017-03-12 with no maintenance activity for over 3442 days. No recent security patches or compatibility updates should be expected.

License in practice

Licensed under Apache License 2.0 per the description excerpt. The license treatment is marked unclear in the metadata, so verify the exact license terms apply to your use case before relying on this package in production.

Quickstart

pip install gevent-websocket

from gevent import pywsgi
from geventwebsocket.handler import WebSocketHandler

def websocket_app(environ, start_response):
    ws = environ["wsgi.websocket"]
    message = ws.receive()
    ws.send(message)

server = pywsgi.WSGIServer(("", 8000), websocket_app, handler_class=WebSocketHandler)
server.serve_forever()

Requires gevent to be installed and working; intended for use with gevent-based WSGI servers.

Verify before relying

  • Whether the package remains compatible with Python 3.5+ as claimed in classifiers, given no updates since 2017-03-12.
  • Current state of the GitLab repository and whether it accepts contributions or security patches.
  • Whether optional performance dependencies (wsaccel, ujson, simplejson) remain maintained and compatible.

Package facts

License Copyright 2011-2017 Jeffrey Gelens <jeffrey@noppo.pro> (unclear)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — gevent
Maintenance abandoned — 3,442 days since the last release
First released
Downloads 1,132,974/month — #4,314 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: gevent_websocket-0.10.1-py3-none-any.whl

Tags

websocket gevent serverreal-time messaging geventwebsocket wsgi handlergevent websocket librarybidirectional communication geventwebsocket application frameworkgevent pywsgi websocket
abandoned-packagegevent-ecosystemlegacy-code

More WWW/HTTP packages