csv-diff
Python CLI tool and library for diffing CSV and JSON files
Decision gist · record as of 2026-08-14
Yes, if you need to diff CSV or JSON files programmatically or from the command line. The package is stable, has no known vulnerabilities, and requires minimal dependencies. The dormant maintenance status is not a concern for a tool with a narrow, well-defined scope—it does one thing reliably and hasn't needed updates. Install it if this is your use case; skip it if you need active development or advanced diffing features.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with only two runtime dependencies (click and dictdiffer).
- Maintenance is dormant—last release was 707 days ago—but the repo remains active and the package is stable enough for its narrow scope.
License · maintenance · safety
Apache License, Version 2.0 (permissive) — Apache License 2.0 (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2024-09-06 (707 days) · last repo commit 2024-09-06 · 339 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 218,958 downloads/mo, #9,331 on PyPI
Alternatives
Verify before relying
pip install csv-diff
from csv_diff import load_csv, compare
diff = compare(
load_csv(open("one.csv"), key="id"),
load_csv(open("two.csv"), key="id")
)
print(diff)- Whether the package works with Python versions beyond 3.6 and 3.7 (classifiers list only those two, but requires_python is unspecified)
What it is and what it does
csv-diff is a command-line tool and Python library that identifies and reports differences between two structured data files (CSV, TSV, or JSON arrays). It treats one column as a unique key to match records across files, then reports which rows were added, removed, or changed, and which specific fields changed within each row.
You can use it as a CLI tool to get a human-readable summary or JSON output, or import its functions into your own Python code to programmatically compare datasets. It automatically detects delimiter format (comma or tab) and can augment the output with templated extras like URLs. The package is lightweight, depending only on click and dictdiffer.
Use it for
- Track changes to a public dataset over time and generate a commit log of what changed between versions
- Audit data migrations by comparing source and target CSV exports to verify all records were moved correctly
- Monitor configuration or inventory files in version control by diffing snapshots to see what was added, removed, or modified
- Validate ETL pipelines by comparing expected and actual output files row-by-row
- Generate reports on data quality issues by comparing two versions of a dataset and highlighting specific field changes
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to diff CSV or JSON files programmatically or from the command line.
The package is stable, has no known vulnerabilities, and requires minimal dependencies. The dormant maintenance status is not a concern for a tool with a narrow, well-defined scope—it does one thing reliably and hasn't needed updates. Install it if this is your use case; skip it if you need active development or advanced diffing features.
Install
csv-diff on PyPI
Before you install
Low friction: pure Python wheel with only two runtime dependencies (click and dictdiffer). Maintenance is dormant—last release was 707 days ago—but the repo remains active and the package is stable enough for its narrow scope.
License in practice
Apache License 2.0 (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install csv-diff
from csv_diff import load_csv, compare
diff = compare(
load_csv(open("one.csv"), key="id"),
load_csv(open("two.csv"), key="id")
)
print(diff)
Verify before relying
- Whether the package works with Python versions beyond 3.6 and 3.7 (classifiers list only those two, but requires_python is unspecified)
Package facts
| License | Apache License, Version 2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesclickdictdiffer |
| Maintenance | Dormant 707 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 218,958 / month, #9,331 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: End Users/DesktopIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7 |
Evidence: csv_diff-1.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “csv file diff comparison”
- csv-diffCompares two CSV, TSV, or JSON files and reports what rows were…
- daffCompares two tables and produces a diff summary that can be used as a…
- cloudmersive-convert-api-clientA Python client library for the Cloudmersive Document Conversion API,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also collate-data-diff · daff · diff-parser · linear-tsv · detect-delimiter · pyjson · recursive-diff · datadiff · pycobertura · deepdiff