Prerequisites
- An AnomalyArmor account with at least one connected data source
- Python 3.9+ installed
- An API key (create in Settings > API Keys)
Step 1: Install the SDK
Step 2: Configure Authentication
Store your API key securely. You have two options: Option A: Environment variable (recommended for CI/CD)Step 3: Verify Connection
Test that everything is working:Step 4: Check Data Freshness
The most common integration pattern is checking data freshness before running a pipeline. Here’s a complete example:Step 5: Add Data Quality Checks
Expand your integration with validity and referential integrity checks:Step 6: Create a Quality Gate
Combine all checks into a single quality gate function:Step 7: CLI Integration
For shell scripts and CI/CD, use the CLI directly:Common Patterns
Pattern 1: Pre-ETL Validation
Run checks before ETL starts:Pattern 2: Post-ETL Validation
Verify output quality after ETL:Pattern 3: Continuous Monitoring
Schedule regular quality checks:Next Steps
dbt Integration
Add quality gates to dbt workflows
GitHub Actions
Run checks in CI/CD pipelines
Airflow Integration
Integrate with Apache Airflow
API Reference
Full API documentation
