Skip to content

Repository files navigation

Data Diff CLI

Data Diff CLI

Compare two CSV datasets by key and explain every added, removed, and changed row.

CI Python Dependencies MIT

Data Diff CLI is a compact, privacy-friendly command-line utility built around one recurring workflow. It runs without an account or API key, keeps its decisions inspectable, and produces portable output you can use immediately.

Why it is useful

Compare two CSV datasets by key and explain every added, removed, and changed row. Instead of hiding simple analysis behind a hosted service, it keeps data local and shows the evidence behind every recommendation.

Highlights

  • Key-based CSV comparison
  • Column-level change evidence
  • Added and removed row detection
  • Markdown and JSON reports
  • Zero third-party runtime dependencies

Quick start

git clone https://github.com/zchstime/data-diff-cli.git
cd data-diff-cli
python -m pip install -e .

data-diff examples/old.csv examples/new.csv --key id

Use the synthetic examples/ data for a safe first run. Run data-diff --help for the complete command reference.

Design

local input → deterministic analysis → cited findings → portable report

The default workflow performs no network requests and does not silently modify source data. The implementation is deliberately small enough to audit, teach from, and extend.

Test

PYTHONPATH=src python -m unittest discover -s tests -v

GitHub Actions tests Python 3.11, 3.12, and 3.13.

Roadmap

  • Additional import and export formats
  • More community-provided edge-case fixtures
  • Stable machine-readable report schemas
  • Optional plugin hooks while keeping the core dependency-free

If this tool saves you time, star the repository and share the workflow you want next. Contributions are welcome—start with the open good first issue.

Community and security

See CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md. Never put private data or real credentials in an issue.

License

MIT © 2026 zchstime

About

Compare CSV datasets by key and explain every row and column change

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages