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 the given source data with specified parameters. |
|
Compress the given |
|
Decompresses a bytes-like compressed object. |
|
Decompress the given |
|
Pack (compress) a Python object. |
|
Pack (compress) a NumPy array. |
|
Pack (compress) a NumPy array. |
|
Pack (compress) a TensorFlow or PyTorch tensor or a NumPy array. |
|
Unpack (decompress) an object. |
|
Restore a packed NumPy array. |
|
Unpack (decompress) a packed NumPy array from a cframe. |
|
Unpack (decompress) a packed TensorFlow or PyTorch tensor or a NumPy array from a cframe. |
|
Save a serialized NumPy array to a specified file path. |
|
Load a serialized NumPy array from a file. |
|
Save a serialized PyTorch or TensorFlow tensor or NumPy array to a specified file path. |
|
Load a serialized PyTorch or TensorFlow tensor or NumPy array from a file. |
Set / Get compression params#
Return information about the compression libraries in the C library. |
|
Returns a list of compressors (codecs) available in the C library. |
|
Detect the number of cores in this system. |
|
Free any temporary memory 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 a user defined codec. |
|
Register a user-defined filter. |
|
Force the use of a specific blocksize. |
|
Set the number of threads to be used during Blosc operations. |
|
Set 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 used for compression. |
|
Get the internal blocksize to be used during compression. |
|
Get the sizes of a compressed src buffer. |
|
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 obtain a slice of a SChunk or a NDArray. |
|
Open a persistent SChunk, NDArray, a remote C2Array or a Proxy |
|
Permanently remove the file or the directory specified by |
Utility variables#
The blosc2 version + date. |
|
Maximum possible Blosc2-defined codec id. |
|
Maximum possible Blosc2 global registered codec id. |
|
Maximum possible Blosc2 user registered 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. |