Version#

class dscat.config.Version(dataset, version, ship_folder, version_dir, dictionary_path)[source]#

One discovered version of a dataset: a vendor ship folder.

dataset#

Dataset id.

Type:

str

version#

Version id parsed from the ship-folder name.

Type:

str

ship_folder#

Name of the vendor folder under data/<container>/.

Type:

str

version_dir#

Absolute path to that folder.

Type:

pathlib.Path

dictionary_path#

Path to the data dictionary, or None when none was found.

Type:

pathlib.Path or None

property sort_key: tuple[int, tuple[int, ...], str]#

Return the key that orders this version (latest compares greatest).