Python-Blosc2
A Python wrapper for the extremely fast Blosc2 compression library
- Author:
The Blosc development team
- Contact:
- Github:
- Actions:
- PyPi:
- NumFOCUS:
- Code of Conduct:
What it is
C-Blosc2 is the new major version of C-Blosc, and is backward compatible with both the C-Blosc1 API and its in-memory format.
Python-Blosc2 is a Python package that wraps C-Blosc2, the newest version of the Blosc compressor. Currently Python-Blosc2 already reproduces the API of Python-Blosc, so it can be used as a drop-in replacement. However, there are a few exceptions for a full compatibility.
In addition, Python-Blosc2 aims to leverage the new C-Blosc2 API so as to support super-chunks, multi-dimensional arrays (NDArray), serialization and other bells and whistles introduced in C-Blosc2. Although this is always and endless process, we are have almost catched up with the full C-Blosc2 potential (with the convenience of Python :-).
Note: Python-Blosc2 is meant to be backward compatible with Python-Blosc data. That means that it can read data generated with Python-Blosc, but the opposite is not true (i.e. there is no forward compatibility).
NDArray: an N-Dimensional store
One of the latest and more exciting additions in Python-Blosc2 is the NDArray object. It can write and read n-dimensional datasets in an extremely efficient way thanks to a n-dim 2-level partitioning, allowing to slice and dice arbitrary large and compressed data in a more fine-grained way:
To wet you appetite, here it is how the NDArray object performs on getting slices orthogonal to the different axis of a 4-dim dataset:
We have blogged about this: https://www.blosc.org/posts/blosc2-ndim-intro
We also have a explanatory video on why the double partition is useful (~2 min).
Installing
Blosc is now offering Python wheels for the main OS (Win, Mac and Linux) and platforms. You can install binary packages from PyPi using pip:
pip install blosc2
Documentation
The documentation is here:
https://blosc.org/python-blosc2/python-blosc2.html
Also, some examples are available on:
Building from sources
python-blosc2 comes with the C-Blosc2 sources with it and can be built in-place:
git clone https://github.com/Blosc/python-blosc2/
cd python-blosc2
git submodule update --init --recursive
python -m pip install -r requirements-build.txt
python setup.py build_ext --inplace
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:
python -m pip install -r requirements-tests.txt
python -m 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
License
The software is licenses under a 3-Clause BSD license. A copy of the python-blosc2 license can be found in LICENSE.txt.
Mailing list
Discussion about this module is welcome in the Blosc list:
Please follow @Blosc2 to get informed about the latest developments.
Enjoy data!
Metadata
Release files for blosc2 2.1.1
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 |
|---|---|---|---|---|
| blosc2-2.1.1.tar.gz | 4.3 MB | Without provenance | Details for blosc2-2.1.1.tar.gz |
Built distributions (wheels)
Total release size: 76.3 MB
Release files / blosc2-2.1.1.tar.gz
| Download URL | blosc2-2.1.1.tar.gz |
|---|---|
| Size | 4.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7a1bd416694fec75fcfa8f0fe64f7f0bd034d9323d8f84255ef8d239f5e002d
|
|
BLAKE2b-256 checksum How to use checksums |
861cf602ccfae6de9640430054c99a0e4f715134c203d7b54f482b0775289ef5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp311-cp311-win_amd64.whl
| Download URL | blosc2-2.1.1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f684b4a6ee21b035c48c8d722f0811fedd4bac7a8c675c24822213a2a4970b77
|
|
BLAKE2b-256 checksum How to use checksums |
31075ff7b82ec53e5d5005c7d901c5a1dbde1c4d917dc7da5da7ee8a0b2f03cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | blosc2-2.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
ef88da66bcafb790cd95154bb74798624a8d2c2032ef1391048501b60942cc6f
|
|
BLAKE2b-256 checksum How to use checksums |
115699120b57fb7f22f40b99edb0642ad3e8a00919da4d210f562b21a68baf14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | blosc2-2.1.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
668329c3cd96ca331c04c17ccccdba5b15906a37da68a2d856ae3dc78b7bb743
|
|
BLAKE2b-256 checksum How to use checksums |
4ad8d7b98b186c22c414d0ecf056f4da6545a58412210424fbc091c64485e56c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | blosc2-2.1.1-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
156dbdb3af410895ee5af5dc1e43e18a4fa3e2b7116d22f04cc409a629f3e221
|
|
BLAKE2b-256 checksum How to use checksums |
9eea6fb20023b789414b460db77c545d831d2b82c92089f833f1f0d0f431313b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp311-cp311-macosx_10_9_x86_64.whl
| Download URL | blosc2-2.1.1-cp311-cp311-macosx_10_9_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.11 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
5a0f4325574cf92c4bd978dc7d51a7d69f0b4d0d85792f3582bccb3bb49a111d
|
|
BLAKE2b-256 checksum How to use checksums |
d23bf9bff020d84533cc47db7f2ed007dd2640622f8ae4c0ff4f800e80375cb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp310-cp310-win_amd64.whl
| Download URL | blosc2-2.1.1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
fd6110a98d996d0a039ec2ff3e550dd0841b2ebac2234c5f7cb607c6c0b56e97
|
|
BLAKE2b-256 checksum How to use checksums |
2d62a5a885ef3378263340baa056a924670dba1efce410048cfd03c8b208f615
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | blosc2-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
baaca702364a7b7b512e831302d7eb68858a528c3eabbb963f4134a465237b5e
|
|
BLAKE2b-256 checksum How to use checksums |
c1935d1d3c3d584e2416fab605a8d7c7c9cbd569d169c4ad280c9745a1fbbe68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | blosc2-2.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
dee0d78d5c49862611107e5cbe37dadd0e226dd54fbc55ea52453e67c74a262d
|
|
BLAKE2b-256 checksum How to use checksums |
41df41e2ed0ec464b6591db9788b4efa069608159d2f6b3f8de1d1cea60ac9c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | blosc2-2.1.1-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7dcaaad67f099f3952da34faba98129c8905657854ce69acc01692869631bedc
|
|
BLAKE2b-256 checksum How to use checksums |
45f9eb3341f608fb12c55845f98d065dde55e58dea0a7c98171eb2e4ffcda24c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp310-cp310-macosx_10_9_x86_64.whl
| Download URL | blosc2-2.1.1-cp310-cp310-macosx_10_9_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.10 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
7383cd89a41bd22148950e180ca72e3461bf57559e64f57abc5b1cc3e9568089
|
|
BLAKE2b-256 checksum How to use checksums |
627a10d4b2d9318a99ed84f076f587038b17021b94acbb6123fab087e203d561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp39-cp39-win_amd64.whl
| Download URL | blosc2-2.1.1-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
350c892b2a9856bcef3e303f7587f80ea34875e2792f5ce646f0a8b4ce5f8fd4
|
|
BLAKE2b-256 checksum How to use checksums |
9543556b7bc601cb4a1c157c9aa1570a9766f8be903f38801464435e8c9fdea8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | blosc2-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
7bd1a68b5b3c1f101019ac3fb3a78afe9009d59234ea2766a13cfd52a668a7cf
|
|
BLAKE2b-256 checksum How to use checksums |
1aaebc35674172a1677eee232eee9ac2ba5b2d890ec61c8f2b8be152d6933ff7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | blosc2-2.1.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
112107148815454f7e3be3234c0e22768c3928984cd5a4121db8c94ea2d18648
|
|
BLAKE2b-256 checksum How to use checksums |
b6da3af279146746276c58a55bec60f2a92b3095b489544ceca800bf4d963531
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | blosc2-2.1.1-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a66f0da2bcb35553816a694208409e510c82f589e8f1fdb54ab158c42331f177
|
|
BLAKE2b-256 checksum How to use checksums |
d571da72832f1f27e3a81aab35dc6da8992bc89019a168827fe6c95b2d7661c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp39-cp39-macosx_10_9_x86_64.whl
| Download URL | blosc2-2.1.1-cp39-cp39-macosx_10_9_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.9 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
41d66a1f927ab2967adf9f316d7b3bfe494a9ad9a3145036a4755c1124259154
|
|
BLAKE2b-256 checksum How to use checksums |
7f75cbfb1e51d51d93d619a853077e4a3da26e608f6084bb1ac098b23983ccad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp38-cp38-win_amd64.whl
| Download URL | blosc2-2.1.1-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4895a5b0ea9522351764c1d8a870c95341447027030e32cb7e5e17ae99e39053
|
|
BLAKE2b-256 checksum How to use checksums |
ff64ae8d74cd296062716b05f64535bbe8e009f55a6411014360bdc6a76b60e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | blosc2-2.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e96060365d28db1eb6f40d6972c94d8910b4e38bd418735ddcf8a86005a6e868
|
|
BLAKE2b-256 checksum How to use checksums |
22fae14568bb646dcb19fe7913312a3f22fcaaf1d108810dba430183d3841aac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | blosc2-2.1.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
437ecd4bf6a3b0ae2442593d5139e9eed194e6c4b71de910093529584dfc4b87
|
|
BLAKE2b-256 checksum How to use checksums |
f98c0eb647994c7d0ca773fe4dc443e10696cacd0415383f857044f647ec42ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp38-cp38-macosx_11_0_arm64.whl
| Download URL | blosc2-2.1.1-cp38-cp38-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.8 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c641ab5e59b59e7de2ae95fa126bf5572f5a7530564765efdaf9ea359d7440e9
|
|
BLAKE2b-256 checksum How to use checksums |
5e43435ed57196e79ee245383012808b810a6247ebb94f32364981a9d54eb255
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / blosc2-2.1.1-cp38-cp38-macosx_10_9_x86_64.whl
| Download URL | blosc2-2.1.1-cp38-cp38-macosx_10_9_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.8 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
7e11c61a1e298735efecde4a8c8739636a07ec822af68c85dc572935ea291065
|
|
BLAKE2b-256 checksum How to use checksums |
0df239a9bdab8513f9e6190eb4bb524025bec6592c715a09421e3f39e57fdb07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Security for blosc2 2.1.1
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.