Skip to main content

List of all countries with names and ISO 3166-1 codes in all languages

Project description Updates

List of all countries with names and ISO 3166-1 codes in all languages and all data formats.

  • Free software: MIT license


Get all available languages:

from country_list import available_languages
for language in available_languages():

Get country names in english and swedish:

>>> from country_list import countries_for_language
>>> # countries_for_language returns a list of tuples now, might be changed to an OrderedDict
>>> countries = dict(countries_for_language('en'))
>>> print(countries['GB'])
'United Kingdom'
>>> print(countries['SE'])
>>> countries = dict(countries_for_language('sv'))
>>> print(countries['GB'])
>>> print(countries['SE'])


This package contains the data files from umpirsky/country-list.

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for country-list, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size country_list-0.1.5-py3-none-any.whl (1.5 MB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size country_list-0.1.5.tar.gz (341.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page