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.2.tar.gz
(1.6 MB
view details)
Built Distribution
File details
Details for the file country_list-0.1.2.tar.gz
.
File metadata
- Download URL: country_list-0.1.2.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a9f6663aabf8cfa59d37f140b0242fb7f1bf75389d83fb4a82700652e0cb725 |
|
MD5 | 650fe47d89634f817cb98bd0255e5846 |
|
BLAKE2b-256 | 856a4147a14179f55a65b0c5bf22c2f250641d83919cb3bc91e3f0ecb7eb17a8 |
Provenance
File details
Details for the file country_list-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: country_list-0.1.2-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0095fc5df7899cb122d137f9c0ccca2206896ab5d07df6742932e6cbede7b748 |
|
MD5 | 21e551c354e973db2f75e40b532255e1 |
|
BLAKE2b-256 | c3fe13697a830dafe8403b545b2fbd0a57fbe2211df35aeb7b8ebfe73fea06a9 |