Python client for Strimzi Kafka Bridge
Project description
kafka-bridge-client
Python async client for Strimzi Kafka Bridge and Confluent REST Proxy Package include consumer only.
Install
pip install kafka-bridge-client
Usage
By default client use Strimzi Kafka Bridge API
from kafka_bridge_client import KafkaBridgeConsumer
# Strimzi Kafka Bridge
consumer1 = 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',
)
# Confluent REST Proxy
consumer2 = 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',
proxy='confluent'
)
async for rec in consumer1.get_records():
print(rec['value'])
await consumer.commit()
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
Close
Hashes for kafka-bridge-client-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a715cd69b10208ffcdfe23e3ebce74d1ed4ac622e1ea8be0d5e2848c0a0e4740 |
|
MD5 | 598228d1aef1e973adfcd5699db45875 |
|
BLAKE2b-256 | 7ad6b77a21b0ebcd9a391072c300b71c4977ba78e88d18b23116d633dc3b3931 |
Close
Hashes for kafka_bridge_client-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54e6b3e3c6dd4b928a7c59aeed8da59fcd209bdf46fddb1b20fa2fee52a2de8e |
|
MD5 | f246ab74a37eae50c930a63f4d92da02 |
|
BLAKE2b-256 | 62de979566741d97495a00828b119796241ed90f2d678274eaaf0f13dc4ddbb3 |