Data Contract CLI

The datacontract command-line tool is an open-source tool for working with data contracts. It natively supports the Open Data Contract Standard (ODCS) to lint contracts, connect to data sources, run schema and quality tests, and export to other formats. Written in Python; usable as a CLI, in CI/CD or as a library. The repository description: “Open-source data contract testing for Snowflake, Databricks, BigQuery, Kafka, Postgres & 15 more.”

Repository snapshot (GitHub API, 2026-11-18)

ItemDetail
Repodatacontract/datacontract-cli, MIT licence
Created2023-07-24
Activitylast push 2026-11-18; latest release v1.2.11 (2026-11-17)
Size1,114 stars, 311 forks
Docscli.datacontract.com, with an llms.txt and agent skills (datacontract-skills)

How it works

A contract is a YAML file with a servers section (connection details), a schema (structure and meaning), service levels and quality attributes (for example freshness and row counts). The CLI uses it to connect to the source and test that the real data matches. The README’s example contract targets a Postgres database.

Where it fits against Soda Core

Both start from YAML contracts and verify them against live data. Data Contract CLI is built on the vendor-neutral ODCS format and has no hosted platform in the README read, while Soda Core has its own contract language and connects to Soda Cloud. DQX can generate rules from ODCS contracts too, so ODCS is the common format across these tools.

Sources