Skip to content

irisraine/python-project-50

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gendiff

Hexlet tests and linter status:

Actions Status Actions Status Actions Status Maintainability Test Coverage

Description

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.

Installation

  1. Clone git repository to your local machine: git clone git@github.com:irisraine/python-project-50.git
  2. Go to the utility directory: cd python-project-50
  3. You must have Poetry to build the project. Use make build command for creating the package.
  4. For installation use python3 -m pip install --user dist/*.whl command, or make package-install

Run

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

Demonstration

Compare and get a difference between two flat .json files in stylish format: asciicast

Compare and get a difference between two flat .yaml files in stylish format: asciicast

Compare and get a difference between two flat .json files in plain format: asciicast

Compare and get a difference between two flat .yaml files in plain format: asciicast

Compare and get a difference between two flat .json files in json format: asciicast

Compare and get a difference between two flat .yaml files in json format: asciicast

Compare and get a difference between two nested .json files in stylish format: asciicast

Compare and get a difference between two nested .yaml files in stylish format: asciicast

Compare and get a difference between two nested .json files in plain format: asciicast

Compare and get a difference between two nested .yaml files in plain format: asciicast

Compare and get a difference between two nested .json files in json format: asciicast

Compare and get a difference between two nested .yaml files in json format: asciicast

About

JSON and YAML difference generator tool

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published