Skip to main content

Python client for Strimzi Kafka Bridge

Project description

kafka-bridge-client

Python async client for Strimzi Kafka Bridge. Package include consumer only.

License: MIT PRs Welcome PyPI version

Install

pip install kafka-bridge-client

Usage

from kafka_bridge_client import KafkaBridgeConsumer


consumer = KafkaBridgeConsumer(
    'topic1',
    'topic2',
    group_id='my-group,
    auto_offset_reset='earliest',
    enable_auto_commit=False,
    bootstrap_server='your-kafka-bridge-url',
    consumer_name='consumer-name',
)

async for rec in consumer.get_records():
    print(rec['value'])
    await consumer.commit()

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

kafka-bridge-client-0.1.3.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

kafka_bridge_client-0.1.3-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

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