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 details)
Built Distribution
File details
Details for the file country_list-0.1.1.tar.gz
.
File metadata
- Download URL: country_list-0.1.1.tar.gz
- Upload date:
- Size: 805.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc7ba03562704f4711068b52c884087f5dfb988bbe1136ac09163c17dd68bfef |
|
MD5 | 85afd6e32b8cb2d2b4c31dbf36160095 |
|
BLAKE2b-256 | 6e16c315cd73d752b29071e30d7c33c983e70bb8b0114f4c7dd84044a5b5c071 |
Provenance
File details
Details for the file country_list-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: country_list-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aafcae18439a43c69022137f624f4c761732d2923f4120a3de8a45a5e4883756 |
|
MD5 | c9a423a965010b7a3b49e84b7d0bc6fd |
|
BLAKE2b-256 | 76b6f6a53f89f389ff98e5fec7f28f3e7e025ba31438ad08d7502d01eea6e8c4 |