gevent-websocket
Websocket handler for the gevent pywsgi server, a Python network library
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-websocketuv
uv add gevent-websocketpoetry
poetry add gevent-websocketInstalling 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
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
bottle-websocketAdds WebSocket support to the Bottle web…
permissive · top 15,000 on PyPI
websocketProvides WebSocket protocol support for…
permissive · top 15,000 on PyPI
flask-sockAdds WebSocket support to Flask applications…
permissive · top 5,000 on PyPI
websocket-clientwebsocket-client provides a Python WebSocket…
permissive · top 1,000 on PyPI
wslinkwslink provides bi-directional websocket…
permissive · top 5,000 on PyPI
ws4pyws4py implements the WebSocket protocol (RFC…
permissive · top 15,000 on PyPI
simple-websocketProvides a straightforward WebSocket server and…
permissive · top 1,000 on PyPI
Flask-SocketIOFlask-SocketIO adds real-time bidirectional…
permissive · top 5,000 on PyPI
wsgirefProvides WSGI 1.0.1 (PEP 3333) validation…
permissive · top 15,000 on PyPI
locust-cloudLocust Cloud is a client library for running…
permissive · top 5,000 on PyPI