Educational project. The command line utility compares two .json or .yaml files and gets a difference between them. Three types of difference format output are available.
- Clone git repository to your local machine:
git clone git@github.com:irisraine/python-project-50.git - Go to the utility directory:
cd python-project-50 - You must have Poetry to build the project. Use
make buildcommand for creating the package. - For installation use
python3 -m pip install --user dist/*.whlcommand, ormake package-install
Use command gendiff -f [format] file1 file2 to get a difference between file1 and file2
Select one of specific formats (stylish, plain, json) to get a corresponding output type.
If you need a help, use command gendiff -h
Compare and get a difference between two flat .json files in stylish format:
Compare and get a difference between two flat .yaml files in stylish format:
Compare and get a difference between two flat .json files in plain format:
Compare and get a difference between two flat .yaml files in plain format:
Compare and get a difference between two flat .json files in json format:
Compare and get a difference between two flat .yaml files in json format:
Compare and get a difference between two nested .json files in stylish format:
Compare and get a difference between two nested .yaml files in stylish format:
Compare and get a difference between two nested .json files in plain format:
Compare and get a difference between two nested .yaml files in plain format:
Compare and get a difference between two nested .json files in json format:
Compare and get a difference between two nested .yaml files in json format: