Python port of the wikEdDiff JavaScript library
GPL-3.0 License
WikEdDiff is a visual inline-style difference engine with block move support.
The original wikEdDiff is an improved JavaScript diff library that returns html/css-formatted new text version with highlighted deletions, insertions, and block moves. It is also available as a MediaWiki extension, which is a one-to-one synced port with changes and fixes applied to both versions.
Python-wikEdDiff is a port of the original JavaScript library to Python. There were no changes to the algorithm, so all credits go to the original author, Cacycle.
WikEdDiff applies a word-based algorithm that uses unique words as anchor points to identify matching text and moved blocks (Paul Heckel: A technique for isolating differences between files. Communications of the ACM 21(4):264 (1978)).
Additional features:
Notable differences between the Python port and the original JavaScript version:
WikEdDiff
class into aWikEdDiffConfig
class.wiked-diff
).pip install git+git://github.com/lahwaacz/python-wikeddiff.git
The Python port (python-wikeddiff) is distributed under the terms of the GNU General Public License v3.0 (see LICENSE).