Skip to main content

PyPI version tests

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)

Source distribution for flac-numcodecs 0.1.2
File Size Uploaded
flac_numcodecs-0.1.2.tar.gz 5.9 kB Details

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

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page