Skip to content

ashilkov/csv-comparer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV Comparison Tool

This CLI tool allows compare 2 CSV files. By default, its configuration specified for Magento 2 core_config_data table export.

Required Libraries

  • tabulate (pip install tabulate)
  • colorama (pip install colorama)

Arguments

  • file_1 - First file for comparison. Required positional argument
  • file_2 - Second file for comparison. Required positional argument
  • --exclude EXCLUDE, -e EXCLUDE - Exclude fields from comparison (default=0,5)
  • --values VALUES, -v VALUES - Value fields (default=4)
  • --max-length MAX_LENGTH - Output value max length (default=25, 0 for no limit)
  • --missing-only, -m - Missing values only flag
  • --diff-only, -d - Different values only flag
  • --any-format - Compare any format of CSV flag. By default, the tool is configured for Magento core_config_data table export

Usage example

python main.py data/core_config_data.csv data/core_config_data2.csv

Author

About

Simple CSV files comparer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages