Gendiff is a CLI utility for finding differences between configuration files.
- Suppported formats: YAML, JSON
- Report generation as plain text, structured text or JSON
- Can be used as CLI tool or external library
from gendiff import generate_diff
diff = generate_diff(filepath1, filepath2)> gendiff --help
usage: gendiff [-h] [-f FORMAT] first_file second_file
Generate diff
positional arguments:
first_file
second_file
optional arguments:
-h, --help show this help message and exit
-f FORMAT, --format FORMAT
set format of output
pip install --user --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ altvec-gendiffgendiff simple_before.json simple_after.jsonIf format option is omitted, output will be in string by default.
gendiff -f string complex_before.json complex_after.jsongendiff -f plain before.json after.json