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 |
|
int([x]) -> integer int(x, base=10) -> integer |
|
Print all the versions of software that python-blosc2 relies on. |
|
Register a 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. |
|
Get the sizes of a compressed src buffer. |
|
Compression params defaults. |
|
Decompression params defaults. |
|
Storage params defaults. |
Enumerated classes#
Available codecs. |
|
Available filters. |
|
Possible special values in a chunk. |
|
Available split modes. |
|
Available tuners. |
Utils#
|
Compute educated guesses for chunks and blocks of a NDArray. |
|
Get the unidimensional chunk indexes needed to get a slice of a SChunk or a NDArray. |
|
|
|
Permanently remove the file or the directory given by |
Utility variables#
The blosc2 version + date. |
|
Maximum possible Blosc2-defined codec id. |
|
Blosc2 extended header length in bytes. |
|
Maximum buffer size in bytes for a Blosc2 chunk. |
|
Maximum overhead during compression (in bytes). |
|
Blosc2 maximum type size (in bytes). |
|
Blosc2 minimum header length (in bytes). |
|
Registry for prefilter functions. |
|
Registry for postfilter functions. |
|
Registry for user-defined codecs. |
|
Registry for user-defined filters. |
|
The C-Blosc2 version's date. |
|
The C-Blosc2 version's string. |
|
Python-Blosc2 version. |