Created by: willmcgugan
What is this Python project?
Lomond is a WebSocket client designed for ease of use.
What's the difference between this Python project and similar ones?
Lomond exposes WebSocket interactions with an iterator of events, which is often easier to reason about than the callback approach taken by most WebSocket libraries.
This library is well tested with 100% coverage, and commercially sponsored.
Here's an example that streams Bitcoin prices.
from lomond import WebSocket
websocket = WebSocket('wss://ws-feed.gdax.com')
for event in websocket:
if event.name == "ready":
websocket.send_json(
type='subscribe',
product_ids=['BTC-USD'],
channels=['ticker']
)
elif event.name == "text":
print(event.json)
More information here
--
Anyone who agrees with this pull request could vote for it by adding a