Skip to main content

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.

Source Distribution

country_list-0.1.1.tar.gz (805.4 kB view details)

Uploaded Source

Built Distribution

country_list-0.1.1-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file country_list-0.1.1.tar.gz.

File metadata

File hashes

Hashes for country_list-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bc7ba03562704f4711068b52c884087f5dfb988bbe1136ac09163c17dd68bfef
MD5 85afd6e32b8cb2d2b4c31dbf36160095
BLAKE2b-256 6e16c315cd73d752b29071e30d7c33c983e70bb8b0114f4c7dd84044a5b5c071

See more details on using hashes here.

Provenance

File details

Details for the file country_list-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for country_list-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aafcae18439a43c69022137f624f4c761732d2923f4120a3de8a45a5e4883756
MD5 c9a423a965010b7a3b49e84b7d0bc6fd
BLAKE2b-256 76b6f6a53f89f389ff98e5fec7f28f3e7e025ba31438ad08d7502d01eea6e8c4

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page