Step 6: Set up environment variables

Teradata Developer Guides

ft:locale
en-US
ft:lastEdition
2026-08-18

Create a .env file in the same directory as consumer.py:

TERADATA_HOST=<your-host>
TERADATA_USER=<your-user>
TERADATA_PASSWORD=<your-password>
REDIS_HOST=localhost
REDIS_PORT=6379

Replace the placeholders with your actual Teradata credentials.