Python Client - Overview
Let's build a Producer/Consumer with Python but first let's setup Python env
Check Python installation
Check you have the right version of python installed :)
$ python3 --version
Create virtualenv
# Choose your path accordingly to your local clone of the repo
python3 -m venv /path/to/new/virtual/environment
Activate your virtualenv
source [virtualenv_path]/bin/activate
On windows apply the following:
c:\>c:\Python35\python -m venv c:\path\to\myenv
Let's install the required libraries
Remember the repo we asked you to clone over the steps at: Setup your Environment follow the next steps:
Go to the producer-consumer folder
cd wwcode-kafka-workshop/producer-consumer
Install the required libraries
pip install -r requirements.txt
Success We are ready to go and build our Producer and Consumer in Python :-)
Last updated