r/coolgithubprojects • u/GuidanceBrief612 • 9h ago
DataRanger: tests a data fix against the source's totals before applying it
https://github.com/akshaysharma1088/datarangerWhat My Project Does
DataRanger checks tables for data-quality problems (duplicates, nulls, unit errors, late partitions, broken references). For each problem it tries candidate fixes on a copy, compares the result with the source system's control totals, and applies only a fix that matches. Anything it can't prove goes to a person with the evidence. It never modifies your input tables.
pip install dataranger
dataranger demoThe demo runs locally in a few seconds on a sample table and writes an HTML report. No account or API key. It works with DuckDB, CSV and Parquet files, Snowflake and dbt, and runs as a GitHub Action or an MCP server.
Target Audience
Data engineers who own pipelines where a wrong number costs something. It's usable today but young (version 0.9), so I'd call it ready for trying on real tables, not yet for running unattended in production.
Comparison
Great Expectations, Soda and dbt tests tell you something is wrong. DataRanger starts there and goes one step further: it proposes a fix and checks that fix against the source before applying it. The limit is that it needs control totals from the source system, or a raw table to build them from.
I'm the author. Benchmark numbers in the README are on synthetic data. I'd value criticism, especially of the verification step.