Skip to main content

An asynchronous Python Liftbridge client

Project description

Gufo Liftbridge

An asynchronous Python Liftbridge client

PyPi version Downloads Python Versions License Build Sponsors Ruff

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gufo_liftbridge-0.2.0.tar.gz (36.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gufo_liftbridge-0.2.0-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

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

Hashes for gufo_liftbridge-0.2.0.tar.gz
Algorithm Hash digest
SHA256 40c1e5dff754bd258a625b2876c0f8f765e80a923f849ba4945bff6f2ae23392
MD5 d52578e1b99282f5b2ac796270d3b3bb
BLAKE2b-256 475aceb6dee08902e822b48c4a0475edd36262bf7b0a5ec774f01ad127f9704b

See more details on using hashes here.

Provenance

The following attestation bundles were made for gufo_liftbridge-0.2.0.tar.gz:

Publisher: py-tests.yml on gufolabs/gufo_liftbridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gufo_liftbridge-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gufo_liftbridge-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 836a36b395c4ea9c60f73957ec1de8fd0ec52075a64fd539aad2d9681d9b622b
MD5 33fb4cd53e2fe5d2d6e757ee105c5ab6
BLAKE2b-256 76fd3a5e0782a360f1526c52ee927956e4a8cc3ae874b918ef025d9846497a74

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page