GenDiff is a command-line utility that compares two JSON or YAML files and generates a difference.
GenDiff supports different formats of output such as TXT, JSON or YAML.
You can also use GenDiff as a library or dependency to your project.
- Python >= 3.12
- pip >= 23.3.1
- Poetry >= 1.7.1
- Clone GitHub repo:
git clone https://github.com/Pythonusus/python-project-50
- Create virtual environment and install dependencies. This comman should be executed in the root directory of the project:
make install
- Build project:
make build
- Install project on user level (
home/<user-name>/.local/bin
for Linux users):
make package-install
- If you receive a warning on step 4:
WARNING: The script gendiff is installed in 'path/to/your/executable' which is not on PATH.
add this directory toPATH
for current shell session:
export PATH=$PATH:'path/to/your/executable'
To set it permanently for all future bash sessions add export PATH=$PATH:'path/to/your/executable'
to your .bashrc
file in your $HOME
directory.
- GenDiff is ready to use!
To compare two JSON or YAML files use:
gendiff path/to/file1 path/to/file2
Available formats:
- stylish (default)
- plain
- json
- yaml
gendiff path/to/file1 path/to/file2 -f plain
gendiff -h
- Poetry - Python packaging and dependency management tool
- PyYAML - A full-featured YAML framework for the Python programming language
Made with Ideogram AI
Stored at imgur.com