cosmel.repo.brand module¶
-
class
cosmel.repo.brand.Brand(aliases)[source]¶ Bases:
collections.abc.SequenceThe brand object (contains list of brand aliases).
- Item: the brand alias (str).
Parameters: aliases (list) – the brand aliases.
-
class
cosmel.repo.brand.BrandSet(repo_root)[source]¶ Bases:
collections.abc.CollectionThe set of brands.
- Item: the brand object (
Brand).
Parameters: repo_root (str) – the path to the folder containing data files. - Item: the brand object (
-
class
cosmel.repo.brand.BName2Brand(brand_set)[source]¶ Bases:
collections.abc.MappingThe dictionary maps brand name to brand object.
- Key: the brand name (str).
- Item: the brand object (
Brand).
Parameters: brand_set ( BrandSet) – the brand set.