/gendiff

Gendiff package: Generates diff between json and yaml files with various output formats.

Primary LanguagePython

State-of-the-art Shitcode Python CI Actions Status

gendiff package

Generates diff between plain and nested json and yaml files.


Installation

cd ~/Downloads
git clone https://github.com/shitcoding/python-project-lvl2
cd python-project-lvl2
python3 -m pip install .

asciicast


Usage examples

stylish output formatter (default)

Generating diff between plain json files with stylish output formatter

asciicast

Generating diff between plain yaml files with stylish output formatter

(Supported extensions: yaml and yml) asciicast

Generating diff between nested json and files with stylish output formatter

(Supports yaml-yaml, json-json, json-yaml, yaml-json diffs) asciicast

plain output formatter

Usage:

gendiff -f plain file1.json file2.json
gendiff --format plain file1.yaml file2.yaml

Generating diff between nested json and yaml files with plain output formatter

asciicast

json output formatter

Usage:

gendiff -f json file1.json file2.json
gendiff --format json file1.yaml file2.yaml

Generating diff between nested json and files with json output

asciicast