Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ietf-tools/iddiff
Internet-Draft (ID) diff tool.
https://github.com/ietf-tools/iddiff
diff id ietf internet-draft rfc
Last synced: about 2 months ago
JSON representation
Internet-Draft (ID) diff tool.
- Host: GitHub
- URL: https://github.com/ietf-tools/iddiff
- Owner: ietf-tools
- License: other
- Created: 2021-10-26T09:30:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-21T03:24:11.000Z (almost 2 years ago)
- Last Synced: 2024-07-29T18:56:33.420Z (6 months ago)
- Topics: diff, id, ietf, internet-draft, rfc
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 6
- Watchers: 4
- Forks: 10
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 file2Internet-Draft diff tool
positional arguments:
file1 first file to compare
file2 second file to compareoptions:
-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 exitside 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
```