Skip to main content

Display a diff between two files in HTML.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diff-tool-3.0.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

diff_tool-3.0.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page