Proxy#

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

This can be used to cache chunks of a regular data container which follows the ProxySource interface in an urlpath.

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

fields

Dictionary with the fields of self.

vlmeta

Get the vlmeta of the cache.