This CLI tool allows compare 2 CSV files. By default, its configuration specified for Magento 2 core_config_data table export.
- tabulate (
pip install tabulate) - colorama (
pip install colorama)
file_1- First file for comparison. Required positional argumentfile_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
python main.py data/core_config_data.csv data/core_config_data2.csv
- Andrei Shilkov — [email protected]
- GitHub: https://github.com/ashilkov