Display a diff between two files in HTML.
Project description
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.
- Place the contents of the older file in
f1.html
and the contents of the newer file inf2.html
. Just think "New in 2". - Run the script and it will generate an HTML file.
- 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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for diff_tool-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f55d940ad711d2b3e2bdff05e31f0e2c3c09884455fe9f91a5be8c871ea524cf |
|
MD5 | eea6f80dd2c69d2246cd6e222a9b30e2 |
|
BLAKE2b-256 | f891873ff1981cdf90436beefe4868fe2b0fb78443b8488a3c8e337a4e2cc3d5 |