diff-cli
File and text differ with multiple output formats.
Install
pip install diff-cli
Usage
# Compare files
diff-cli files file1.txt file2.txt
# Compare text strings
diff-cli text "hello world" "hello there"
# Compare directories
diff-cli dirs dir1/ dir2/
# Output formats
diff-cli files a.txt b.txt --unified # Default
diff-cli files a.txt b.txt --side-by-side # Two-column
diff-cli files a.txt b.txt --context # Context format
diff-cli files a.txt b.txt --minimal # Changes only
diff-cli files a.txt b.txt --json # JSON for automation
# Options
diff-cli files a.txt b.txt -n 5 # 5 context lines
diff-cli files a.txt b.txt --ignore-whitespace
diff-cli files a.txt b.txt --ignore-case
diff-cli files a.txt b.txt --ignore-blank-lines
# Watch mode
diff-cli watch file1.txt file2.txt
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Files are identical |
| 1 | Files differ |
| 2 | Error (file not found, etc.) |
License
MIT
Release files for diff-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| diff_cli-0.1.0.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| diff_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / diff_cli-0.1.0.tar.gz
| Download URL | diff_cli-0.1.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d8dd2d4e32fdbefa87ff007ca5b6441acc747e50065f420bdb5fe89f2923437
|
|
BLAKE2b-256 checksum How to use checksums |
ba234582981c06352ca4b8bd5ccfd5b526ad24d335bf4e814140a2bb09eec911
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / diff_cli-0.1.0-py3-none-any.whl
| Download URL | diff_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f579f27914a8a665297518754753a033efcde943ddbb1313f817ef70fd2b0961
|
|
BLAKE2b-256 checksum How to use checksums |
69c0ac353fd470e6eac16ec7464d923e539522d71a7b73548139bf76b03463ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|