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-gendiff
gendiff simple_before.json simple_after.json
If format
option is omitted, output will be in string
by default.
gendiff -f string complex_before.json complex_after.json
gendiff -f plain before.json after.json