List of all countries with names and ISO 3166-1 codes in all languages
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.4.tar.gz
(2.0 MB
view hashes)
Built Distribution
Close
Hashes for country_list-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6467afab4e8cd851ea4369ad918083e05f33d5ca5cff539aa163594b48e28483 |
|
MD5 | 63f1969868cbaef1e530f90889833a58 |
|
BLAKE2b-256 | d34eb71a3085bcaeebc7035983aa2f74f06181c0a1b5084e5e17f59ed197e72c |