Skip to main content

No project description provided

Project description

Gufo Liftbridge

An asynchronous Python Liftbridge client

PyPi version Python Versions License Build Sponsors


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}")

Virtues

  • Clean async API.
  • High-performance.
  • Full Python typing support.
  • Editor completion.
  • Well-tested, battle-proven code.

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.1.0.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

gufo_liftbridge-0.1.0-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

Details for the file gufo_liftbridge-0.1.0.tar.gz.

File metadata

  • Download URL: gufo_liftbridge-0.1.0.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for gufo_liftbridge-0.1.0.tar.gz
Algorithm Hash digest
SHA256 89162d34462b197f1c95976b4d73a0f6a8ee4ba0af18f35fd9d5c9f3ec2b218a
MD5 bebd142b742b5910e4e20847ad622537
BLAKE2b-256 ffb0c785bdb9fd96e54d708cb45eb55fdcd80ebbfc186f10b6b615a5a2884678

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gufo_liftbridge-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a2c8e1de6239f4549de5be2dd2f9a860ea8c0b86b2d10c6e312edfbb776028d
MD5 385d72292668ddedc5d3b341dbbf9826
BLAKE2b-256 22331d0813cc7452dbb8b28b14f268e30412c7c57fb3c8927668e434313c9e55

See more details on using hashes here.

Supported by

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