airflow-provider-dqlens
Apache Airflow provider for DQLens. Add auto-generated data quality checks to your DAGs with one task.
Install
pip install airflow-provider-dqlens
Usage
from dqlens_airflow import DQLensOperator
quality_check = DQLensOperator(
task_id="dqlens_quality_check",
conn_id="my_postgres",
schema="public",
focus="high",
)
load_data >> quality_check >> downstream_tasks
If DQLens finds problems, the task fails and downstream tasks don't run.
Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
conn_id |
Yes | Airflow connection ID | |
schema |
No | public |
Schema to profile |
focus |
No | all |
Severity filter: high, medium, all |
quick |
No | False |
Sampled profiling (faster) |
tables |
No | None | Specific tables to profile |
exclude_tables |
No | None | Tables to skip (glob patterns) |
fail_on_findings |
No | True |
Fail task if problems found |
What it does
- Reads connection from your Airflow connection
- Profiles all tables (null rates, uniqueness, patterns, FKs, freshness)
- Compares against previous profile (drift detection)
- Fails the task if findings exceed your severity threshold
- Pushes results to XCom for downstream use
XCom output
{
"findings_count": 3,
"total_findings": 3,
"passed_count": 47,
"tables_profiled": 6,
"findings": [
{"table": "public.orders", "column": "email", "severity": "HIGH", "message": "..."},
]
}
Supported databases
PostgreSQL, DuckDB, SQLite, MySQL (via Airflow connection types).
License
MIT
Release files for airflow-provider-dqlens 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| airflow_provider_dqlens-0.1.0.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| airflow_provider_dqlens-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / airflow_provider_dqlens-0.1.0.tar.gz
| Download URL | airflow_provider_dqlens-0.1.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f98f70294618fc8d202f9add8a44452edd6b01188bf9881a6746fc4821ca3d4b
|
|
BLAKE2b-256 checksum How to use checksums |
f7c2e7a6dcff4ef34d93d7d0f0457ef5eaeb6cc67ae26bfdfa46487074c8fc80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / airflow_provider_dqlens-0.1.0-py3-none-any.whl
| Download URL | airflow_provider_dqlens-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3314dc3a8fea7394a17d545f7729bda68c7ba3dd09b107c4d8970cb113d13aa1
|
|
BLAKE2b-256 checksum How to use checksums |
8f941e9f94f7f3f6a564398c734d22526570c652f82a87160bbe8609f3d953f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|