Repository navigation
Releases
Releases · DTheDataGuy/rowgate
rowgate 0.1.0
First release of rowgate: data contracts and quality gates for Polars.
Highlights
Contract.split()separates valid rows from a quarantine frame. Every rejected row lists each rule it broke, and nothing is dropped: valid + quarantined = input.- Column checks for dtype, required, unique (keep first), accepted values, min/max and regex, plus row-level rules as Polars expressions or SQL.
Gatewith 11 dataset-level checks (schema drift, uniqueness, nulls, null rate, accepted values, row count, reconciliation, quarantine rate, freshness, expressions and custom functions). Each check is blocking (error) or advisory (warn).- Reports as JSON, Markdown and plain text;
raise_for_errors()for pipelines. rowgate checkCLI for Parquet, CSV, NDJSON and JSON files, with exit codes for CI.- Contracts can be loaded from TOML.
Install
pip install git+https://github.com/DTheDataGuy/rowgate@v0.1.0Tested on Python 3.11 to 3.13 and Polars 1.0.0 through 2.0. The example runs on a real sample of City of Seattle building permits and catches 7 bad records out of 454.