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 Pypi MIT Licence

Install

pip3 install diff-tool

Usage

Usage:
    diff-tool -f1 /path/to/file1.txt -f2 /path/to/file2.txt > diff.html

    open diff.html

Options:
    -h, --help                show this help message and exit
    -f1 FILE1, --file1 FILE1  The base file to compare a second file to.
    -f2 FILE2, --file2 FILE2  The second file compared to the base first file.
  1. Place the contents of the older file in f1.html and the contents of the newer file in f2.html. Just think "New in 2".
  2. Run the script and it will generate an HTML file.
  3. Open the HTML file in a browser and view the diff.

Development

Install project with dev depencencies:

pip3 install -e ."[dev]"

Lint the project:

pylint diff/*.py

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.0.0.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

diff_tool-1.0.0-py3-none-any.whl (3.6 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