xpublish.Rest.get_dataset_from_plugins#

Rest.get_dataset_from_plugins(dataset_id=Path(Ellipsis))[source]#

Attempt to load dataset from plugins, otherwise return dataset from passed in dictionary of datasets

Parameters:

dataset_id (str) – Unique key of dataset to attempt to load from plugins or those provided to xpublish.Rest at initialization.

Return type:

Dataset

Returns:

Dataset for selected dataset_id

Raises:

FastAPI.HTTPException – When a dataset is not found a 404 error is returned.