---
title: "blosc2 | pypx"
description: "A fast & compressed ndarray library with a flexible compute engine."
canonical_url: "https://pypx.app/packages/blosc2"
meta:
  "og:description": "A fast & compressed ndarray library with a flexible compute engine."
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_blosc2%2Cversion_4.16.1%2Csummary_~QSBmYXN0ICYgY29tcHJlc3NlZCBuZGFycmF5IGxpYnJhcnkgd2l0aCBhIGZsZXhpYmxlIGNvbXB1dGUgZW5naW5lLg%2Clicense_BSD-3-Clause%2Cp_Ii9wYWNrYWdlcy9ibG9zYzIi%2Cs_2wgGy3uyiltwHEUD.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "blosc2 4.16.1"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_blosc2%2Cversion_4.16.1%2Csummary_~QSBmYXN0ICYgY29tcHJlc3NlZCBuZGFycmF5IGxpYnJhcnkgd2l0aCBhIGZsZXhpYmxlIGNvbXB1dGUgZW5naW5lLg%2Clicense_BSD-3-Clause%2Cp_Ii9wYWNrYWdlcy9ibG9zYzIi%2Cs_2wgGy3uyiltwHEUD.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **blosc2**

v4.16.1

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

3.2 MB Python 3.11+ platform-specificBSD-3-Clause7 deps

[**Diff **](https://pypx.app/packages/blosc2/diff)

`$ uv add 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:  :PyPi:  :NumFOCUS:  :Code of Conduct:

# 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`) and columnar tables (`CTable`), complemented by 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.

[miniexpr](https://github.com/Blosc/miniexpr) is embedded as the compute engine backend. It delivers fast multithreaded evaluation for lazy expressions directly over compressed chunks, and powers **Menudet**, a little language for portable, JIT-accelerated array (and table columns) kernels that can be serialized on a architecture-independent way.

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:

```console
pip install blosc2 --upgrade
```

Conda users can install from conda-forge:

```console
conda install -c conda-forge python-blosc2
```

Python-Blosc2 4.16 requires C-Blosc2 3.7.0 or newer. Wheels bundle the native library; source builds using USE\_SYSTEM\_BLOSC2 must provide compatible headers and libraries.

# 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/guides/b2view.html); requires pip install "blosc2\[tui]").

- parquet-to-blosc2: converts Parquet files to Blosc2 columnar table

stores, and back ([walkthrough](https://www.blosc.org/python-blosc2/guides/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/).

# 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.

![JetBrains logo.](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg)

# Citing Blosc

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

```console
@ONLINE{blosc,
  author = {{Blosc Development Team}},
  title = "{A fast, compressed and persistent data store library}",
  year = {2009-2026},
  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**

## **Details **

<dl>

<dt>Version</dt>
<dd>4.16.1</dd>

<dt>License</dt>
<dd>BSD-3-Clause</dd>

<dt>Python</dt>
<dd>&gt;=3.11</dd>

<dt>Maintainer</dt>
<dd>Blosc Development Team &lt;blosc@blosc.org&gt;</dd></dl>

## **Links**

- [documentation](https://www.blosc.org/python-blosc2/python-blosc2.html)
- [homepage](https://github.com/Blosc/python-blosc2)
- [View on PyPI](https://pypi.org/project/blosc2/)

## **Release Cadence **

**36**

releases in the past year

avg 18 days between releases

## **Platforms **

linuxarm64mac-x86mac-armwin

## **Maintainers **

- Blosc Development Team · [blosc@blosc.org](mailto:blosc@blosc.org)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/blosc2#webpage","@type":"WebPage","description":"A fast & compressed ndarray library with a flexible compute engine.","name":"blosc2","url":"https://pypx.app/packages/blosc2","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/blosc2"]}]},{"@id":"https://pypx.app/packages/blosc2#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"A fast & compressed ndarray library with a flexible compute engine.","license":"BSD-3-Clause","name":"blosc2","softwareVersion":"4.16.1"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
