Metadata-Version: 2.4
Name: iddiff
Version: 0.5.0
Summary: Internet-Draft diff tool
Author-email: Kesara Nanayakkara Rathnayake <kesara@fq.nz>
License-Expression: BSD-3-Clause
Project-URL: homepage, https://github.com/ietf-tools/iddiff
Project-URL: source, https://github.com/ietf-tools/iddiff
Project-URL: issues, https://github.com/ietf-tools/iddiff/issues
Project-URL: releasenotes, https://github.com/ietf-tools/iddiff/releases
Keywords: ietf,rfc,id,internet-draft,diff
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: test
Requires-Dist: coverage; extra == "test"
Requires-Dist: pycodestyle; extra == "test"
Requires-Dist: pyflakes; extra == "test"
Requires-Dist: tox; extra == "test"
Dynamic: license-file

# iddiff
Internet-Draft (ID) diff tool. Inspired by
[rfcdiff](https://tools.ietf.org/rfcdiff).

## Install

```
pip install iddiff
```

## Dependencies

* Python 3.8 or higher.
* Word difference functionality (`wdiff` and `hwdiff`) requires [GNU Wdiff](https://www.gnu.org/software/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](https://tox.wiki/).
```
tox
```

Generate coverage report with [coverage](https://github.com/nedbat/coveragepy).
```
coverage report
```
