Skip to content

Python conversion functions between ISO country codes, countries, and continents.

License

Notifications You must be signed in to change notification settings

jefftune/pycountry-convert

Repository files navigation

Overview

docs License Status
tests Travis-CI Build Status
package PyPI Package latest release Supported versions

pycountry-convert

pycountry-convert is a Python module for TUNE Multiverse Libraries.

Installation

Usage

Using country data derived from wikipedia, this package provides conversion functions between ISO country names, country-codes, and continent names.

Available functions:

Convert country code ISO 3166-1 alpha-2 to continent name:
convert_country_alpha2_to_continent()
Convert country code ISO 3166-1 alpha-2 to country name:
convert_country_alpha2_to_country_name()
Convert country name to country code ISO 3166-1 alpha-2:
convert_country_name_to_country_alpha2()

Convert country code ISO 3166-1 alpha-3 to country code ISO 3166-1 alpha-2:

convert_country_alpha3_to_country_alpha2()

License: MIT

Reporting Issues