wsdiff
A python script that produces a diff of two files or directories as a single, self-contained HTML file. The resulting diff works without Javascript and will automatically switch between inline and side-by-side formats depending on available screen space.
Installation
pip install wsdiff
Usage
usage: wsdiff [-h] [-b] [-s SYNTAX_CSS] [-l LEXER] [-L] [-t PAGETITLE]
[-o OUTPUT] [--header] [--content]
[old] [new]
Given two source files or directories this application creates an html page
that highlights the differences between the two.
positional arguments:
old source file or directory to compare ("before" file)
new source file or directory to compare ("after" file)
options:
-h, --help show this help message and exit
-b, --open Open output file in a browser
-s SYNTAX_CSS, --syntax-css SYNTAX_CSS
Path to custom Pygments CSS file for code syntax
highlighting
-l LEXER, --lexer LEXER
Manually select pygments lexer (default: guess from
filename, use -L to list available lexers.)
-L, --list-lexers List available lexers for -l/--lexer
-t PAGETITLE, --pagetitle PAGETITLE
Override page title of output HTML file
-o OUTPUT, --output OUTPUT
Name of output file (default: stdout)
--header Only output HTML header with stylesheets and stuff,
and no diff
--content Only output HTML content, without header
Example Output
Metadata
Release files for wsdiff 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wsdiff-0.3.2.tar.gz | 9.8 kB | Without provenance | Details for wsdiff-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wsdiff-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for wsdiff-0.3.2-py3-none-any.whl |
Total release size: 20.0 kB
Release files / wsdiff-0.3.2.tar.gz
| Download URL | wsdiff-0.3.2.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc8bf6ede5307e9461e97c7046e2133915bb36eedda178d66e22c248b24575b4
|
|
BLAKE2b-256 checksum How to use checksums |
10e4e583436106c1d80ce63769d29321f530fbef9a13b0eeafb74824f33fe5fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / wsdiff-0.3.2-py3-none-any.whl
| Download URL | wsdiff-0.3.2-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6305ec0c1312a1f0b21dc71ee77eadd1564a8fe3752f58c99779471bb88a1603
|
|
BLAKE2b-256 checksum How to use checksums |
3fb69d384dc36c4c24a982c612ed0580ef75ab4620b8115a949b36bddec3321d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for wsdiff 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.