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 details)

Uploaded Source

Built Distributions

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

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 details)

Uploaded CPython 2.7m macOS 10.13+ x86-64

File details

Details for the file python-fossil-delta-18.11.27.tar.gz.

File metadata

  • Download URL: python-fossil-delta-18.11.27.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for python-fossil-delta-18.11.27.tar.gz
Algorithm Hash digest
SHA256 3588d125d58dec821524168e6c73009beee08ee21ea38dceef1a13c788d99501
MD5 27d9313b0fc660475a1663024f79621c
BLAKE2b-256 0f3a1e9d3b66f6298b40fa9f476b57660d56a360221c2b4a5f7058f76eac0ceb

See more details on using hashes here.

File details

Details for the file python_fossil_delta-18.11.27-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for python_fossil_delta-18.11.27-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 c317763d7cfb42c4e68c1fb9669c961d81e48fea5d4eee9d65afe12ca66aded0
MD5 c7841ab3251be2f6569124713e5a08dd
BLAKE2b-256 c2e70c98ca92bcfcce1fcd8cfaf71e58b42c7a92e378e1ff73a6d0bdbb1dbca9

See more details on using hashes here.

File details

Details for the file python_fossil_delta-18.11.27-cp27-cp27m-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for python_fossil_delta-18.11.27-cp27-cp27m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 43d97b627f9d82da48649157e05f16083a2464ac167dc142e98a7b0a9f8af470
MD5 625f3ef82f6bce2d01d5bc8953232f08
BLAKE2b-256 915f115d312a75ca477077bc57f02dbbbfda4745f31d9c066fe31f333ed9e45a

See more details on using hashes here.

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