The second project on Hexlet: Gendiff. Program: Python developer.
The project is aimed at working with collections. Gendiff is a command—line utility for comparing two configuration files. The tool analyzes the files and displays the differences in a readable format. It supports JSON and YAML file formats.
Cloning the GitHub repository
$ git clone https://github.com/ivanvasutinskiy/python-project-50.git
UV Installation
$ curl -LsSf https://astral.sh/uv/install.sh | sh
$ uv sync
$ uv build
$ uv tool install dist/*.whl
$ uv run gendiff --help
- -h, --help — display a help message and exit.
- -f FORMAT, --format FORMAT — set the output format (plain / json / stylish)
$ uv run gendiff ./tests/fixtures/file1.json ./tests/fixtures/file2.json
$ uv run gendiff -f plain ./tests/fixtures/file1.json ./tests/fixtures/file2.json
$ uv run gendiff -f json ./tests/fixtures/file1.json ./tests/fixtures/file2.json