pdiff
Pretty side-by-side diff.
Example
Installation
pip install pdiff
Or:
brew install nkouevda/nkouevda/pdiff
Usage
usage: pdiff [<options>] [--] <left file> <right file>
Pretty side-by-side diff
options:
-h, --help show this help message and exit
-b, --background, --no-background
highlight background instead of foreground (default: True)
-l, --line-numbers, --no-line-numbers
show line number columns (default: True)
-t, --expand-tabs <n>
expand tabs to <n> spaces (default: 8)
-s, --signs, --no-signs
show sign columns (default: True)
-U, --unified <n> show <n> lines of context (default: 3)
-v, --version show program's version number and exit
-w, --width <n> fit output to <n> columns (default: autodetect)
Git
Configure a pdiff difftool, and add some aliases to your liking, e.g.:
[difftool "pdiff"]
cmd = "pdiff -- \"$LOCAL\" \"$REMOTE\" | less --Raw-control-chars --quit-on-intr"
[alias]
dfp = difftool --tool=pdiff
dfpc = difftool --tool=pdiff --cached
License
Metadata
Release files for pdiff 1.1.5
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 |
|---|---|---|---|---|
| pdiff-1.1.5.tar.gz | 6.4 kB | Without provenance | Details for pdiff-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdiff-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for pdiff-1.1.5-py3-none-any.whl |
Total release size: 14.0 kB
Release files / pdiff-1.1.5.tar.gz
| Download URL | pdiff-1.1.5.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65c3a1ab67060a337f03c0cacbbcd24bfbf1bf17961ca1b3875f47662745a7d5
|
|
BLAKE2b-256 checksum How to use checksums |
ea6d386386e23918a79f144c6c58c9d01fc89dec008bcc053def4e8fc98d1d98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.5
|
Release files / pdiff-1.1.5-py3-none-any.whl
| Download URL | pdiff-1.1.5-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9dc2327b96548c6fefb94d5bc4e689eff5460f36debabb829bb8f68ead98bcf5
|
|
BLAKE2b-256 checksum How to use checksums |
6e71c44139446f1d58dab87c9d588229b6973e6abab987d85902ab8b5522c815
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.5
|
Security for pdiff 1.1.5
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.