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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 072966253b3c28a1632891e4045be94c94dedf9861287b614247e88dc569085c |
|
MD5 | c5f8c33c25e3017a6c970736ab92c4a6 |
|
BLAKE2b-256 | 2119ff082b3b7821955bdf132821849939b4e35095d9619b3c5ec04e3b5ca011 |
Close
Hashes for kafka_bridge_client-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5d18af4294d3404052e8033af68d4ee517047e93c64011ee74574743ef3176a |
|
MD5 | 04d8f097eb53aa6c603f74d611933b6f |
|
BLAKE2b-256 | 556dfa9a0834a3368a322b69ab381d5b260926ce4600abc1a13233715b907d28 |