repowiserepowise

Command-line tool

datacontract / datacontract-cli

Enforce Data Contracts

★ 1,111stars on GitHubJavaScriptMIT

This connects Repowise to datacontract/datacontract-cli's code. It does not install datacontract-cli.

Repowise maps public repos from their source. Not affiliated with datacontract. What is Repowise?

github.com/datacontract/datacontract-cliIndexed at de6c0d5

What is datacontract-cli?

datacontract-cli is an open-source command-line tool for working with data contracts. It lints contracts that follow the Open Data Contract Standard, connects to data sources to run schema and quality tests, and exports contracts to other formats. The tool is written in Python and can be used as a standalone CLI, in a CI/CD pipeline, or as a Python library. To install it, run datacontract test datacontract.yaml. Its code health is 6.3 out of 10 (Fair), ranked #187 of 4,000+ indexed repos. The last commit to datacontract-cli was on Sep 13, 2026, and 61 people have contributed.

As of commit de6c0d5, indexed Sep 15, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.

For agentsdatacontract-cli.md

Repo facts: type, license, health, rank, contributors
datacontract-cli facts
TypeCommand-line tool
LicenseMIT
Code health6.3 / 10 (Fair)
Health rank#187 of 4,000+ indexed repos
Last commitSep 13, 2026
Contributors61
Bus factor2
Size617 files, 64,549 lines

Install datacontract-cli

Commands copied from the README

  1. 1Run the tests against the actual data to check the YAML, the schema and the quality attributes.
    datacontract test datacontract.yaml

Releases on GitHub (latest v1.2.11, Nov 17, 2026)

Full install notes on GitHub

Explore datacontract-cli

Ask about this code in your agent

This connects Repowise to datacontract-cli's code. It does not install datacontract-cli. To install datacontract-cli, use the install steps.

Useful if you want to change or fork datacontract-cli: your agent can ask how it is put together and get answers that cite its files.

Ask about datacontract-cli

Answers come from datacontract-cli's README and source, with the files they cite. Two free answers a day without an account.

Want this for your own codebase? Map your repo free

About this page

Get a page like this for your own codebase

Repowise built this map of datacontract/datacontract-cli from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.

Free for 2 public repos, with a page like this one. No card. See how Repowise works

Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub

datacontract/datacontract-cli FAQ

What is datacontract-cli?

datacontract-cli is an open-source command-line tool for working with data contracts. It lints contracts that follow the Open Data Contract Standard, runs schema and quality tests against data sources, and exports contracts to other formats.

How does datacontract-cli work?

datacontract-cli reads a data contract, such as an ODCS YAML file, together with its server details. It connects to the named data source and checks that the data matches the declared schema and quality attributes.

How do I install datacontract-cli?

datacontract-cli is installed with uv using the command uv tool install --python python3.11 --upgrade 'datacontract-cli[all]'. The [all] extra includes all server dependencies. A Docker image is also available. See the install steps

What language is datacontract-cli written in?

datacontract-cli is written in Python. Its dependencies include click for the command-line interface and Jinja2 for templating.

How is the datacontract-cli code organized?

The datacontract package holds the command wiring in datacontract/cli.py and the code for connections and engines. The tests directory contains the largest number of files in the repository.

When should I use datacontract-cli?

datacontract-cli is for testing data against its data contract from a terminal, in a CI/CD pipeline, or from Python code. It can also run as a web server that accepts POST requests.

What license does datacontract-cli use?

datacontract-cli is released under the MIT license, identified as MIT in its license metadata.

Code health

6.2out of 10Fair

Hotspots average 3.9, the place fixes pay off most.

On the leaderboards:#15 of 22 JavaScript repos

Key features of datacontract-cli

  • Lints data contracts written to the Open Data Contract Standard.
  • Connects to data sources and executes schema and quality tests against the actual data.
  • Imports a contract from an existing table, such as a Snowflake database, and generates the servers block.
  • Exports data contract metadata to other formats, such as SQL DDL and HTML.
  • Runs as a standalone CLI, in a CI/CD pipeline, or directly as a Python library.

How datacontract/datacontract-cli works

Commands enter through datacontract/cli.py, which defines the command-line entry point and dispatches each command to its module. A data contract, such as an ODCS YAML file, is read together with the server details it names. The ibis engine under datacontract/engines/ibis, including datacontract/engines/ibis/connections/connect.py and datacontract/engines/ibis/ibis_check_execute.py, connects to the data source and executes the schema and quality checks. datacontract/api.py exposes the same testing as a web server that accepts POST requests when the api extra is installed. Results and exported artifacts come out in the chosen format, and the same functionality can be called from Python through the DataContract class.

The codebase has 617 files and 5,631 symbols in 6 modules, mostly JavaScript by code size, with the most files in Python. Code health is 6.2 out of 10, rated fair.