Releases: blue-monk/csv-diff-python2
Releases · blue-monk/csv-diff-python2
1.0.0
First release.
Features
- CSV delimiter, line feed character, presence/absence of header, etc. are automatically determined (can be specified)
- Make a comparison after matching with the key columns
- You can specify columns that are not compared
- Differences can be displayed side-by-side (more suitable when the number of columns is small)
- Differences can be displayed in vertical order (more suitable when the number of columns is large)
- Differences are indicated by the following marks, which we call DIFF-MARK
!
: There is a difference<
: Exists only on the left side>
: Exists only on the right side
- It is also possible to display only the number of differences and the line number with the difference
- It is possible to compare one file with commas and one file with tabs
- Low memory consumption
- Only Python standard modules are used and provided as a single file, so it is easy to install even on an isolated environment
Requirements
Runtime
- Python2.7.18 or later
CSV files
- Must be sorted by key columns
Installation
With pip
pip install git+https://github.com/blue-monk/csv-diff-python2
It may be safer to install it on a virtual environment created with virtualenv.
Manual installation
Place csvdiff.py
in any directory on the machine where Python 2.7 is installed.
It will be easier to use if you place it in a directory defined on PATH.
Run
If installed with pip
$ csvdiff2 -h
If installed manually
$ python csvdiff.py -h
or
$ chmod +x csvdiff.py
$ ./csvdiff.py -h