peter-diff
A Python CLI tool for side-by-side diffing of files and folders.
Installation
pip install -e .
OR
pip install peter-diff
Usage
Compare two files
peter-diff file1.txt file2.txt
Displays a side-by-side diff with line numbers. Changed characters within a line are highlighted. Identical files print same.
Compare two folders
peter-diff dir1/ dir2/
Displays a side-by-side tree view of both directories:
Status indicators:
| Symbol | Meaning |
|---|---|
| (none) | identical |
diff |
file differs |
← |
only in left folder |
→ |
only in right folder |
bin |
binary / unreadable, skipped |
Flags
| Flag | Description |
|---|---|
-o |
Only show differences — hide identical files/lines |
Publishing to PyPI
pip install build twine
python -m build
twine upload dist/*
When prompted, use __token__ as the username and your PyPI API token as the password.
To skip the prompt, create a ~/.pypirc file:
[pypi]
username = __token__
password = pypi-YOUR-TOKEN-HERE
Note: Bump the
versioninpyproject.tomlbefore each upload — PyPI rejects duplicate version numbers.
Requirements
- Python >= 3.9
- No external dependencies
License
MIT
Metadata
Release files for peter-diff 0.1.3
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 |
|---|---|---|---|---|
| peter_diff-0.1.3.tar.gz | 4.9 kB | Without provenance | Details for peter_diff-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| peter_diff-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for peter_diff-0.1.3-py3-none-any.whl |
Total release size: 10.1 kB
Release files / peter_diff-0.1.3.tar.gz
| Download URL | peter_diff-0.1.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14546741c0db072a8bc69555d757ea8c373d37873d06b0aaeb0f202e94dbfa21
|
|
BLAKE2b-256 checksum How to use checksums |
d56e463865fb5c999c3be9b40343be941bc94ba902683afe93ef34958e29c8e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.1
|
Release files / peter_diff-0.1.3-py3-none-any.whl
| Download URL | peter_diff-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a97c9267c97e1e17a941a2c7eaea62b0c40ea4480d04d75a725d8347ac51b0f9
|
|
BLAKE2b-256 checksum How to use checksums |
d7964653468da0484f115fb814ff8affd2ba750d3c62bebe19f228a5f5f7f27d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.1
|
Security for peter-diff 0.1.3
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.