cosmel.repo.brand module

class cosmel.repo.brand.Brand(aliases)[source]

Bases: collections.abc.Sequence

The 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.Collection

The set of brands.

  • Item: the brand object (Brand).
Parameters:repo_root (str) – the path to the folder containing data files.
class cosmel.repo.brand.BName2Brand(brand_set)[source]

Bases: collections.abc.Mapping

The dictionary maps brand name to brand object.

  • Key: the brand name (str).
  • Item: the brand object (Brand).
Parameters:brand_set (BrandSet) – the brand set.