tardiff
Compare two tarballs and emit a markdown diff report.
Reports:
- Files present only in A (removed in B)
- Files present only in B (added in B)
- Files in both whose size changed (with absolute and percentage delta)
- Per-tarball totals (file count + total bytes) and the net delta
Supported formats: .tar, .tar.gz/.tgz, .tar.bz2/.tbz2, .tar.xz/.txz
(compression is auto-detected).
Install
From PyPI:
pip install py-tardiff
(The distribution name on PyPI is py-tardiff; the import name and CLI are
both tardiff.)
From source:
pip install .
Or run without installing, using a one-off environment:
pipx run --spec py-tardiff tardiff OLD.tar.gz NEW.tar.gz
Usage
tardiff OLD.tar.gz NEW.tar.gz # writes diff.md
tardiff OLD.tar.gz NEW.tar.gz -o report.md # custom output path
python -m tardiff OLD.tar.gz NEW.tar.gz # equivalent
A short summary is printed to stderr so the command composes in pipelines:
Wrote diff.md: -3 +5 ~12 files, Δ +4096 B
Library use
from pathlib import Path
from tardiff import read_tar, compute_diff, render_report
a = read_tar(Path("old.tar.gz"))
b = read_tar(Path("new.tar.gz"))
diff = compute_diff(a, b)
print(render_report(a, b, diff))
Status
Could be lots better. Filters, ignore small changes, file content diffs, etc.
— Kurt
License
MIT — see LICENSE.
Metadata
Release files for py-tardiff 0.1
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 |
|---|---|---|---|---|
| py_tardiff-0.1.tar.gz | 5.6 kB | With provenance | Details for py_tardiff-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_tardiff-0.1-py3-none-any.whl | Python 3 | none | any | Details for py_tardiff-0.1-py3-none-any.whl |
Total release size: 12.7 kB
Release files / py_tardiff-0.1.tar.gz
| Download URL | py_tardiff-0.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d6f3107ad9c19d768a1d1bb06533cbc7aee6fe7ed635acc9a3f28a66be78be6
|
|
BLAKE2b-256 checksum How to use checksums |
18542d8553441d531c3f3b0a876db5e64d0548461d0173177a3fe74a6a8b8b7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logRelease files / py_tardiff-0.1-py3-none-any.whl
| Download URL | py_tardiff-0.1-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f9badbc582f4d64b4837c12620af629a72822d08380e296b0a19339c6d458fd
|
|
BLAKE2b-256 checksum How to use checksums |
5523f91109f2d107ec84337112cbf5f3e58065f08788e3c95fdc167f1feccc56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logSecurity for py-tardiff 0.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for py_tardiff-0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logA 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.