pack()
pack_fp()
unpack()
unpack_fp()
BloscpackFile()
For compression, there can be multiple types of input and output:
- Input
file like
file name
plain string or bytes
list of buffers
Blaze interfacenumpy array
- Output
file like
e.g. cStringIO
For decompression, obviously the input and output roles are interchanged.
The pack and unpack family of functions should be callable with sensible default arguments.
The BloscpackFile
abstraction should be used for the following use-cases:
- Inspection of file settings and metadata
- Stepwise compression
- Partial decompression
Special care should be taken to avoid copying data unnecessarily