Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/roy-ht/joblib-zstd

Zstandard compression/decompression plugin for joblib.
https://github.com/roy-ht/joblib-zstd

Last synced: 2 days ago
JSON representation

Zstandard compression/decompression plugin for joblib.

Awesome Lists containing this project

README

        

joblib-zstd is a plugin, which enables Zstandard (.zst) compression and decompression through joblib.dump and joblib.load.

# Prerequisites

You need [joblib](https://joblib.readthedocs.io/en/latest/).

# Install

```
pip install joblib-zstd
```

If you failed to install, update version of pip and setuptools:

```
pip install -U pip setuptools
```

# Usage

```python
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