parse#
- dscat.adapters.parse(cfg, version)[source]#
Parse a version’s dictionary into feature rows using the configured layout.
- Parameters:
cfg (
dscat.config.DatasetConfig) – The dataset’s adapter configuration.version (
dscat.config.Version) – The version to parse; itsdictionary_pathis read.
- Returns:
listofdscat.model.FeatureRow– One row per variable found in the dictionary.dictofstrtostr– Logical table name mapped to its display title.
- Raises:
ValueError – When
cfg.layoutis neither"sheet_per_table"nor"single_sheet".- Return type:
tuple[list[TypeAliasForwardRef(’dscat.model.FeatureRow’)], dict[str, str]]