textproc/py-patiencediff 0.2.19p0 OpenBSD
Python implementation of the patiencediff algorithm
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Last update
- Commit
790c92c18a- Categories
- textproc, lang/python, lang/rust
Description
This package contains the implementation of the patiencediff algorithm, as first described by Bram Cohen.
Like Python's difflib, this module provides both a convenience unified_diff function for the generation of unified diffs of text files as well as a SequenceMatcher that can be used on arbitrary lists.
Patiencediff provides a good balance of performance, nice output for humans, and implementation simplicity.
The code in this package was extracted from the Bazaar code base.
The package comes with two implementations:
- A Python implementation (_patiencediff_py.py); this implementation only requires a Python interpreter and is the more readable version of the two.
- A C implementation (_patiencediff_c.c); this implementation is faster, but requires a C compiler and is less readable.
It may also be called from the command line:
- python3 -m patiencediff file_a file_b
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | textproc/py-patiencediff | 0.2.19p0 |
| FreeBSD | textproc/py-patiencediff | 0.2.12_1 |
| NetBSD | textproc/py-patiencediff | 0.2.19 |
| DragonFly | textproc/py-patiencediff | 0.2.12_1 |
| HardenedBSD | textproc/py-patiencediff | 0.2.12_1 |
| GhostBSD | textproc/py-patiencediff | 0.2.12_1 |
Install
Binary package:
pkg_add py3-patiencediff
From the ports tree:
cd /usr/ports/textproc/py-patiencediff && make install
Dependencies
Build dependencies 8
Run dependencies 1
No port depends on this one.