Skip to main content

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

Metadata

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)

Source distribution for diff-cli 0.1.0
File Size Uploaded Provenance Actions
diff_cli-0.1.0.tar.gz 7.9 kB Without provenance Details for diff_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for diff-cli 0.1.0
File Interpreter ABI Platform Actions
diff_cli-0.1.0-py3-none-any.whl Python 3 none any Details for diff_cli-0.1.0-py3-none-any.whl

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

Security for diff-cli 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page