Installation#

You can install Python-Blosc2 wheels via PyPI using Pip, Conda or clone the GitHub repository.

Pip#

pip install blosc2 --upgrade

Conda#

conda install -c conda-forge python-blosc2

Source code#

git clone https://github.com/Blosc/python-blosc2/
cd python-blosc2
pip install .[test]   # install with test dependencies

That’s all. You can proceed with testing section now.

Testing#

After compiling, you can quickly check that the package is sane by running the tests:

pytest  # add -v for verbose mode

Benchmarking#

If curious, you may want to run a small benchmark that compares a plain NumPy array copy against compression through different compressors in your Blosc build:

PYTHONPATH=. python bench/pack_compress.py