module documentation
This module provides a set of classes which underpin the data loading and saving functionality provided by kedro.io.
Exception |
|
VersionNotFoundError raised by AbstractVersionedDataSet implementations in case of no load versions available for the data set. |
Function | generate |
Generate the timestamp to be used by versioning. |
Function | get |
Returns filepath. Returns full filepath (with protocol) if protocol is HTTP(s). |
Function | get |
Parses filepath on protocol and path. |
Function | parse |
Parse and instantiate a dataset class using the configuration provided. |
Function | validate |
Validate that string values do not include white-spaces or ; |
Constant | CLOUD |
Undocumented |
Constant | HTTP |
Undocumented |
Constant | PROTOCOL |
Undocumented |
Constant | VERSION |
Undocumented |
Constant | VERSION |
Undocumented |
Constant | VERSIONED |
Undocumented |
Function | _load |
Undocumented |
Function | _local |
Undocumented |
Function | _parse |
Split filepath on protocol and path. Based on fsspec.utils.infer_storage_options . |
Constant | _CONSISTENCY |
Undocumented |
Constant | _DEFAULT |
Undocumented |
Type Variable | _DI |
Undocumented |
Type Variable | _DO |
Undocumented |
Generate the timestamp to be used by versioning.
Returns | |
str | String representation of the current timestamp. |
Parses filepath on protocol and path.
Parameters | |
filepath:str | raw filepath e.g.: gcs://bucket/test.json . |
version:Version | instance of kedro.io.core.Version or None. |
Returns | |
Tuple[ | Protocol and path. |
Raises | |
DataSetError | when protocol is http(s) and version is not None. |
Note | HTTP(s) dataset doesn't support versioning. |
def parse_dataset_definition(config:
Dict[ str, Any]
, load_version: str
= None, save_version: str
= None) -> Tuple[ Type[ AbstractDataSet], Dict[ str, Any]]
:
(source)
¶
Parse and instantiate a dataset class using the configuration provided.
Parameters | |
config:Dict[ | Data set config dictionary. It must contain the type key
with fully qualified class name. |
loadstr | Version string to be used for load operation if the data set is versioned. Has no effect on the data set if versioning was not enabled. |
savestr | Version string to be used for save operation if the data set is versioned. Has no effect on the data set if versioning was not enabled. |
Returns | |
2-tuple | (Dataset class object, configuration dictionary) |
Raises | |
DataSetError | If the function fails to parse the configuration provided. |
Undocumented
Value |
|