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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 541fbc62980d877ffb8ed25ba714d6137dfa61d9abb06b0175174f39f6c8d427 |
|
MD5 | 586d1ca468ed3be5d550ad8f81a0f864 |
|
BLAKE2b-256 | f5d83c9ac0a6df53e353ae91ec43b1eb777d17c2db30f3b036d2f591131bbbdd |
Close
Hashes for kafka_bridge_client-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 285a1a9723b2240250c6dea6afea3a692fa6167ab9ac7907e29e8bf803431cd3 |
|
MD5 | 25a9eb027f6949a5c64713591f4736be |
|
BLAKE2b-256 | 1c1cc6707b002a65eab5e63d1e6d0789794e8ef53779d281b890f8194f07831f |