Configure the Ocular SDK for your environment
Parameter | Type | Default | Description |
---|---|---|---|
api_key | string | None | Your Ocular API key (required) |
api_url | string | ”https://api.useocular.com” | Base URL for the Ocular API |
timeout | integer | 300 | Request timeout in seconds |
max_retries | integer | 3 | Maximum number of retry attempts |
backoff_factor | float | 0.5 | Exponential backoff factor for retries |
debug | boolean | False | Enable detailed logging |
Variable | Description | Default |
---|---|---|
OCULAR_API_KEY | Your API key | Required |
OCULAR_API_URL | API base URL | ”https://api.useocular.com” |
OCULAR_TIMEOUT | Request timeout | 300 |
OCULAR_MAX_RETRIES | Max retry attempts | 3 |
OCULAR_BACKOFF_FACTOR | Retry backoff factor | 0.5 |
OCULAR_DEBUG | Debug mode | false |
.env
file with the python-dotenv package: