[docs]defcountries_mapping(config_path):"""Get organization's country mapping. Note, only contains mappings for countries for which we source data from the organization. Returns: dict: ORG_COUNTRY_NAME -> OWID_COUNTRY_NAME """config_loader=ConfigLoader.from_yaml(config_path)returnconfig_loader.countries_mapping()
[docs]defcountries(config_path):"""List countries for which we source data from the organization. Returns: list: List of countries sourced from the organization. """config_loader=ConfigLoader.from_yaml(config_path)returnconfig_loader.config
[docs]defget_org_constants(config_file:str):"""Get organisation's constants (country + vaccine mapping) Args: config_file (str): Path to config file (YAML) Returns: tuple: Country and vaccine mapping """returncountries_mapping(config_file),vaccines_mapping(config_file)