kafka-python
An open-source Python client library for Kafka that provides KafkaProducer, KafkaConsumer and KafkaAdminClient.
In more detail
It is written in pure Python and mirrors the design of the official Java client, including its configuration names with underscores instead of dots. The course pins version 2.2.15 in its client image. Newer major versions change some defaults, such as enabling idempotence automatically.
Example
pip install kafka-python==2.2.15Related terms
- KafkaProducer — The kafka-python class that buffers records, batches them and sends them to Kafka in the background.
- KafkaConsumer — The kafka-python class that reads records from Kafka topics, joins consumer groups and commits offsets.
- KafkaAdminClient — The kafka-python class for administrative tasks such as creating topics and describing their partitions, replicas and in-sync replica sets.
- Python — A popular general-purpose programming language known for readable code and a large standard library.
Taught in
- A Producer In Python — Apache Kafka & Event Streaming
- Keys And Ordering Per Partition — Apache Kafka & Event Streaming
- A Consumer In Python — Apache Kafka & Event Streaming
- Headers, Envelopes And Event Metadata — Apache Kafka & Event Streaming