Add Zstandard compression/decompression functionality for joblib
Project description
joblib-zstd is a plugin, which enables Zstandard (.zst) compression and decompression through joblib.dump and joblib.load.
Prerequisites
You need joblib.
Install
pip install joblib-zstd
If you failed to install, update version of pip and setuptools:
pip install -U pip setuptools
Usage
import joblib
import joblib_zstd
joblib_zstd.register()
joblib.dump({'a': 1, 'b': 2}, 'obj.zst', compress=5) # implicit compression
joblib.dump({'a': 1, 'b': 2}, 'obj.bin', compress=('zstd', 5)) # explicit compression
joblib.load('obj.zst') # implicit decompression
LISENCE
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
joblib-zstd-0.1.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for joblib_zstd-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 996b937b415807d62d7541a81b9287f27337481d43a31403135bf5dc1b6145db |
|
MD5 | 284c8b76a8c2c02392b61e20d1b865f1 |
|
BLAKE2b-256 | 806f1a2cd753b314b8c21c0d3616236e6eadd4ae0813e3d1047338d23dea409c |