from gendiff import generate_diff
diff = generate_diff(file_path1, file_path2)
> gendiff --help
usage: gendiff [-h] [-f FORMAT] first_file second_file
Compares two configuration files and shows a difference.
positional arguments:
first_file
second_file
optional arguments:
-h, --help show this help message and exit
-f FORMAT, --format FORMAT
output format (default: "stylish"). Available: ['stylish', 'plain',
'json']
python3 -m pip install --user git+https://github.com/akocur/python-project-lvl2.git
python3 -m pip uninstall hexlet-code