A command line tool to calculate the difference between two data structures. Runs from the command line, compares two configuration files and shows a difference. Working with JSON and YAML. Provides output in stylish, plain and json format.
help:
$ gendiff -h
Running:
$ gendiff <file_path1> <file_path2> --format <format>
format - optional parameter, default value is 'stylish'. Possible values: 'stylish', 'plain', 'json'.
using Makefile:
$ make install
$ make build
$ make package-install
$ python3 -m gendiff.scripts.gendiff <file_path1> <file_path2> --format <format>
Comparison of two files in the JSON format:
Comparison of two nested files in the YAML format:
Comparison of two files in the JSON format with plain output:
This project was built using these tools:
Tool | Description |
---|---|
poetry | "Python dependency management and packaging made easy" |
Py.Test | "A mature full-featured Python testing tool" |