Skip to main content

dqtlib

The Data Quality Tool for Agentic BI. Tells you the what and surfaces the why.

Unifies your scattered data into one source of truth. Upgrades your existing models, dashboards, and queries into a causal semantic layer you didn't have to write. Picks up on trends and surfaces business insights, all wrapped in a quality harness that puts guardrails on the AI so the reports it generates stay on-spec.

pip install dqtlib

The import name is dqt:

from dqt import Check, Runner, MemoryStore

Full documentation and examples: https://github.com/antonbarr-data/dqt

Quality

All 64 detectors are benchmarked against labeled synthetic datasets. Benchmark scripts and raw results live in the GitHub repo and are run on every release:

Median F1: 1.00 | Detectors with F1 >= 0.8: 52/64 | Detectors with F1 >= 0.6: 58/64

Per-detector breakdown: examples/benchmarks/results_summary.md

Reproduce by cloning the repo and running:

python scripts/run_benchmark_suite.py --quick
python scripts/generate_benchmark_summary.py

Adapters

Six adapters ship in v1.0. Nightly CI runs against live credentials for the cloud warehouses.

Adapter CI
PostgreSQL (local) bundled — no credentials needed
ClickHouse clickhouse
Snowflake snowflake
BigQuery bigquery
Databricks databricks
Local (DuckDB) bundled — no credentials needed

Slack alerts

Run a check suite and post results to Slack in three lines:

from dqt import Runner, MemoryStore
from dqt.notifications import SlackNotifier

suite = Runner(MemoryStore()).run_suite(checks, adapter)
SlackNotifier().send_suite_report(suite, title="nightly orders checks")
# set SLACK_WEBHOOK_URL env var — no bot token required

Control which checks appear in the message with level:

# only failures
SlackNotifier().send_suite_report(suite, level="fail")

# warnings + failures (default)
SlackNotifier().send_suite_report(suite, level="warn")

# every check including passes
SlackNotifier().send_suite_report(suite, level="all")

Full reference: docs/api/notifications.md

Detector documentation

64 statistical detectors across 10 groups — drift, outliers, time series, distribution, information theory, pattern, referential, schema, basic, and custom.

Every detector has a structured page at docs/algorithms/<group>/<slug>.md covering:

  • What it computes and its parameters
  • When it works well and when it fails (with concrete failure-mode table)
  • Default-threshold calibration — empirical FPR across six canonical data shapes (Normal, Lognormal, Poisson, Beta, Pareto, Exponential)
  • Recommended thresholds per data shape
  • Canonical citation and runnable Python API example

Browse the full catalog: docs/algorithms/README.md

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dqtlib-1.5.1.tar.gz (325.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dqtlib-1.5.1-py3-none-any.whl (356.1 kB view details)

Uploaded Python 3

File details

Details for the file dqtlib-1.5.1.tar.gz.

File metadata

  • Download URL: dqtlib-1.5.1.tar.gz
  • Upload date:
  • Size: 325.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dqtlib-1.5.1.tar.gz
Algorithm Hash digest
SHA256 84c09f07e4472433698311c4d9b6d66197cfcaab98685e09adad41002ea3ae45
MD5 a4f79f1b3e06c61fe3d7a8b651b5c06e
BLAKE2b-256 5e1a27b21a0aa8ee24b7d1f078627c3b260e83e46cc428ec74d69da10d908ea8

See more details on using hashes here.

File details

Details for the file dqtlib-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: dqtlib-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 356.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dqtlib-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00eed2ce98b1a316fbad9ab992b15fe78bc0eed0121e5983dc7e64ac8756cf14
MD5 16c322472a1c6e1285e42746034fad24
BLAKE2b-256 95c0bfc75bd812f93d12606522614d56b1957ff06ea6c43b2c7fd1a189c5233c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.5.1 This release

2 files

1.5.0

2 files

1.4.1

2 files

1.4.0

2 files

1.3.1

2 files

1.3.0

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.9.6

2 files

0.9.5

2 files

0.9.4

2 files

0.9.3

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.9

2 files

0.8.8

2 files

0.8.0

2 files

0.4.9

2 files

0.4.8

2 files

0.4.7

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.3

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page