Command-line tool
datacontract / datacontract-cli
Enforce Data Contracts
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?
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
| Type | Command-line tool |
|---|---|
| License | MIT |
| Code health | 6.3 / 10 (Fair) |
| Health rank | #187 of 4,000+ indexed repos |
| Last commit | Sep 13, 2026 |
| Contributors | 61 |
| Bus factor | 2 |
| Size | 617 files, 64,549 lines |
Install datacontract-cli
Commands copied from the README
- 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)
Explore datacontract-cli
- DocumentationModule-by-module documentation, 609 pages.
- ArchitectureDependency graph, layers and third-party dependencies.
- Code healthEvery file's score and the findings behind it.
- CommitsEach commit's effect on code health.
- OverviewEverything else the index found: contributors, decisions, what changed this week.
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
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.
Maintain datacontract/datacontract-cli?
Claim this page, add a badge to the README, or re-index it.
Claim this page
Sign in with GitHub and we check that you are an admin or maintainer of datacontract/datacontract-cli. Then add a badge to the README that links readers here.
Add a badge to your README
Readers click through to this page and can ask datacontract-cli's code a question. A badge also re-indexes the repo every week and marks you as the verified maintainer.
[](https://repowise.dev/repo/datacontract/datacontract-cli?src=badge_ask)Paste it at the top of README.md, under the title.
Added it already? Verify to get the mark now instead of tomorrow.
Need HTML or the larger health card? More formatsHide more formats
This badge as HTML
<a href="https://repowise.dev/repo/datacontract/datacontract-cli?src=badge_ask"><img src="https://api.repowise.dev/badge/wiki/datacontract/datacontract-cli.svg?label=ask" alt="repowise: Ask this codebase"></a>Code health card
The score, its change since the last index, and when it was measured. Follows the reader's light or dark theme.
<a href="https://repowise.dev/repo/datacontract/datacontract-cli?src=badge_card"><picture><source media="(prefers-color-scheme: light)" srcset="https://api.repowise.dev/badge/health/datacontract/datacontract-cli.svg?style=card&theme=light"><img src="https://api.repowise.dev/badge/health/datacontract/datacontract-cli.svg?style=card" alt="repowise code health" width="500" height="168"></picture></a>