An asynchronous Python Liftbridge client
Project description
Gufo Liftbridge
An asynchronous Python Liftbridge client
Documentation: https://docs.gufolabs.com/gufo_liftbridge/
Source Code: https://github.com/gufolabs/gufo_liftbridge/
Gufo Liftbridge is the Python asyncio Liftbridge client library. It hides complex cluster topology management handling tasks and the internals of the gRPC as well. Client offers following features:
- Publishing.
- Subscribing.
- Bulk publishing.
- Cursors manipulation.
- Cluster metadata fetching.
- Stream creating and destroying.
- Transparent data compression (own extension, may be not compatible with other clients).
Installing
pip install gufo_liftbridge
Publishing
from gufo.liftbridge.client import LiftbridgeClient
async def publish():
async with LiftbridgeClient(["127.0.0.1:9292"]) as client:
await client.publish(b"mybinarydata", stream="test", partition=0)
Subscribing
from gufo.liftbridge.client import LiftbridgeClient
async def subscribe():
async with LiftbridgeClient(["127.0.0.1:9292"]) as client:
async for msg in client.subscribe("test", partition=0):
print(f"{msg.offset}: {msg.value}")
Features
- Clean async API.
- High-performance.
- Built with security in mind.
- Full Python typing support.
- Editor completion.
- Well-tested, battle-proven code.
On Gufo Stack
This product is a part of Gufo Stack - the collaborative effort led by Gufo Labs. Our goal is to create a robust and flexible set of tools to create network management software and automate routine administration tasks.
To do this, we extract the key technologies that have proven themselves in the NOC and bring them as separate packages. Then we work on API, performance tuning, documentation, and testing. The NOC uses the final result as the external dependencies.
Gufo Stack makes the NOC better, and this is our primary task. But other products can benefit from Gufo Stack too. So we believe that our effort will make the other network management products better.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gufo_liftbridge-0.2.0.tar.gz.
File metadata
- Download URL: gufo_liftbridge-0.2.0.tar.gz
- Upload date:
- Size: 36.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40c1e5dff754bd258a625b2876c0f8f765e80a923f849ba4945bff6f2ae23392
|
|
| MD5 |
d52578e1b99282f5b2ac796270d3b3bb
|
|
| BLAKE2b-256 |
475aceb6dee08902e822b48c4a0475edd36262bf7b0a5ec774f01ad127f9704b
|
Provenance
The following attestation bundles were made for gufo_liftbridge-0.2.0.tar.gz:
Publisher:
py-tests.yml on gufolabs/gufo_liftbridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gufo_liftbridge-0.2.0.tar.gz -
Subject digest:
40c1e5dff754bd258a625b2876c0f8f765e80a923f849ba4945bff6f2ae23392 - Sigstore transparency entry: 444366993
- Sigstore integration time:
-
Permalink:
gufolabs/gufo_liftbridge@8dde15f425a8b58773b21f230280392d8558ecef -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/gufolabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
py-tests.yml@8dde15f425a8b58773b21f230280392d8558ecef -
Trigger Event:
release
-
Statement type:
File details
Details for the file gufo_liftbridge-0.2.0-py3-none-any.whl.
File metadata
- Download URL: gufo_liftbridge-0.2.0-py3-none-any.whl
- Upload date:
- Size: 31.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
836a36b395c4ea9c60f73957ec1de8fd0ec52075a64fd539aad2d9681d9b622b
|
|
| MD5 |
33fb4cd53e2fe5d2d6e757ee105c5ab6
|
|
| BLAKE2b-256 |
76fd3a5e0782a360f1526c52ee927956e4a8cc3ae874b918ef025d9846497a74
|
Provenance
The following attestation bundles were made for gufo_liftbridge-0.2.0-py3-none-any.whl:
Publisher:
py-tests.yml on gufolabs/gufo_liftbridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gufo_liftbridge-0.2.0-py3-none-any.whl -
Subject digest:
836a36b395c4ea9c60f73957ec1de8fd0ec52075a64fd539aad2d9681d9b622b - Sigstore transparency entry: 444366998
- Sigstore integration time:
-
Permalink:
gufolabs/gufo_liftbridge@8dde15f425a8b58773b21f230280392d8558ecef -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/gufolabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
py-tests.yml@8dde15f425a8b58773b21f230280392d8558ecef -
Trigger Event:
release
-
Statement type: