Carreau / difflib2.py

An surpriseless alternative to difflib
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

=============================== Difflib2

.. image:: https://badge.fury.io/py/difflib2.png :target: http://badge.fury.io/py/difflib2

.. image:: https://travis-ci.org/carreau/difflib2.png?branch=master :target: https://travis-ci.org/carreau/difflib2

.. image:: https://pypip.in/d/difflib2/badge.png :target: https://pypi.python.org/pypi/difflib2

Build Status

Difflib2

A surpriseless alternative to difflib.

Even if python difflib does a lot of great things, in the few cases I encounterd it didn't behave in a sensible way (not giving the correct edit length between 2 sequences and/or a weird api)

I also came across the fact that to build more sophisticated diff program I woudl need to access lower level methods.

So was born difflib2, might not be as fast (for now) as difflib, but hopefully more reliable and surprise less.

Hopefully in the long term it could be a drop-in replacement for difflib, but with more availlables methods.

.. Free software: BSD license .. Documentation: http://difflib2.rtfd.org.

Features