Skip to main content

data-validator

data-validator validates MIP data-model folders using DuckDB.

Standalone package setup

From the repository root:

cd data-validator/mip-data-validator
poetry install

Command

poetry run data-validator validate-data-model /path/to/data_model_folder

Run as a Python module:

poetry run python -m data_validator validate-data-model /path/to/data_model_folder

Optional threads:

poetry run data-validator validate-data-model /path/to/data_model_folder --threads 8

Collect all errors and emit NDJSON:

poetry run data-validator validate-data-model /path/to/data_model_folder --report-all --format ndjson

Write HTML report to a file:

poetry run data-validator validate-data-model /path/to/data_model_folder --report-all --format html --output report.html

If --format html is used without --output, the report is automatically written under /tmp and the path is printed.

Folder Layout

/path/to/data_model_folder/
  CDEsMetadata.json
  dataset1.csv
  dataset2.csv

Validation Notes

  • CSV validation queries files directly with DuckDB and uses fused aggregate checks to reduce scan overhead.
  • Folder-level dataset uniqueness is enforced across all CSV files via SQL using normalized codes (trim + lower).

Metadata

Release files for mip-data-validator 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mip-data-validator 0.0.1
File Size Uploaded
mip_data_validator-0.0.1.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mip-data-validator 0.0.1
File Interpreter ABI Platform
mip_data_validator-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.0 kB

Release files / mip_data_validator-0.0.1.tar.gz

Download URL mip_data_validator-0.0.1.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
85c006a5a6abc220ffe6e93b9abed62c106e6bcef1744521706222a220dbafc8
BLAKE2b-256 checksum
How to use checksums
cf9635af2728863e765788a00805b1be5f0912c1d43ada02186543036731a42d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.12.3 Linux/6.8.0-101-generic

Release files / mip_data_validator-0.0.1-py3-none-any.whl

Download URL mip_data_validator-0.0.1-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3619a10ce38d6e941cb0060339fb4fa6f6a8d6f5d44fe951370fd40ee7ec10f7
BLAKE2b-256 checksum
How to use checksums
70cb91baff3f2ad5f760358b13cfb104c2efe2ed0f2f14d1e07935767370f853
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.12.3 Linux/6.8.0-101-generic

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release 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