bottle-websocket
WebSockets for bottle
What it is and what it does
bottle-websocket is a plugin for the Bottle web framework that adds WebSocket capabilities by wrapping gevent-websocket and gevent. It allows you to define WebSocket handlers as Bottle routes using a decorator, receiving the WebSocket connection object as a route argument. The package provides GeventWebSocketServer, a server implementation that runs Bottle with WebSocket support enabled.
The package was last updated in 2015 and is no longer actively maintained. While it has no known security vulnerabilities, its age and abandonment status mean it has not been tested against modern Python versions, current Bottle releases, or recent versions of its gevent dependencies. Installation requires compiling gevent's C extensions, which adds friction on systems without build tools.
Use it for:
- Build a real-time chat application where Bottle routes handle WebSocket connections for bidirectional messaging.
- Create a live dashboard that pushes server updates to connected clients over WebSocket without polling.
- Implement a multiplayer game backend using Bottle with WebSocket for low-latency player communication.
- Add real-time notifications to a Bottle web application by broadcasting messages to subscribed WebSocket clients.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds WebSocket support to the Bottle web framework by integrating gevent-websocket and gevent, enabling bidirectional communication on Bottle routes.
No. The package is abandoned (last release 2015-09-21, last commit 2020-11-15), has high install friction due to compiled dependencies, and lacks verification of compatibility with modern Python and Bottle versions. For new projects, use a maintained WebSocket library or framework. For legacy systems already running this package, proceed with caution and plan migration.
Install
bottle-websocket on PyPI
pip
pip install bottle-websocketuv
uv add bottle-websocketpoetry
poetry add bottle-websocketInstalling bottle-websocket
Before you install
High install friction: the package is abandoned (last release 2015-09-21, last commit 2020-11-15) and depends on compiled components. No recent maintenance or updates.
License in practice
MIT license is permissive and poses no restrictions on use, modification, or distribution for commercial or private projects.
Quickstart
pip install bottle-websocket
from bottle.ext.websocket import GeventWebSocketServer, websocket
from bottle import get, run
@get('/websocket', apply=[websocket])
def echo(ws):
while True:
msg = ws.receive()
if msg is not None:
ws.send(msg)
else:
break
run(host='127.0.0.1', port=8080, server=GeventWebSocketServer)
Requires compiled C extensions from gevent; build tools must be available on the system.
Verify before relying
- Compatibility with modern Python versions and current Bottle releases is unknown.
- Whether gevent-websocket and gevent dependencies remain compatible with contemporary systems.
- Current state of the underlying gevent-websocket library and whether it is actively maintained.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,980 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 76,621/month — #14,609 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: bottle-websocket-0.2.9.tar.gz
Keywords: bottle, websockets
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
bottleBottle is a lightweight WSGI microframework for…
permissive · top 5,000 on PyPI
gevent-websocketProvides WebSocket support for gevent-based…
unclear · top 5,000 on PyPI
flask-sockAdds WebSocket support to Flask applications…
permissive · top 5,000 on PyPI
websocketProvides WebSocket protocol support for…
permissive · top 15,000 on PyPI
httpx-wsAdds WebSocket support to HTTPX, enabling sync…
permissive · top 5,000 on PyPI
websockets-proxyEnables WebSocket connections through HTTP and…
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
websocketswebsockets is a library for building WebSocket…
permissive · top 100 on PyPI
django-gripIntegrates Django with GRIP-compatible proxies…
permissive · top 15,000 on PyPI