Skip to main content

Internet-Draft diff tool

Project description

iddiff

Internet-Draft (ID) diff tool. Inspired by rfcdiff.

Install

pip install iddiff

Dependencies

  • Python 3.8 or higher.
  • Word difference functionality (wdiff and hwdiff) requires GNU Wdiff.

Usage

usage: iddiff [-h] [--side-by-side | --wdiff | --hwdiff | --chbars | --abdiff]
              [-t] [-c CONTEXT_LINES] [-s] [-v]
              file1 file2

Internet-Draft diff tool

positional arguments:
  file1                 first file to compare
  file2                 second file to compare

options:
  -h, --help            show this help message and exit
  --side-by-side        side by side difference (default)
  --wdiff               produce word difference (requries GNU Wdiff)
  --hwdiff              produce HTML wrapped word difference
                        (requires GNU Wdiff)
  --chbars              produce changebar marked output
  --abdiff              produce before/after output
  -s, --skip-whitespace
                        skip multilines with only whitespace
  -v, --version         show program's version number and exit

side by side options:
  -t, --table-only      produce only a HTML table
  -c CONTEXT_LINES, --context-lines CONTEXT_LINES
                        set number of context lines (set to 0 for no context)
                        (default 8)

Tests

Run tests with tox.

tox

Generate coverage report with coverage.

coverage report

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iddiff-0.5.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iddiff-0.5.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file iddiff-0.5.0.tar.gz.

File metadata

  • Download URL: iddiff-0.5.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for iddiff-0.5.0.tar.gz
Algorithm Hash digest
SHA256 1b449907d08c8073d6d660ecbeee541fba9639457a8693a0a8d68d481d5299fb
MD5 062b67eb30820d2dd98a09eddc22e35c
BLAKE2b-256 87950ce94db1ad952eb268d395fdc7d6c173fbf562880dcb390ef8375f01daf7

See more details on using hashes here.

Provenance

The following attestation bundles were made for iddiff-0.5.0.tar.gz:

Publisher: pypi-publish.yml on ietf-tools/iddiff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iddiff-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: iddiff-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for iddiff-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fdc2846eb70ae104fab9c2604e2d234b43058311d0ea1e4f06c060f270a89a65
MD5 64c3d23be83ee26dabec80152a0ee3cd
BLAKE2b-256 e1eb72306b7a7af02deb493d0243095450aff90d77ea4539b557f5bd4ee6aff5

See more details on using hashes here.

Provenance

The following attestation bundles were made for iddiff-0.5.0-py3-none-any.whl:

Publisher: pypi-publish.yml on ietf-tools/iddiff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page