The script ./bin/initial_setup.sh will download a local installation of kafka from apache.
NOTE: the signature checking is skipped so please download manually if it is critical for your use case.
Use ./bin/start_local_kafka_server.sh
Use ./bin/stop_local_kafka_server.sh
NOTE: this also removes all events that remained in any used kafka topics.
Open 2 terminals, in the first one start:
python3 ./src/async_consumer.py
In the other run:
python3 ./src/producer.py
For kafka installation and basic use please see: Kafka Quickstart
For details on async kafka bindings for python see: aiokafka RTFM