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.5.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for python-fossil-delta-18.7.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db4b0fbda00daddaf0f8d9a7f02ca1cc0f84a50339521444756b7549c97c2c41 |
|
MD5 | cfa6f5805517891d00e4e3356fdb626b |
|
BLAKE2b-256 | 3d9e54c83c4e0cb1cea19eba70d59fac438880cf57dfb48342e455ba360ab974 |
Close
Hashes for python_fossil_delta-18.7.5-cp27-cp27m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93844628a6bbca68a6323025a10ba16f45cf5ac0e540676b4e3f5b40e1a64490 |
|
MD5 | 0c795cda93eb1bade0d8296020058d79 |
|
BLAKE2b-256 | cb415f686cf9164f12c31b1e2b236e68027028b79d2e27943db038aa4f88ff85 |