skytracker.utils.geographic.is_country_code#

skytracker.utils.geographic.is_country_code(text: str) bool#

Check whether a code is a valid ISO 3166-1 A-2 country code

Parameters:

text (str) – text to parse

Returns:

whether text is a valid ISO 3166-1 A-2 country code

Return type:

bool