plaid.storage.registry

Backend registry for plaid.storage.

This module centralizes backend wiring so reader/writer code can use a single source of truth for backend capabilities.

Attributes

Classes

BackendSpec

Backend wiring for storage operations.

Functions

available_backends(→ list[str])

Return available backend names in stable order.

get_backend(→ BackendSpec)

Return the backend spec for a given name.

Module Contents

class BackendSpec[source]

Backend wiring for storage operations.

name: str[source]
init_from_disk: Callable[[str | pathlib.Path], plaid.storage.cgns.reader.CGNSDatasetDict | plaid.storage.hf_datasets.reader.HFDatasetDict | plaid.storage.zarr.reader.ZarrDatasetDict][source]
download_from_hub: Callable[Ellipsis, str][source]
init_streaming_from_hub: Callable[Ellipsis, dict[str, datasets.IterableDataset] | datasets.IterableDatasetDict][source]
generate_to_disk: Callable[Ellipsis, None][source]
push_local_to_hub: Callable[Ellipsis, None][source]
configure_dataset_card: Callable[Ellipsis, None][source]
to_var_sample_dict: Callable[Ellipsis, dict[str, Any]] | None[source]
sample_to_var_sample_dict: Callable[Ellipsis, dict[str, Any]] | None[source]
BACKENDS[source]
available_backends() list[str][source]

Return available backend names in stable order.

get_backend(name: str) BackendSpec[source]

Return the backend spec for a given name.