Python: What should I use for computing difference between versions of text


I need to put away background of text changes in order to achieve this effectively I need to store text for versions of textand all in between needs to be some kind of delta of text differences.

First + d1 + d2 + d3 = last_version

I was sure this is pretty common undertaking but so far I didn’t find anything helpful…

Exactly what I did found are:

Do you have some hints?