Numcodecs implementation of WavPack audio codec.
Project description
WavPack - numcodecs implementation
Numcodecs wrapper to the WavPack audio codec.
This implementation enables one to use WavPack as a compressor in Zarr.
Installation
Install via pip:
pip install wavpack-numcodecs
Or from sources:
git clone https://github.com/AllenNeuralDynamics/wavpack-numcodecs.git
cd wavpack_numcodecs
pip install .
Usage
This is a simple example on how to use the WavPackCodec with zarr:
from wavpack_numcodecs import WavPack
data = ... # any numpy array
# instantiate WavPack compressor
wv_compressor = WavPack(level=2, bps=None)
z = zarr.array(data, compressor=wv_compressor)
data_read = z[:]
Available **kwargs can be browsed with: WavPack?
NOTE:
In order to reload in zarr an array saved with the WavPack, you just need to have the wavpack_numcodecs package
installed.
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
File details
Details for the file wavpack_numcodecs-0.1.5.tar.gz.
File metadata
- Download URL: wavpack_numcodecs-0.1.5.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c9512b3b2a3f628d7a13691e2812eba9c182238ae90ab9cc66932cdd4d6842b
|
|
| MD5 |
f3bb1e3cdf8efe359245b3fb98d3ca4a
|
|
| BLAKE2b-256 |
099401a60be7e114cd766ab90ab00fceb4dc408460f482b7f43fad6c74fefa06
|