Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 2.11 KB

README.md

File metadata and controls

43 lines (37 loc) · 2.11 KB

The semantic JSON and YAML compare tool


Actions Status Github Actions Status Maintainability Test Coverage

About:

Gendiff is cli-utility for comparing two files JSON or YAML formats. Also it can be used as a library. Difference between two files displaying in console output in two formats at option: stylish(by default) or plain. In addition it's possible to dump file with comparison result in JSON format.

Requirements:

  • Python >= 3.10
  • Poetry 1.2.2
  • Pyyaml >= 6.0
  • Make (is used to run utility through console-command)

How to install:


With the use of pip:

python3 -m pip install --user git+https://github.com/DmGorokhov/python-project-50.git

Download from git repository:

git clone https://github.com/DmGorokhov/python-project-50.git
Make install          # install poetry for dependency management and packaging
Make build            # create package in dist/
Make package-install  # install package

Usage examples:

  • Compare two plain *.json files asciicast
  • Compare two plain *.yaml files asciicast
  • Compare two nested files asciicast
  • Plain format of output asciicast
  • JSON format of output to file asciicast