Eliza DQ
Swiss knife of data quality.
One library. Any source. Warehouse SQL, Polars DataFrame, parquet, CSV, pandas. Optimized queries that save you money on BigQuery, Athena, and Snowflake.
Eliza DQ validates any data source with a single API. Point it at a warehouse table, a parquet file, a pandas DataFrame, or a database URI and get results in milliseconds.
pip install eliza-dq
On a warehouse (BigQuery, Athena, Snowflake, ...)
# eliza_checks/orders.yaml
connection:
type: bigquery
project: my-project-123
table: my-project-123.analytics.orders
checks:
- column: order_id
check: not_null
- column: amount
check: not_negative
- column: updated_at
check: freshness
max_age: 24h
pip install eliza-dq[bigquery]
eliza check --config orders
On a DataFrame or file
from eliza import check
# Polars DataFrame, pandas DataFrame, parquet, CSV, ndjson - all work
result = check("data.parquet", checks={
"order_id": ["not_null", "unique"],
"amount": ["not_null", "not_negative"],
"email": ["is_email"],
})
result.raise_on_fail()
On a production database (without running heavy queries on prod)
connection:
type: postgres
host: prod-db.internal
user: readonly
password: ${DB_PASSWORD}
database: production
engine: local # pulls data, checks locally with Polars
table: orders
filter: "created_at >= '2024-01-01'"
checks:
- column: order_id
check: not_null
Why Eliza saves you money on DWH
Most DQ tools run checks as separate sequential queries. Each query = a full table scan = you pay for it.
Eliza batches all checks into a single SELECT:
-- Eliza: ONE query, one table scan, one bill
SELECT COUNT(*) AS total,
SUM(CASE WHEN order_id IS NULL THEN 1 ELSE 0 END) AS order_id_not_null,
SUM(CASE WHEN amount < 0 THEN 1 ELSE 0 END) AS amount_not_negative,
...
FROM orders
Soda runs them one by one:
-- Soda: query 1 (scan 1, you pay)
SELECT COUNT(CASE WHEN order_id IS NULL THEN 1 END) FROM orders
-- Soda: query 2 (scan 2, you pay again)
SELECT COUNT(CASE WHEN amount < 0 THEN 1 END) FROM orders
-- ... repeat for every check
On BigQuery (per-byte billing), Athena (per-byte), or Soda Cloud (per-SPU), this adds up fast. 8 checks = 8x the cost with Soda vs 1x with Eliza.
Failed row samples use SELECT * WHERE ... LIMIT 10 (one lightweight query). Soda fetches ALL failing rows into memory, then truncates. On millions of failures this means OOM or timeout, and you still pay for the full scan.
Benchmarks
SQL Pushdown (Eliza vs Soda)
AWS Athena, Iceberg tables, 8 not_null checks per table.
| Rows | Eliza (no samples) | Eliza (+ 10 samples) | Soda Core* |
|---|---|---|---|
| 179M | 9.1s | 13.2s | 21.6s |
| 236M | 13.1s | 12.2s | 21.9s |
| 492M | 15.6s | 15.1s | 36.8s |
* Soda Core OSS does not return failed row samples. Samples require Soda Cloud (paid). Eliza returns actual failed rows via SELECT ... WHERE ... LIMIT N.
DataFrame Engine (Eliza vs Cuallee, Pandera, GX)
NYC Yellow Taxi (Parquet). 5 checks, warmup + 3 runs, min time.
In-memory:
| Rows | Eliza | Cuallee | Pandera | GX |
|---|---|---|---|---|
| 3M | 2.3ms | 7.1ms | 11.4ms | 1,151ms |
| 10M | 4.4ms | 11.5ms | 15.0ms | 1,975ms |
| 41M | 15ms | 36ms | 43ms | 8,066ms |
| 126M | 50ms | 103ms | 130ms | 17,802ms |
Streaming from disk:
| Rows | Eliza | Cuallee | Pandera | GX |
|---|---|---|---|---|
| 41M (12 files) | 699ms | 901ms | 966ms | 9,122ms |
| 126M (24 files) | 1.3s | 4.1s | 4.2s | 48.8s |
| 259M (72 files) | 1.9s | 11.7s | 12.5s | 201s |
Eliza streams via Polars LazyFrames (constant memory). Competitors load everything into RAM. Reproducible: python benchmarks/run.py --full
Features
| Eliza | Soda | GX | Pandera | Cuallee | |
|---|---|---|---|---|---|
| SQL pushdown | 8 DWH | Yes | Yes | - | - |
| Parallel SQL | Yes | - | - | - | - |
| Single scan (batched) | Yes | - | - | - | - |
| Failed row samples | LIMIT N |
Paid | - | - | - |
| Polars native | Yes | - | - | Yes | Yes |
| LazyFrame streaming | Yes | - | - | - | - |
| YAML config | Yes | Yes | Yes | - | - |
| Inline dict API | Yes | - | - | Yes | Yes |
| CLI | Yes | Yes | Yes | - | - |
| PDF report | Yes | - | - | - | - |
| Slack alerting | Yes | Paid | - | - | - |
| Auto-learn | Yes | - | Yes | Yes | - |
| Schema check | Yes | Yes | Yes | Yes | - |
| FK reference | Yes | Yes | Yes | - | - |
| Core deps | 2 | 30+ | 30+ | 7+ | 3+ |
Checks
17 built-in checks, all work on both Polars and SQL:
| Check | What it does |
|---|---|
not_null |
No NULL values |
not_missing |
No NULLs or custom values ("", "N/A", "null") |
unique |
All values distinct |
not_negative |
No values below zero |
between |
Values within min/max range |
in_set |
Values in allowed list |
regex |
Match a pattern |
is_email |
Valid email format |
is_url |
Valid URL format |
min_length |
String minimum length |
max_length |
String maximum length |
freshness |
Data not older than threshold |
row_count |
Row count within range |
cross_column |
Compare two columns |
schema |
Validate column names and types |
reference |
FK integrity across tables |
custom_sql |
Your own SQL expression |
Warehouse Connectors
Install only what you need:
pip install eliza-dq[bigquery]
pip install eliza-dq[athena]
pip install eliza-dq[snowflake]
pip install eliza-dq[postgres]
pip install eliza-dq[clickhouse]
pip install eliza-dq[mysql]
pip install eliza-dq[databricks]
pip install eliza-dq[redshift]
Connection examples for all warehouses
# BigQuery
connection:
type: bigquery
project: my-project
location: US
# Athena
connection:
type: athena
region: us-east-1
schema: my_database
s3_staging_dir: s3://bucket/athena-results/
# Snowflake
connection:
type: snowflake
account: xy12345.us-east-1
user: eliza_user
password: ${SF_PASSWORD}
warehouse: COMPUTE_WH
database: ANALYTICS
schema: PUBLIC
# PostgreSQL
connection:
type: postgres
host: localhost
port: 5432
user: postgres
password: ${PG_PASSWORD}
database: mydb
# MySQL
connection:
type: mysql
host: localhost
user: root
password: ${MYSQL_PASSWORD}
database: mydb
# ClickHouse
connection:
type: clickhouse
host: localhost
port: 8123
user: default
database: mydb
# Databricks
connection:
type: databricks
host: adb-123.azuredatabricks.net
http_path: /sql/1.0/warehouses/abc
token: ${DBX_TOKEN}
# Redshift
connection:
type: redshift
host: cluster.region.redshift.amazonaws.com
database: analytics
user: eliza_user
password: ${RS_PASSWORD}
Alerting & Reporting
from eliza import check
from eliza.alert import send_slack, send_webhook
from eliza.report import generate_pdf
result = check(config="orders")
# Slack - choose any channel, attach PDF
send_slack(
result,
token="xoxb-...",
channel="C0ALERTS",
pdf=True,
name="orders",
)
# PDF report
generate_pdf(result, name="orders")
# Generic webhook (Discord, Teams, PagerDuty)
send_webhook(result, url="https://your-webhook-url/...")
pip install eliza-dq[report] # for PDF reports
|
Slack Alert |
PDF Report |
Orchestrator Integration
Airflow
@task
def dq_check():
from eliza import check
from eliza.alert import send_slack
result = check(config="orders")
if not result.passed():
send_slack(result, token="xoxb-...", channel="C...", pdf=True, name="orders")
result.raise_on_fail()
return result.to_dict()
Dagster
@asset_check(asset=orders)
def orders_quality():
from eliza import check
result = check(config="orders")
return AssetCheckResult(
passed=result.passed(),
metadata={"summary": result.summary()},
)
GitHub Actions
steps:
- run: pip install eliza-dq
- run: eliza check --config orders --source data/orders.parquet
Any orchestrator
result = check(config="orders")
result.raise_on_fail() # RuntimeError (Airflow, Dagster, Prefect)
result.exit_code # 0/1/2 (bash, CLI, GitHub Actions)
result.to_dict() # dict (XCom, metadata)
result.to_json() # JSON string (APIs)
result.summary() # "3 passed, 1 failed (1M rows, 42ms)"
Architecture
SQL pushdown: All inline checks batched into one SELECT (single table scan). Separate checks (unique, freshness) and sample queries run in parallel via ThreadPoolExecutor with thread-local connections. Samples use LIMIT N - never fetches all failing rows.
Polars engine: Streaming with per-column grouping. Files scanned as LazyFrames - data streams through without loading into RAM. Failed row samples via .filter().head(N).collect(engine="streaming").
OLTP mode: engine: local pulls data through the connector, checks locally with Polars. Safe for production databases.
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eliza_dq-0.1.2.tar.gz.
File metadata
- Download URL: eliza_dq-0.1.2.tar.gz
- Upload date:
- Size: 479.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bf44a8919af6fc3215f4c47d93207a597bd537b6887010b08f0554aad5a9fc3
|
|
| MD5 |
a9447c367147d92b3ede047b2caabed9
|
|
| BLAKE2b-256 |
1e9cb208141e7d1da87ecb68e5de63c7787bc54d4a6b6305653a435ef770c483
|
Provenance
The following attestation bundles were made for eliza_dq-0.1.2.tar.gz:
Publisher:
publish.yml on Se7enquick/eliza-dq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eliza_dq-0.1.2.tar.gz -
Subject digest:
2bf44a8919af6fc3215f4c47d93207a597bd537b6887010b08f0554aad5a9fc3 - Sigstore transparency entry: 2768001213
- Sigstore integration time:
-
Permalink:
Se7enquick/eliza-dq@74fa31f9ab6dcf52ea51642c228b4f55a7855ce9 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Se7enquick
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@74fa31f9ab6dcf52ea51642c228b4f55a7855ce9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file eliza_dq-0.1.2-py3-none-any.whl.
File metadata
- Download URL: eliza_dq-0.1.2-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c752e6b642e6e10c03cdbc76f6734c475ab254130a5485af9fcd7bd3ef11a5b
|
|
| MD5 |
731605d708b61626d673b32054fa3a69
|
|
| BLAKE2b-256 |
0dadccc4faf4d090a0ad27893c9cf77d21029c4cdab056fb3cd3aa24df41e3b1
|
Provenance
The following attestation bundles were made for eliza_dq-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on Se7enquick/eliza-dq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eliza_dq-0.1.2-py3-none-any.whl -
Subject digest:
9c752e6b642e6e10c03cdbc76f6734c475ab254130a5485af9fcd7bd3ef11a5b - Sigstore transparency entry: 2768001232
- Sigstore integration time:
-
Permalink:
Se7enquick/eliza-dq@74fa31f9ab6dcf52ea51642c228b4f55a7855ce9 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Se7enquick
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@74fa31f9ab6dcf52ea51642c228b4f55a7855ce9 -
Trigger Event:
release
-
Statement type: