Skip to content

ZLOI27/python-project-50

Repository files navigation

Hexlet tests and linter status:

Actions Status Python CI Maintainability Rating Coverage

gendiff configuration file diff tool

gendiff is a tool for easily comparing configuration files and displaying the differences between them in various formats. With gendiff, you can:

  • Get diffs in different formats: from the human-readable stylish format to the simple plain format, and even json.
  • Work with different file types, supporting YAML and JSON formats.
  • Easily integrate with other tools and scripts for automatic configuration comparisons.

Features:

  • Simple command-line interface.
  • Support for extendable output formats.
  • Comparison of nested data structures.
  • Suitable for working with any type of configuration or data files.

Supported Output Formats:

  • Stylish: Beautiful and human-readable output.
  • Plain: Simple text-based output.
  • JSON: Output in JSON format for integration with other tools.

Installation Guide for gendiff

Follow the steps below to set up and install the gendiff project on your local machine.

Clone the Repository

Start by cloning the repository from GitHub:

https://github.com/ZLOI27/python-project-50.git

Installation

Navigate into the project directory and install the required dependencies:

cd python-project-50
make install

Install the package globally

make build
make package-install

Run the tool

gendiff -f <format> <first_file> <second_file>

Replace <first_file>, <second_file>, and <format> with the appropriate file paths and desired output format (such as stylish, plain, or json).

Tests

Run the tests

make test

Run the tests with coverage, run with test-files and ruff check

make full-check

Asciinema gendiff of two files

asciicast

Asciinema gendiff of two files for .yaml

asciicast

Asciinema gendiff format stylish

asciicast

Asciinema gendiff format plain

asciicast

Asciinema gendiff format json

asciicast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published