Anomalo API Client
raw JSON → 0.41.2 verified Fri May 01 auth: no python
Python client library for the Anomalo API, enabling programmatic management of data quality checks, anomaly detection, and monitoring. Current version 0.41.2 supports Python 3.9+ and is actively maintained with regular releases.
pip install anomalo Common errors
error ImportError: cannot import name 'Client' from 'anomalo' (unknown location) ↓
cause Library not installed or wrong Python environment.
fix
Run
pip install anomalo and ensure the correct virtual environment is active. error anomalo.exceptions.AuthenticationError: Invalid API key ↓
cause API key is missing, empty, or incorrect.
fix
Verify the API key is set correctly:
client = Client(api_key='...') or via environment variable ANOMALO_API_KEY. Warnings
breaking Version 0.40.0 removed the deprecated `Client` class initialization without explicit `api_key` parameter. You must now provide `api_key` as a named argument. ↓
fix Update to `Client(api_key='your-key', host='...')` instead of positional or legacy calls.
gotcha The `host` parameter must include the protocol (https://) and no trailing slash. Omitting `https://` will cause connection errors. ↓
fix Always set host as 'https://your-instance.anomalo.com' (with protocol, no trailing slash).
Imports
- Client wrong
from anomalo.client import Clientcorrectfrom anomalo import Client
Quickstart
from anomalo import Client
api_key = os.environ.get('ANOMALO_API_KEY', '')
client = Client(api_key=api_key, host='https://your-instance.anomalo.com')
checks = client.list_checks()
print(checks)