Program that determines the difference between two data structures
- Support for various input formats: YAML, JSON
- Report generation in plain text, stylish, and JSON formats
Requirements:
- python >= 3.12
- uv >= 0.8
Help for use:
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
options:
-h, --help show this help message and exit
-f FORMAT, --format FORMAT
set format of output
- Compare two files and output using stylish format:
gendiff <file_path1> <file_path2> --format=stylish
- Compare two files and output using plain format:
gendiff <file_path1> <file_path2> --format=plain
- Compare two files and output using json format:
gendiff <file_path1> <file_path2> --format=json
- Clone repository:
git clone git@github.com:ilrosch/python-project-50.git
- Install dependencies:
make install
- Run linter:
make lint
- Run tests:
make test