Python module shows difference between two .json/.yaml/*.yml files.
The difference can be returned in 3 forms, depending on the selected format.
Format options:
- 'stylish' - result as a "tree" of difference
- 'plain' - result in the form of a string
- 'json' - result as a raw structure of difference file
- python3 version 3.9.x
- poetry version >= 1.0.0
- clone repository to directory on your computer
- enter "make install" to install poetry
- enter "make package-install" to install the difference calculator module
- enter gendiff -f (format) (path to the first file) (path to the second file)"
Example:
gendiff -f stylish tests/fixtures/nested/file1.json tests/fixtures/nested/file2.json
This project was built using these tools:
Tool | Description |
---|---|
poetry | "Python dependency management and packaging made easy" |
flake8 | "Python linter" |