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('abc', 'abcdef')
out = fossil_delta.apply_delta('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('abc', 'abcdef')
out = fossil_delta.apply_delta('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
python-fossil-delta-18.7.2.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for python-fossil-delta-18.7.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66f5459be2b29df2fb31fdf65079aa94bde62bba99950066e01427fda782a0c8 |
|
MD5 | c7dd68f2f485c4eaa9b0242f578c97cb |
|
BLAKE2b-256 | 0776dea2767782de0102dba3d255197d392926ce47f7ebe72a2cf173bd9fd713 |
Close
Hashes for python_fossil_delta-18.7.2-cp27-cp27m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b461613931786995d141b0d1ff883f734c41be14471e0da975c0a4de2d034879 |
|
MD5 | 21ab065889a71824e459e8d88a8969a9 |
|
BLAKE2b-256 | e1f0bca69b2021cb98a085c0f1dfbfa184da32bdb38ba24f5055aeb938d1381b |