Install via pip
The AveniECA Python SDK is available on PyPI and can be installed using pip:Dependencies
The SDK automatically installs the following dependencies:Python Version
The SDK requires Python 3.6 or higher.Environment Configuration
After installation, configure your environment variables to connect to your AveniECA instance.Set up Kafka connection
For streaming functionality, configure your Kafka broker URL:
The Kafka URL should point to your AveniECA instance’s Kafka broker. Contact your system administrator for the correct endpoint.
Verify Installation
Verify that the SDK is installed correctly by importing it in Python:Test Kafka Configuration
Verify your Kafka configuration:test_kafka.py
Test API Configuration
Verify your REST API configuration:test_api.py
Docker Setup (Optional)
If you’re running AveniECA in Docker, ensure your Python environment can reach the Kafka and API endpoints:docker-compose.yml
Troubleshooting
ImportError: No module named 'avenieca'
ImportError: No module named 'avenieca'
Ensure you’ve installed the package:If using a virtual environment, make sure it’s activated.
KeyError: 'KAFKA_URL'
KeyError: 'KAFKA_URL'
The Or set it programmatically in Python:
KAFKA_URL environment variable is not set. Set it in your shell:Connection refused to Kafka/API
Connection refused to Kafka/API
- Verify the AveniECA instance is running
- Check firewall rules and network connectivity
- Ensure the URLs are correct and accessible
- For Docker setups, verify network configuration
kafka-python installation fails
kafka-python installation fails
Some systems may need additional build tools for macOS:
kafka-python:Ubuntu/Debian:Next Steps
Quickstart Guide
Start building with streaming and API examples