Release 0.1.1
Pre-releaseInitial 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_ptranddecompress_ptr
are replaced by pack and unpack since
Pickle protocol 5 comes with out-of-band data. -
The function
pack_arrayis equivalent topack,
which accepts any object with attributesitemsize
andsize. -
On the other hand, the function
unpackdoesn't
return a numpy array whereas theunpack_array
builds that array. -
The
blosc.NOSHUFFLEis replaced
by theblosc2.NOFILTER, but for backward
compatibilityblosc2.NOSHUFFLEstill exists. -
A bytearray or NumPy object can be passed to
theblosc2.decompressfunction to store the
decompressed data.