Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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

Project description

https://img.shields.io/pypi/v/country_list.svg https://img.shields.io/travis/bulv1ne/country_list.svg Updates https://coveralls.io/repos/github/bulv1ne/country_list/badge.svg?branch=master

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

  • Free software: MIT license

Features

Get all available languages:

from country_list import available_languages
for language in available_languages():
    print(language)

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'])
'Sweden'
>>> countries = dict(countries_for_language('sv'))
>>> print(countries['GB'])
'Storbritannien'
>>> print(countries['SE'])
'Sverige'

Credits

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
country_list-0.1.1-py3-none-any.whl (1.5 MB) Copy SHA256 hash SHA256 Wheel py3 Feb 26, 2018
country_list-0.1.1.tar.gz (805.4 kB) Copy SHA256 hash SHA256 Source None Feb 26, 2018

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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page