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.1.tar.gz (9.2 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.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iddiff-0.5.1.tar.gz
  • Upload date:
  • Size: 9.2 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.1.tar.gz
Algorithm Hash digest
SHA256 f5175ecd233d17c8be4ef3c0e00e68ea9c8a0df4e1bad647c238c2b2181e98e3
MD5 f543c1329fdc12a62e2c37c180114188
BLAKE2b-256 845b3628fdd6c0044c585fe4372341267413662e0083dd757ae9cbb3571e17be

See more details on using hashes here.

Provenance

The following attestation bundles were made for iddiff-0.5.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: iddiff-0.5.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45546ce4e694b560f893b58e9bb4b01d3e8054618fedadd170a31dfa6eb39994
MD5 10654f4e077cb2ed424145bf3edf6bca
BLAKE2b-256 273588bb944a4eab2f1aa8a1e881a955e932c07df5e45abd1c2c916c08c68b3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for iddiff-0.5.1-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