CLI tool for auditing CSV, Excel, and PostgreSQL datasets — detects missing values, duplicates, type mismatches, and outliers
Project description
dataqual
CLI tool for auditing CSV/Excel/PostgreSQL datasets — detects missing values, duplicates, type mismatches, and outliers.
Install
pip install -e .
Check a dataset
Basic CSV check (Rich terminal report):
dataqual check --file data.csv
Export the report as a self-contained HTML page or JSON file
(written to <name>_report.html / <name>_report.json):
dataqual check --file data.csv --report html
dataqual check --file data.csv --report json
Detect duplicates by key column(s) instead of full-row equality (rows with null keys are skipped, not treated as matching):
dataqual check --file data.csv --keys email
dataqual check --file data.csv --keys "email,phone"
Override alert thresholds with a YAML config (see dataqual.config.yaml for a commented example):
dataqual check --file data.csv --config dataqual.config.yaml
Load from Excel — --sheet takes a name or zero-based index, default first sheet:
dataqual check --file data.xlsx
dataqual check --file data.xlsx --sheet inventory
Check a PostgreSQL table or query
Use --db-url instead of --file, plus exactly one of --table or --query:
dataqual check --db-url postgresql://user:pass@host:5432/db --table public.users
dataqual check --db-url postgresql://user:pass@host:5432/db --query "SELECT * FROM users WHERE active"
Compare two datasets
Diff two files (CSV or Excel) — rows added, removed, and changed, with
old/new values per column. --keys identifies "the same row" across both
files and is strongly recommended; without it rows are matched by position:
dataqual compare --file1 old.csv --file2 new.csv --keys id
Development
pip install -e ".[dev]"
pytest
ruff check .
Project details
Release history Release notifications | RSS feed
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 dataqual-0.1.0.tar.gz.
File metadata
- Download URL: dataqual-0.1.0.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa3a4724b1ccd8061dd3e8dd2025a696ae9868bd187940e327ea33be081a22e2
|
|
| MD5 |
74e8b2e9aba5e18ea37dc2c50b57d921
|
|
| BLAKE2b-256 |
8374783531f6d8b9f8647ae847ec4fb5fe0d6d395eec4beb4fc0be33299e2be9
|
File details
Details for the file dataqual-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dataqual-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc783297d881f67cbef0a2c9cdb5f97690f51474367123227741e5d7b1007c95
|
|
| MD5 |
e9228be67f485c07a408cabeae5549df
|
|
| BLAKE2b-256 |
2f9906d6a1430e60a93a9b79a0c179f649133c915a33d1b3a6eb6503455880dc
|