I am using Kafka python version 2.0.2 to Produce and consume messages: My producer :
from kafka import KafkaProducer producer = KafkaProducer(bootstrap_server