csv-diff icon indicating copy to clipboard operation
csv-diff copied to clipboard

Python CLI tool and library for diffing CSV and JSON files

Results 24 csv-diff issues
Sort by recently updated
recently updated
newest added

This modification allows users to pass multiple keys by `--key` and ignore multiple columns by `--ignore` based on jsvine's pull request [#17](https://github.com/simonw/csv-diff/pull/17). `csv-diff one.csv two.csv --key=id1,id2 --ignore=col1,col2` However, cases where...

When using the CLI to compare two CSVs that were encoded using cp1252 on a platform with a default encoding of utf-8, it fails. Since the encoding is not specified...

Currently a comparison between 'JOHN' and 'john' appears as a difference. Is there a way to make the diff process ignore case? Of course a workaround is to covert all...

These modifications allow users to pass multiple (comma-separated) columns as the `--key`, for scenarios in which rows are uniquely identified by a combination of columns — for instance, the county...

`load_csv` functions nicely without a key, using a hash of the row data. While nice, a useful alternative that also resolves uniquely but conveys useful information is the row number....

Addresses issue: https://github.com/simonw/csv-diff/issues/15

Right now if the first JSON object is missing keys that are present in the second JSON object the script crashes.

bug

This looks like it will be really useful, thanks. When we were working on [CSV Schema Language](http://digital-preservation.github.io/csv-schema/csv-schema-1.1.html) we found it necessary to allow uniqueness to be defined over a composite...

enhancement

I've added support to use multiple keys on CSVs for the comparison. If the provide key is a list of column names instead of a single column name, the code...

Added support for a composite key. Created test cases. Updated ReadMe. Would love feedback. Thanks! #1