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.

Files for python-fossil-delta, version 18.11.27
Filename, size File type Python version Upload date Hashes
Filename, size python_fossil_delta-18.11.27-cp27-cp27m-macosx_10_13_x86_64.whl (19.0 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size python_fossil_delta-18.11.27-cp36-cp36m-macosx_10_14_x86_64.whl (19.1 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size python-fossil-delta-18.11.27.tar.gz (10.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page