Skip to content

deaniway/Difference_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status Github CI Maintainability Test Coverage

Usage

gendiff -h


usage: gendiff [-h] [-f FORMAT] first_file second_file

Compares two configuration files and shows a difference.

positional arguments:
  first_file
  second_file

optional arguments:
  -h, --help            show this help message and exit
  -f FORMAT, --format FORMAT
                        set format of output

Links

This project was built using these tools:

Tool Description
poetry "Python dependency management and packaging made easy"
flake8 "Your tool for style guide enforcement"
pytest "The pytest framework makes it easy to write small, readable tests"

Minimum Requirements:

  • Python
  • Poetry

Project: Difference Calculator

A difference calculator is a program that determines the difference between two data structures. This is a popular task, for which there are many online services, such as jsondiff. A similar mechanism is, for example, used when outputting tests or automatically tracking changes in configuration files.

This is use next tools:

Tools Version
python 3.11
poetry 1.6.1
pytest 7.4.4
flake8 6.1.0

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

Step Instruction
1 Clone he repository to your PC:
github.com/deaniway/python-project-50.git
2 Go to repository
cd python-project-50
3 Installing the application on your computer
make install

Alternative installation option: python3 -m pip install --user git+github.com/deaniway/python-project-50.git

P.S. You must have Poetry installed

Contributing

How can I help develop a project? Submit a pull request :)

How it's work

To install the package, run the command: make package-install

To run the utility in development mode, run the command: gendiff <file_name_1> <file_name_2> -f <stylish/plain/json>

Diff-stylish

asciicast

Diff-plain

asciicast

Diff-json

asciicast

In the plans

  • Submit README
  • Add functionality to the project

Project team

About

Algorithms and data structures

Resources

Stars

Watchers

Forks

Packages

No packages published