Skip to content

DataType

zarrista.DataType

A Zarr v3 data type.

name property

name: str | None

The Zarr v3 data-type name (e.g. "float64").

size property

size: int | None

The fixed size in bytes, or None for variable-length data types.

from_metadata staticmethod

from_metadata(metadata: NamedConfigV3) -> DataType

Construct a data type from its Zarr v3 metadata.

from_string staticmethod

from_string(name: DataTypeName | str) -> DataType

Construct a data type from its Zarr v3 name (e.g. "float32").

zarrista.FillValue

An array's fill value, stored as native-endian bytes.

size property

size: int

The size of the fill value in bytes.

__init__

__init__(bytes: bytes) -> None

Construct a fill value from its native-endian bytes.

as_bytes

as_bytes() -> bytes

Return the fill value as native-endian bytes.

equals_all

equals_all(other: Buffer) -> bool

Whether other is entirely repetitions of this fill value.