py3-patiencediff

Python implementation of the patiencediff algorithm

WWW CVSWeb GITHub
  1. Package version
    py3-patiencediff-0.2.14
  2. Maintainer
    The OpenBSD ports mailing-list

This package contains the implementation of the patiencediff algorithm, as
first described by Bram Cohen.

Like Python's difflib, this module provides both a convience 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

  • python3

  • lang/cython,python3
  • lang/python/3.10
  • devel/py-build,python3
  • devel/py-installer,python3
  • devel/py-setuptools,python3
  • devel/py-wheel,python3

  • lang/python/3.10