Skip to main content

Cython-augmented Python module providing a variable-length, content-based blocking algorithm

Project description

Chop a file into variable-length, content-based chunks.

Example use: .. code-block:: python

>>> import rolling_checksum_mod
>>> # If you have both rolling_checksum_pyx_mod and rolling_checksum_py_mod installed, the software will
>>> # automatically prefer the pyx version.  Both py and pyx versions require rolling_checksum_py_mod, but
>>> # only the pyx version requires rolling_checksum_pyx_mod.
>>> with open('/tmp/big-file.bin', 'rb') as file_:
>>>     for chunk in rolling_checksum_mod.min_max_chunker(file_):
>>>         # chunk is now a piece of the data from file_, and it will not always have the same length.
>>>         # Instead, it has the property that if you insert a byte at the beginning of /tmp/big-file.bin,
>>>         # most of the chunks of the file will remain the same.  This can be nice for a deduplicating
>>>         # backup program.
>>>         print(len(chunk))

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

rolling_checksum_pyx_mod-1.1.1.tar.gz (59.1 kB view details)

Uploaded Source

File details

Details for the file rolling_checksum_pyx_mod-1.1.1.tar.gz.

File metadata

  • Download URL: rolling_checksum_pyx_mod-1.1.1.tar.gz
  • Upload date:
  • Size: 59.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.2 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

File hashes

Hashes for rolling_checksum_pyx_mod-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5b8bb9900521e7ef8fa83bfd327f6f813871fb48a7cf0dfdac0162db7ac0a96c
MD5 2b6904e90fcfab5f0d4e6651a9484173
BLAKE2b-256 366369fe060d65570c3b98b0a7f1334043caa070c9b0fc21c3db9b3020ab5ca3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page