Skip to content

Please add Lomond to the WebSocket section#1070

Closed
willmcgugan wants to merge 2 commits intovinta:masterfrom
willmcgugan:master
Closed

Please add Lomond to the WebSocket section#1070
willmcgugan wants to merge 2 commits intovinta:masterfrom
willmcgugan:master

Conversation

@willmcgugan
Copy link

@willmcgugan willmcgugan commented May 16, 2018

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 👍 to it, and usually, the maintainer will merge it when votes reach 20.

Add Lomond
Alphabetical order
@vinta vinta force-pushed the master branch 2 times, most recently from 23abd09 to 40cd98b Compare June 6, 2019 19:55
@stale
Copy link

stale bot commented Oct 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 30, 2019
@stale stale bot closed this Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant