Justintime50 / diff-tool

Display a diff between two files in HTML.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Diff Tool

Display a diff between two files in HTML.

Build Status Coverage Status PyPi Licence

Showcase

Running this tool requires two files to compare. It will output the difference to an HTML file which can be viewed in a browser to see what changed between files.

Install

# Install tool
pip3 install diff-tool

# Install locally
make install

Usage

Usage:
    diff-tool --file1 /path/to/file1.txt --file2 /path/to/file2.txt --output path/to/diff.html

Options:
    -h, --help            show this help message and exit
    -f1 FILE1, --file1 FILE1
                            The path to the base file to compare a second file to.
    -f2 FILE2, --file2 FILE2
                            The path to the second file compared to the base file.
    -o OUTPUT, --output OUTPUT
                            The path/name to the output file where the diff will be stored.

Development

# Get a comprehensive list of development tools
make help

# Run the tool locally
venv/bin/python diff_tool/diff_files.py --help

About

Display a diff between two files in HTML.

License:MIT License


Languages

Language:Python 66.6%Language:Makefile 33.4%