Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.09 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.09 KB

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