Top level API#
This API is meant to be compatible with the existing python-blosc API. There could be some parameters that are called differently, but other than that, they are largely compatible.
Compress and decompress#
Compress src, with a given type size. |
|
Compress |
|
Decompresses a bytes-like compressed object. |
|
Compress |
|
Pack (compress) a Python object. |
|
Pack (compress) a NumPy array. |
|
Pack (compress) a NumPy array. |
|
Pack (compress) a TensorFlow / PyTorch tensor or a NumPy array. |
|
Unpack (decompress) an object. |
|
Restore a packed NumPy array. |
|
Unpack (decompress) a packed NumPy array via a cframe. |
|
Unpack (decompress) a packed TensorFlow / PyTorch via a cframe. |
|
Save a serialized NumPy array in urlpath. |
|
Load a serialized NumPy array in urlpath. |
|
Save a serialized PyTorch / TensorFlow tensor or NumPy array in urlpath. |
|
Load a serialized PyTorch / TensorFlow tensor or NumPy array in urlpath. |
Set / Get compression params#
Return info for compression libraries in C library. |
|
Returns a list of compressors (codecs) available in the C library. |
|
Detect the number of cores in this system. |
|
Free possible memory temporaries and thread resources. |
|
Return the name of the compression library for Blosc |
|
Number of threads to be used in compression/decompression. |
|
Print all the versions of software that python-blosc2 relies on. |
|
Register an user defined codec. |
|
Register an user defined filter. |
|
Force the use of a specific blocksize. |
|
Set the number of threads to be used during Blosc operation. |
|
Sets a boolean on whether to release the Python global inter-lock (GIL) during c-blosc compress and decompress operations or not. |
|
Set the compressor to be used. |
|
Get the current compressor that is used for compression. |
|
Get the internal blocksize to be used during compression. |
Enumerated classes#
Available codecs. |
|
Available filters. |
|
Available split modes. |
Utils#
|
|
|
Permanently remove the file or the directory given by |