Blosc2

Latest version: v3.0.0

Safety actively analyzes 688735 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 10 of 17

2.2.4

2.2.3

* Added a new [section of tutorials](https://www.blosc.org/python-blosc2/getting_started/tutorials.html) for a quick get start.

* Added a new [section on how to cite Blosc](https://github.com/Blosc/python-blosc2/tree/main#citing-blosc).

* New method `interchunks_info` for `SChunk` and `NDArray` classes.
This iterates through chunks for getting meta info, like decompression ratio, whether the chunk is special or not, among others. For more information on how this works see [this example](https://github.com/Blosc/python-blosc2/blob/main/examples/ndarray/iterchunks_info.py).

* Now it is possible to register a dynamic plugin by passing `None` as the `encoder` and `decoder` arguments in the [register_codec](https://www.blosc.org/python-blosc2/reference/autofiles/top_level/blosc2.register_codec.html#blosc2.register_codec) function.

* Make shape of scalar slices NDArray objects to follow NumPy conventions. See [117](https://github.com/Blosc/python-blosc2/issues/117).

* Updated to latest C-Blosc2 2.9.3.

2.2.2

* Wheels are not including blosc2.pc (pkgconfig) anymore. For details see:
https://github.com/Blosc/python-blosc2/pull/111 . Thanks to bnavigator for the PR.

2.2.1

* Updated to latest C-Blosc2 2.9.1.

2.2.0

* New bytedelta filter. We have blogged about this: https://www.blosc.org/posts/bytedelta-enhance-compression-toolset/. See the examples/ndarray/bytedelta_filter.py for a sample script. We also have a short video on how bytedelta works: https://www.youtube.com/watch?v=5OXs7w2x6nw

* The compression defaults are changed to get a better balance between compression ratio, compression speed and decompression speed. The new defaults are:

- `cparams.typesize = 8`
- `cparams.clevel = 1`
- `cparams.compcode = Codec.ZSTD`
- `filters = [Filter.SHUFFLE]`
- `splitmode = SplitMode.ALWAYS_SPLIT`

These changes are based on the experiments performed in the blog post above.

* `dtype.itemsize` will have preference over typesize in cparams (as it was documented).

* `blosc2.compressor_list(plugins=False)` do not list codec plugins by default now. If you want to list plugins too, you need to pass `plugins=True`.

* Internal C-Blosc2 updated to latest version (2.8.0).

2.1.1

* New `NDArray` class for handling multidimensional arrays using compression. It includes:
- Data type handling (fully compatible with NumPy)
- Double partitioning

See examples at: https://github.com/Blosc/python-blosc2/tree/main/examples/ndarray
NDarray docs at: https://www.blosc.org/python-blosc2/reference/ndarray_api.html
Explanatory video on why double partitioning: https://youtu.be/LvP9zxMGBng
Also, see our blog on C-Blosc2 NDim counterpart: https://www.blosc.org/posts/blosc2-ndim-intro/

* Internal C-Blosc2 bumped to latest 2.7.1 version.

Page 10 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.