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§
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.