List of all countries with names and ISO 3166-1 codes in all languages and all data formats.
Project description
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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for country_list-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aafcae18439a43c69022137f624f4c761732d2923f4120a3de8a45a5e4883756 |
|
MD5 | c9a423a965010b7a3b49e84b7d0bc6fd |
|
BLAKE2b-256 | 76b6f6a53f89f389ff98e5fec7f28f3e7e025ba31438ad08d7502d01eea6e8c4 |