Crate cramjam[−][src]
CramJam documentation of python exported functions for (de)compression of bytes
The API follows cramjam.<<compression algorithm>>.compress
and cramjam.<<compression algorithm>>.decompress
Python Example:
data = b'some bytes here'
compressed = cramjam.snappy.compress(data)
decompressed = cramjam.snappy.decompress(compressed)
assert data == decompressed
Modules
brotli | |
deflate | |
exceptions | |
gzip | |
lz4 | |
snappy | |
zstd |
Macros
generic | |
generic_into | Expose de/compression_into(data: BytesType<'_>, array: &PyArray1 |
to_py_err |
Structs
WriteablePyByteArray | A wrapper to PyByteArray, providing the std::io::Write impl |
Enums
BytesType |
Functions
PyInit_cramjam⚠ | This autogenerated function is called by the python interpreter when importing the module. |