[PR #1070] [CLOSED] Please add Lomond to the WebSocket section #963

Closed
opened 2025-11-06 13:06:20 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/1070
Author: @willmcgugan
Created: 5/16/2018
Status: Closed

Base: masterHead: master


📝 Commits (2)

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/vinta/awesome-python/pull/1070 **Author:** [@willmcgugan](https://github.com/willmcgugan) **Created:** 5/16/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`b15b99d`](https://github.com/vinta/awesome-python/commit/b15b99dd55cac17877934e514df4b87a4d3524b8) Update README.md - [`0acde7c`](https://github.com/vinta/awesome-python/commit/0acde7c572bc153797ac2da295675ac683154a15) Update README.md ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description ## 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. ```python 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](https://www.willmcgugan.com/blog/tech/post/announcing-lomond/) -- Anyone who agrees with this pull request could vote for it by adding a :+1: to it, and usually, the maintainer will merge it when votes reach **20**. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 13:06:20 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#963