python-fossil-delta

Delta compression algorithm from fossil SCM


Keywords
fossil-delta, compression, algorithm, delta-compression, fossil-scm
License
MIT
Install
pip install python-fossil-delta==18.7.2

Documentation

Delta compression algorithm for python

This is a python wrapper of the original C implementation. (Source code from Fossil-2.6)

Fossil achieves efficient storage and low-bandwidth synchronization through the use of delta-compression. Instead of storing or transmitting the complete content of an artifact, fossil stores or transmits only the changes relative to a related artifact.

Other implementations:

Install

pip install python-fossil-delta

Example

import fossil_delta


def main():
    delta = fossil_delta.create_delta(b'abc', b'abcdef')
    out = fossil_delta.apply_delta(b'abc', delta)
    print(out)  # --> abcdef