Country

babelfish.country.COUNTRIES

Country code to country name mapping

babelfish.country.COUNTRY_MATRIX

List of countries in the ISO-3166-1 as namedtuple of alpha2 and name

class babelfish.country.CountryConverterManager

ConverterManager for country converters

babelfish.country.COUNTRY_CONVERTERS

Instance of CountryConverterManager

class babelfish.country.CountryMeta

The Country metaclass

Dynamically redirect Country.frommycode() to Country.fromcode() with the mycode converter

class babelfish.country.Country(country)

A country on Earth

A country is represented by a 2-letter code from the ISO-3166 standard

Parameters:country (string) – 2-letter ISO-3166 country code
alpha2 = None

ISO-3166 2-letter country code

classmethod fromcode(code, converter)

Create a Country by its code using converter to reverse() it

Parameters:
Returns:

the corresponding Country instance

Return type:

Country

BabelFish

BabelFish is a Python library to work with countries and languages.

PyPI downloads

Donate

If you like babelfish, please consider making a donation

Related Topics

This Page

Fork me on GitHub