Skip to content

DSungatulin/python-project-50

Repository files navigation

Difference Calculator

Actions Status Python CI Maintainability Test Coverage

Description

This program compares two files and shows the difference between that files. It supports different data formats (JSON, YAML). It also supports three formats of output: stylish, plain and JSON.

Requirements

  • Python 3.10+
  • Poetry 1.7+
  • Pip 22.0+

Installation

  1. Clone the repo
git clone https://github.com/DSungatulin/python-project-50
  1. Install application
make install
make build
make package-install

Usage

To view help, use the follwoing command:

gendiff -h

To use the program, use the following command:

gendiff [-f FORMAT] first_file second_file

FORMAT is the output format. It supporsts stylish, plain and json formats. Default format is stylish.

first_file, second_file are the files to compare.

Usage examples

Help view

Flat JSON file comparison

Flat YAML file comparison

Nested JSON file comparison

Nested YAML file comparison

Plain output format

JSON output format

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published