Skip to main content

Module countries

Module countries 

Source
Expand description

Centralized registry of ISO 3166-1 alpha-2 country codes and names. This list covers 250+ countries and territories supported by the library.

Structs§

CountryInfo
TerritoryAlias

Constants§

ALL_COUNTRIES
A comprehensive list of all supported ISO 3166-1 alpha-2 country codes and names.
TERRITORY_ALIASES
Maps territories and dependencies to their parent sovereign state for identifier resolution.

Functions§

all_codes
Returns all supported ISO 3166-1 alpha-2 codes.
get_country_name
Returns the name of a country by its ISO code, or None if not found.
is_supported
Returns true if the ISO code is supported.
resolve_territory
Returns the parent country code for a territory, if applicable.