# datacontract/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.

Source: https://github.com/datacontract/datacontract-cli
Indexed: commit de6c0d5 on 2026-09-15 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Command-line tool
- Language: JavaScript
- Stars: 1,111 at index time
- License: MIT
- Code health: 6.3/10, Fair
- Last commit: 2026-09-13
- Contributors: 61

## Install

From the README: https://github.com/datacontract/datacontract-cli#installation

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

## How it 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.

- datacontract/cli.py: entry point
- datacontract/model/run.py: entry point
- datacontract/model/server.py: entry point
- docs/scripts/generate-command-docs.mjs: entry point
- docs/scripts/generate-release-notes.mjs: entry point
Modules: tests, datacontract, root, docs, examples, .github. 617 files, 64,549 lines, 5,631 symbols.

## Code health

- Score: 6.3/10 (Fair)
- Rank: #200 of 4,000+ indexed repos
- Hotspots: datacontract/integration/dbt_sync.py, datacontract/engines/ibis/connections/connect.py, datacontract/engines/ibis/ibis_check_execute.py, datacontract/api.py, datacontract/lint/resolve.py
- Lowest file: datacontract/export/sodacl_check_builder.py
- Dead code: 37 findings

## Maintenance

- Last commit 2026-09-13, first commit 2025-11-12, 679 commits
- 61 contributors, bus factor 2

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/datacontract/datacontract-cli/security

## More

- Page: https://repowise.dev/repo/datacontract/datacontract-cli
- Ask this codebase: https://repowise.dev/repo/datacontract/datacontract-cli/chat
- Docs: https://repowise.dev/repo/datacontract/datacontract-cli/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/datacontract/datacontract-cli
