MODULE REFERENCE
platform
anomx.data.sources.platformDataset API semantics, kept separate from the generic HTTP transport.
PlatformDatasetClient
PlatformDatasetClient(client: PlatformClient, *, channels_path: str | None = None)Adapt a generic PlatformClient to the data domain's DatasetClient contract.
Dataset resolution, versioned batches, channel loading, and response shapes belong here. The HTTP client only sends requests. Both unversioned /api and grouped /api/v1 routes are supported.
| Parameter | Type | Default |
|---|---|---|
client | PlatformClient | required |
channels_pathkeyword only | str | None | None |
Members
cache_namespaceproperty
cache_namespace: strPartition cached data by server and authorization, without storing a token.
Returns str
describe_datasetmethod
describe_dataset(reference: str) -> dict[str, Any]Resolve a dataset definition without loading its observations.
| Parameter | Type | Default |
|---|---|---|
reference | str | required |
Returns dict[str, Any]
describe_dataset_selectionmethod
describe_dataset_selection(reference: str, *, selection: dict[str, Any]) -> dict[str, Any]Resolve a server-filtered view and require explicit host support.
Older servers may ignore unknown query arguments. Never accept such a response as a filtered dataset: the capability and effective selection must be present before any observation request is sent.
| Parameter | Type | Default |
|---|---|---|
reference | str | required |
selectionkeyword only | dict[str, Any] | required |
Returns dict[str, Any]
dataset_sourcesmethod
dataset_sources(reference: str, *, version: str, offset: int = 0, limit: int = 100) -> dict[str, Any]Read one page of pinned source metadata, including named variables.
| Parameter | Type | Default |
|---|---|---|
reference | str | required |
versionkeyword only | str | required |
offsetkeyword only | int | 0 |
limitkeyword only | int | 100 |
Returns dict[str, Any]
read_datasetmethod
read_dataset(reference: str, *, version: str, cursor: str | None = None, limit: int = 5000) -> dict[str, Any]Read a bounded batch pinned to an explicitly resolved source version.
| Parameter | Type | Default |
|---|---|---|
reference | str | required |
versionkeyword only | str | required |
cursorkeyword only | str | None | None |
limitkeyword only | int | 5000 |
Returns dict[str, Any]
load_channelsmethod
load_channels(channels: Sequence[str], *, start: str | None = None, end: str | None = None, frequency: str | None = None) -> objectLoad aligned channel records using the data domain's channel endpoint.
| Parameter | Type | Default |
|---|---|---|
channels | Sequence[str] | required |
startkeyword only | str | None | None |
endkeyword only | str | None | None |
frequencykeyword only | str | None | None |
Returns object