FLAC - numcodecs implementation
Numcodecs wrapper to the FLAC audio codec using pyFLAC.
This implementation enables one to use FLAC as a compressor in Zarr.
Installation
Install via pip:
pip install flac-numcodecs
Or from sources:
git clone https://github.com/AllenNeuralDynamics/flac-numcodecs.git
cd flac-numcodecs
pip install .
Usage
This is a simple example on how to use the Flac codec with zarr:
from flac_numcodecs import Flac
data = ... # any numpy array
# instantiate Flac compressor
flac_compressor = Flac(level=5)
z = zarr.array(data, compressor=flac_compressor)
data_read = z[:]
Available **kwargs can be browsed with: Flac?
NOTE:
In order to reload in zarr an array saved with the Flac, you just need to have the flac_numcodecs package
installed.
Metadata
Release files for flac-numcodecs 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flac_numcodecs-0.1.2.tar.gz | 5.9 kB | Without provenance | Details for flac_numcodecs-0.1.2.tar.gz |
Release files / flac_numcodecs-0.1.2.tar.gz
| Download URL | flac_numcodecs-0.1.2.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98c88fe6af6af499866bdad93d96c7a60bb5cf95f6160fe2d410eaf648feb77d
|
|
BLAKE2b-256 checksum How to use checksums |
adf50eac341b3d9ca5ea0af4d10f55dbd57148a7da0ea4f28920b3aa4bc5d84f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for flac-numcodecs 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.