Difference Calculator is a tool for comparing two files of different formats (e.g., JSON or YAML) and displaying the differences between them in a convenient format. It allows identifying changes in the data structure, added or deleted elements, as well as modifications in the values of fields. The project supports various output formatting styles, such as "stylish," "plain," and "JSON," for presenting the comparison results.
usage: gendiff [-h] [-f FORMAT] file_path1 file_path2
Compares two configuration files and shows a difference.
positional arguments:
file_path1
file_path2
options:
-h, --help show this help message and exit
-f FORMAT, --format FORMAT
select format of output from [stylish, plain, json]
| Tools | Version |
|---|---|
| python | ^3.11 |
| pyyaml | ^6.0.1 |
| pytest | ^7.4.3 |
| flake8 | ^6.1.0 |
| pytest-cov | ^4.1.0 |
| Step | Instruction |
|---|---|
| 1 | Clone he repository to your PC:[email protected]:Xapdina/python-project-50.git |
| 2 | Go to repositorycd python-project-50 |
| 3 | Installation in your PCmake install |
| 4 | Or you use command for install:python3 -m pip install --user git+https://github.com/Xapdina/python-project-50.git |
| 5 | And this for uninstall:python3 -m pip uninstall hexlet-code |
P.S. You must have Poetry installed
Download project
git clone [email protected]:Xapdina/python-project-50.gitor
python3 -m pip install --user git+https://github.com/Xapdina/python-project-50.gitInstall project
make installMain commands
gendiff -hgendiff **filepath1** **filepath2** -f **style**python3 -m pip uninstall hexlet-code


