blosc2

A fast & compressed ndarray library with a flexible compute engine.

99 个版本 Python >=3.11
安装
pip install blosc2
poetry add blosc2
pipenv install blosc2
conda install blosc2
描述

============= Python-Blosc2

A fast & compressed ndarray library with a flexible compute engine

:Author: The Blosc development team :Contact: blosc@blosc.org :Github: https://github.com/Blosc/python-blosc2 :Actions: |actions| :PyPi: |version| :NumFOCUS: |numfocus| :Code of Conduct: |Contributor Covenant|

.. |version| image:: https://img.shields.io/pypi/v/blosc2.svg :target: https://pypi.python.org/pypi/blosc2 .. |Contributor Covenant| image:: https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg :target: https://github.com/Blosc/community/blob/master/code_of_conduct.md .. |numfocus| image:: https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A :target: https://numfocus.org .. |actions| image:: https://github.com/Blosc/python-blosc2/actions/workflows/build.yml/badge.svg :target: https://github.com/Blosc/python-blosc2/actions/workflows/build.yml

What is Python-Blosc2?

Python-Blosc2 is a high-performance compressor, compute engine, and format for binary data containers that are portable and open-source. It comes with a lazy expression engine allowing for complex calculations on compressed data, whether stored in memory, on disk, or over the network (e.g., via Caterva2 <https://github.com/ironArray/Caterva2>_). It is especially optimized for storing and retrieving data from N-dimensional arrays (NDArray), columnar tables (CTable), and a query/indexing layer. The main use case is fast, compressed, out-of-core numerical data — especially when data is too large to fit comfortably in RAM.

C-Blosc2 <https://www.blosc.org/c-blosc2/c-blosc2.html>_ is used under the hood as its compression backend. Written in C, and building on its predecessor C-Blosc <https://github.com/Blosc/c-blosc>_, C-Blosc2 aims to be an extremely fast meta-compressor for binary data, supporting a diverse set of strategies, and with an extensible plugin architecture for a wide range of codecs and filters.

More info: https://www.blosc.org/python-blosc2/getting_started/overview.html

Installing

Binary packages are available for major OSes (Win, Mac, Linux) and platforms. Install from PyPi using pip:

.. code-block:: console

pip install blosc2 --upgrade

Conda users can install from conda-forge:

.. code-block:: console

conda install -c conda-forge python-blosc2

Command line tools

Two CLI tools are installed along with the package:

  • b2view: an interactive terminal browser (TUI) for TreeStore bundles (.b2d directories or .b2z files), with paged views of NDArray and CTable data of any size (walkthrough <https://www.blosc.org/python-blosc2/getting_started/b2view.html>_).
  • parquet-to-blosc2: converts Parquet files to Blosc2 columnar table stores, and back (walkthrough <https://www.blosc.org/python-blosc2/getting_started/parquet_to_blosc2.html>_; requires pip install "blosc2[parquet]").

Documentation

The documentation is available here:

https://blosc.org/python-blosc2/python-blosc2.html

You can find examples at:

https://github.com/Blosc/python-blosc2/tree/main/examples

A tutorial from PyData Global 2025 is available at:

https://github.com/Blosc/PyData-Global-2025-Tutorial

(Click here <https://www.youtube.com/watch?v=tUvSI3EpTBQ&list=PLGVZCDnMOq0qmerwB1eITnr5AfYRGm0DF&index=81>_ to watch the video recording of the tutorial)

It contains Jupyter notebooks explaining the main features of Python-Blosc2.

License

This software is licensed under a 3-Clause BSD license. A copy of the python-blosc2 license can be found in LICENSE.txt <https://github.com/Blosc/python-blosc2/tree/main/LICENSE.txt>_.

Discussion forum

Discussion about this package is welcome at:

https://github.com/Blosc/python-blosc2/discussions

Social feeds

Stay informed about the latest developments by following us in Mastodon <https://fosstodon.org/@Blosc2>, Bluesky <https://bsky.app/profile/blosc.org> or LinkedIn <https://www.linkedin.com/company/88381936/admin/dashboard/>_.

Thanks

Blosc2 is supported by the NumFOCUS foundation <https://numfocus.org>, the LEAPS-INNOV project <https://www.leaps-innov.eu> and ironArray SLU <https://ironarray.io>_, among many other donors. This allowed the following people to have contributed in an important way to the core development of the Blosc2 library:

  • Francesc Alted
  • Marta Iborra
  • Luke Shaw
  • Aleix Alcacer
  • Oscar Guiñón
  • Juan David Ibáñez
  • Ivan Vilata i Balaguer
  • Oumaima Ech.Chdig
  • Ricardo Sales Piquer

In addition, other people have participated in the project in different aspects:

  • Jan Sellner, contributed the mmap support for NDArray/SChunk objects.
  • Dimitri Papadopoulos, contributed a large bunch of improvements to many aspects of the project. His attention to detail is remarkable.
  • And many others that have contributed with bug reports, suggestions and improvements.

Developed using JetBrains IDEs.

.. image:: https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg :target: https://jb.gg/OpenSource :alt: JetBrains logo.

Citing Blosc

You can cite our work on the various libraries under the Blosc umbrella as follows:

.. code-block:: console

@ONLINE{blosc, author = {{Blosc Development Team}}, title = "{A fast, compressed and persistent data store library}", year = {2009-2025}, note = {https://blosc.org} }

Support Blosc for a Sustainable Future

If you find Blosc useful and want to support its development, please consider making a donation or contract to the Blosc Development Team <https://www.blosc.org/pages/blosc-in-depth/#support-blosc>_. Thank you!

Compress Better, Compute Bigger

版本列表
4.5.1 2026-06-17
4.5.0 2026-06-15
4.4.5 2026-06-12
4.4.4 2026-06-12
4.4.3 2026-06-10
4.4.2 2026-06-04
4.4.1 2026-06-02
4.3.3 2026-05-21
4.3.1 2026-05-19
4.3.0 2026-05-18
4.2.0 2026-05-07
4.1.2 2026-03-03
4.1.1 2026-03-02
4.1.0 2026-02-28
4.0.0 2026-01-29
4.0.0b1 2026-01-22
3.12.2 2025-12-04
3.12.1 2025-12-03
3.12.0 2025-12-02
3.11.1 2025-11-16
3.11.0 2025-10-28
3.10.2 2025-10-15
3.10.1 2025-10-13
3.10.0 2025-10-08
3.9.1 2025-10-01
3.9.0 2025-09-26
3.8.0 2025-09-11
3.7.2 2025-08-19
3.7.1 2025-08-17
3.7.0 2025-08-12
3.6.1 2025-07-17
3.6.0 2025-07-17
3.5.1 2025-07-02
3.5.0 2025-06-24
3.4.0 2025-06-13
3.3.4 2025-05-22
3.3.3 2025-05-14
3.3.2 2025-05-01
3.3.1 2025-04-20
3.3.0 2025-04-08
3.2.1 2025-03-26
3.2.0 2025-02-27
3.1.1 2025-02-14
3.1.0 2025-02-13
3.0.0 2024-12-12
3.0.0rc3 2024-12-10
3.0.0rc2 2024-12-02
3.0.0rc1 2024-11-28
3.0.0b4 2024-10-02
3.0.0b3 2024-08-29
3.0.0b1 2024-06-21
2.7.1 2024-07-30
2.7.0 2024-06-20
2.6.2 2024-04-06
2.6.1 2024-04-04
2.6.0 2024-04-01
2.5.1 2024-01-25
2.5.0 2024-01-24
2.4.0 2023-12-28
2.3.2 2023-12-01
2.3.1 2023-11-08
2.3.0 2023-11-08
2.2.9 2023-10-05
2.2.8 2023-09-27
2.2.7 2023-09-13
2.2.6 2023-08-01
2.2.5 2023-07-04
2.2.4 2023-06-21
2.2.3 2023-05-18
2.2.2 2023-05-11
2.2.1 2023-05-10
2.2.0 2023-04-04
2.1.1 2023-02-24
2.1.0 2023-02-24
2.0.0 2022-12-20
0.6.6 2022-12-15
0.6.5 2022-12-10
0.6.4 2022-12-09
0.6.3 2022-12-09
0.6.2 2022-12-08
0.6.1 2022-11-30
0.5.2 2022-10-23
0.5.1 2022-10-12
0.4.1 2022-10-03
0.4.0 2022-10-01
0.3.2 2022-08-24
0.3.1 2022-08-18
0.3.0 2022-07-06
0.2.0 2021-10-07
0.1.10 2021-07-10
0.1.9 2021-06-29
0.1.8 2021-06-22
0.1.7 2021-05-26
0.1.6 2021-05-26
0.1.5 2021-05-14
0.1.4 2021-05-14
0.1.3 2021-05-14
0.1.2 2021-05-14
0.1.1 2021-05-10