Skip to content

Xapdina/python-project-50

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status

Actions Status

Maintainability

Test Coverage

Project: Difference Calculator

Difference Calculator is a tool for comparing two files of different formats (e.g., JSON or YAML) and displaying the differences between them in a convenient format. It allows identifying changes in the data structure, added or deleted elements, as well as modifications in the values of fields. The project supports various output formatting styles, such as "stylish," "plain," and "JSON," for presenting the comparison results.

usage: gendiff [-h] [-f FORMAT] file_path1 file_path2

Compares two configuration files and shows a difference.

positional arguments:
  file_path1
  file_path2

options:
  -h, --help            show this help message and exit
  -f FORMAT, --format FORMAT
                        select format of output from [stylish, plain, json]

Requirements and Tools:

Tools Version
python ^3.11
pyyaml ^6.0.1
pytest ^7.4.3
flake8 ^6.1.0
pytest-cov ^4.1.0

To get started, you need to perform the following operations:

Step Instruction
1 Clone he repository to your PC:
[email protected]:Xapdina/python-project-50.git
2 Go to repository
cd python-project-50
3 Installation in your PC
make install
4 Or you use command for install:
python3 -m pip install --user git+https://github.com/Xapdina/python-project-50.git
5 And this for uninstall:
python3 -m pip uninstall hexlet-code

P.S. You must have Poetry installed

You need that commands


Download project

git clone [email protected]:Xapdina/python-project-50.git

or

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

Install project

make install

Main commands

gendiff -h
gendiff **filepath1** **filepath2** -f **style**
python3 -m pip uninstall hexlet-code

How it's work

https://github.com/Xapdina/TRASH/blob/main/help.gif

Help command

asciicast

Diff-default or diff-stylish

asciicast

Diff-plain

asciicast

Diff-json

asciicast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published