Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 472 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 472 Bytes

Redpanda Python Examples

Create Python virtual environment

python3 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

Create dotenv file

vim .env
REDPANDA_BROKERS=<comma-separated list of brokers>
REDPANDA_SERVICE_ACCOUNT=<service account name>
REDPANDA_SERVICE_ACCOUNT_PASSWORD=<service account password>

Run the producer and consumer

python producer.py
python consumer.py