Install python3-kafka by entering the following commands in the terminal:
sudo apt update sudo apt install python3-kafka
Description:
Pure Python client for Apache Kafka - Python 3.x
This module provides low-level protocol support for Apache Kafka as well as high-level consumer and producer classes. Request batching is supported by the protocol as well as broker-aware request routing. Gzip and Snappy compression is also supported for message sets. . This package contains the Python 3.x module.
Homepage: https://github.com/mumrah/kafka-python
Version: 1.3.2-0ubuntu1
Section: universe/python