DatasetConfig#
- class dscat.config.DatasetConfig(name, display_name, container, layout, version_pattern, dictionary_glob, columns=<factory>, skip_sheets=<factory>, sheet=None, group_by=None, fieldid_row=0, roles=<factory>, file_glob='**/*.csv', strip_version_suffix=False)[source]#
One dataset’s adapter configuration, loaded from a JSON file.
Maps a dataset’s data dictionary onto the normalised index. Built-in configs ship in
dscat/datasets; a project may override them by name with<root>/datasets/*.json.- version_pattern#
Regex with a named group
(?P<v>...)that extracts the version from each ship-folder name.- Type:
- columns#
Canonical field name mapped to header aliases; the first alias that matches a header wins.
- roles#
For
single_sheet, a role mapped to its physical folder or folders under each version directory.