Skip to content

Releases: blue-monk/csv-diff-python3

1.0.0

07 Oct 04:56
f4187c4
Compare
Choose a tag to compare

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

  • Python3.6 or later

CSV files

  • Must be sorted by key columns

Installation

With pip

pip install git+https://github.com/blue-monk/csv-diff-python3

It may be safer to install it on a virtual environment created with venv.

Manual installation

Place csvdiff.py in any directory on the machine where Python 3 is installed.
It will be easier to use if you place it in a directory defined on PATH.

Run

If installed with pip

$ csvdiff3 -h

If installed manually

$ python csvdiff.py -h

or

$ chmod +x csvdiff.py
$ ./csvdiff.py -h