Skip to content

Release 0.1.1

Pre-release
Pre-release

Choose a tag to compare

@martaiborra martaiborra released this 10 May 09:16
· 2949 commits to main since this release

Initial release

python-blosc2 aims to leverage the new C-Blosc2 API so as to support super-chunks, serialization and all the features introduced in C-Blosc2. This is work in process and will be done incrementally in future releases.

Note: python-blosc2 is meant to be backward compatible with python-blosc data. That means that it can read data generated with python-blosc, but the opposite is not true (i.e. there is no forward compatibility).

Changes from python-blosc to python-blosc2

  • The functions compress_ptr and decompress_ptr
    are replaced by pack and unpack since
    Pickle protocol 5 comes with out-of-band data.

  • The function pack_array is equivalent to pack,
    which accepts any object with attributes itemsize
    and size.

  • On the other hand, the function unpack doesn't
    return a numpy array whereas the unpack_array
    builds that array.

  • The blosc.NOSHUFFLE is replaced
    by the blosc2.NOFILTER, but for backward
    compatibility blosc2.NOSHUFFLE still exists.

  • A bytearray or NumPy object can be passed to
    the blosc2.decompress function to store the
    decompressed data.