Skip to main content

Delta compression algorithm from fossil SCM

Project description

# 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.

- [Format](http://www.fossil-scm.org/index.html/doc/tip/www/delta_format.wiki)
- [Algorithm](http://www.fossil-scm.org/index.html/doc/tip/www/delta_encoder_algorithm.wiki)
- [Original implementation](http://www.fossil-scm.org/index.html/artifact/f3002e96cc35f37b)

Other implementations:

- [JavaScript](https://github.com/dchest/fossil-delta-js) ([Online demo](https://dchest.github.io/fossil-delta-js/))
- [C#](https://github.com/endel/FossilDelta/blob/master/README.md)

## Install

```
pip install python-fossil-delta
```

## Example

```python
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
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-fossil-delta-18.11.27.tar.gz (10.3 kB view hashes)

Uploaded Source

Built Distributions

python_fossil_delta-18.11.27-cp36-cp36m-macosx_10_14_x86_64.whl (19.1 kB view hashes)

Uploaded CPython 3.6m macOS 10.14+ x86-64

python_fossil_delta-18.11.27-cp27-cp27m-macosx_10_13_x86_64.whl (19.0 kB view hashes)

Uploaded CPython 2.7m macOS 10.13+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page