Skip to content

AleksandrKosmylev/Diff-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Difference calculator

Hexlet tests and linter status:

Actions Status Github Actions Status

Description

Python module shows difference between two .json/.yaml/*.yml files. The difference can be returned in 3 forms, depending on the selected format.
Format options:

  • 'stylish' - result as a "tree" of difference
  • 'plain' - result in the form of a string
  • 'json' - result as a raw structure of difference file

Requirements

  • python3 version 3.9.x
  • poetry version >= 1.0.0

Installation and usage

  • clone repository to directory on your computer
  • enter "make install" to install poetry
  • enter "make package-install" to install the difference calculator module
  • enter gendiff -f (format) (path to the first file) (path to the second file)"

Example:
gendiff -f stylish tests/fixtures/nested/file1.json tests/fixtures/nested/file2.json

Links

This project was built using these tools:

Tool Description
poetry "Python dependency management and packaging made easy"
flake8 "Python linter"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published