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
```
> > 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for python-fossil-delta-18.11.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3588d125d58dec821524168e6c73009beee08ee21ea38dceef1a13c788d99501 |
|
MD5 | 27d9313b0fc660475a1663024f79621c |
|
BLAKE2b-256 | 0f3a1e9d3b66f6298b40fa9f476b57660d56a360221c2b4a5f7058f76eac0ceb |
Close
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 |
Close
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 |