Elementary Data

0.23.1 · active · verified Sat Apr 11

Elementary Data is an open-source Python library and CLI tool that provides dbt-native data observability, including data monitoring, lineage, and data quality checks. It works in conjunction with the Elementary dbt package to collect metadata and generate comprehensive reports and alerts from your data warehouse. Currently at version 0.23.1, the library maintains an active release cadence with frequent updates and improvements.

Warnings

Install

Quickstart

The `elementary-data` library's primary function is accessed via its command-line interface (`edr`), which generates data observability reports and sends alerts based on dbt project artifacts. This quickstart assumes you have an active dbt project with the Elementary dbt package configured and run. The `edr report` command will then query your data warehouse (via your dbt profiles) and generate a comprehensive HTML report.

# 1. Install the Elementary dbt package (in your dbt project's packages.yml):
# packages:
#   - package: elementary-data/elementary
#     version: 0.23.0 # Use the latest version

# 2. Add configuration to your dbt_project.yml (example):
# models:
#   elementary:
#     +schema: "elementary"

# 3. Install dbt dependencies and build Elementary models:
# dbt deps
# dbt run --select elementary
# dbt test

# 4. Install the Elementary CLI:
pip install elementary-data

# 5. Ensure your dbt profiles.yml is configured with an 'elementary' profile
# (see Elementary docs for details, typically ~/.dbt/profiles.yml)

# 6. Generate the data observability report:
# The report will be saved as an HTML file in 'target/elementary_report.html'
edr report --project-dir $(pwd)

# Or to monitor and send alerts:
# edr monitor --slack-token $SLACK_TOKEN --slack-channel '#data-alerts'

view raw JSON →