Proxy#

Class that implements a proxy (with cache support) of a Python-Blosc2 container.

This can be used to cache chunks of regular data container which follows the ProxySource or ProxyNDSource interfaces.

Methods#

__init__

Create a new Proxy to serve like a cache to save accessed chunks locally.

__getitem__

Get a slice as a numpy.ndarray using the Proxy.

fetch

Get the container used as cache with the requested data updated.

afetch

Get the container used as cache with the requested data updated in an asynchronous way.

Attributes#

shape

The shape of self

dtype

The dtype of self or None if the data is unidimensional

cparams

The compression parameters of the cache

info

The info of the cache

fields

Dictionary with the fields of self.

vlmeta

Get the vlmeta of the cache.