Skip to main content

Display a diff between two files in HTML.

Project description

Diff

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

# Get Makefile help
make help

Usage

Usage:
    diff-tool -f1 /path/to/file1.txt -f2 /path/to/file2.txt -o 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 to the output file including filename..

Development

# Lint the project
make lint

# Run tests
make test

# Run the tool locally
venv/bin/python diff/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-1.3.0.tar.gz (3.2 kB view hashes)

Uploaded Source

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