lomond
Websocket Client Library
What it is and what it does
Lomond is a WebSocket client that wraps raw WebSocket connections into an event-driven interface. Instead of managing threads or callbacks, you construct a WebSocket object and iterate over it, receiving event objects for each connection state change and incoming message. The library handles the WebSocket handshake and protocol details internally, yielding events like Connecting, Connected, Ready, Binary, Text, Poll, Closed, and Disconnected as the connection progresses.
The package depends only on six for Python 2/3 compatibility and is designed for straightforward, synchronous WebSocket consumption. It's useful when you want to read from a WebSocket in a simple loop without concurrent connection management, though the gap between the latest release (2018) and current date means you should verify compatibility with modern Python versions before relying on it for new projects.
Use it for:
- Build a simple WebSocket client that polls a server and processes incoming text or binary messages in a single event loop
- Connect to public echo or test WebSocket servers to verify connectivity or debug protocol behavior
- Implement a basic real-time data consumer that receives updates from a WebSocket and processes them sequentially
- Create a command-line tool that maintains a persistent WebSocket connection and reacts to server events
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Lomond is a WebSocket client library that converts WebSocket connections into an event stream, allowing you to iterate over connection and message events without threads or callbacks.
Yes, if you need a lightweight, event-driven WebSocket client for Python and are comfortable with a library whose latest release is from 2018. The active repository and permissive license are positive signals, but verify Python version compatibility for your target environment before committing to it in new projects. For modern applications, consider whether a more recently maintained alternative better suits your needs.
Install
lomond on PyPI
pip
pip install lomonduv
uv add lomondpoetry
poetry add lomondInstalling lomond
Before you install
Low install friction with a single lightweight dependency (six). The package is marked as active with recent repository activity (last commit 2026-07-06), though the latest PyPI release dates to 2018-09-21.
License in practice
Licensed under a permissive BSD license, allowing commercial and private use with minimal restrictions.
Quickstart
from lomond import WebSocket
websocket = WebSocket('wss://echo.websocket.org')
for event in websocket:
if event.name == 'text':
print(event.text)
elif event.name == 'poll':
websocket.send_text('message')
Verify before relying
- Current Python version support: classifiers list 2.7, 3.3–3.6, but requires_python is unspecified and latest release is from 2018
- Whether repository activity since 2018 includes bug fixes or is maintenance-only
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — six |
| Maintenance | actively maintained — 2,884 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 937,485/month — #4,690 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: lomond-0.3.3-py2.py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
websockifyTranslates WebSocket connections to normal TCP…
copyleft · top 15,000 on PyPI
websocketswebsockets is a library for building WebSocket…
permissive · top 100 on PyPI
plexwebsocketAsync library that connects to Plex media…
permissive · top 15,000 on PyPI
websocket-clientwebsocket-client provides a Python WebSocket…
permissive · top 1,000 on PyPI
flask-sockAdds WebSocket support to Flask applications…
permissive · top 5,000 on PyPI
zwave-js-server-pythonPython client library for communicating with…
permissive · top 15,000 on PyPI
wsprotowsproto is a pure-Python WebSocket protocol…
permissive · top 1,000 on PyPI
pysignalrAsync-ready client library for connecting to…
permissive · top 15,000 on PyPI
websockets-proxyEnables WebSocket connections through HTTP and…
permissive · top 15,000 on PyPI
bottle-websocketAdds WebSocket support to the Bottle web…
permissive · top 15,000 on PyPI