No project description provided
Project description
Country Info CloudCity
A simple wrapper around pycountry that collects all relevant data for a countr
- Country info
- Languages
- Currency
from cc_country import CountryInfo
# An example on how to use this:
"""
be_result = CountryInfo('BE')
print(be_result.__dict__)
be_result = {
'country_code': 'BE',
'languages': {
'nl': {'alpha_2': 'nl', 'alpha_3': 'nld', 'bibliographic': 'dut', 'name': 'Dutch', 'scope': 'I', 'type': 'L'},
'fr': {'alpha_2': 'fr', 'alpha_3': 'fra', 'bibliographic': 'fre', 'name': 'French', 'scope': 'I', 'type': 'L'},
'de': {'alpha_2': 'de', 'alpha_3': 'deu', 'bibliographic': 'ger', 'name': 'German', 'scope': 'I', 'type': 'L'}},
'country': {
'alpha_2': 'BE', 'alpha_3': 'BEL', 'flag': '🇧🇪', 'name': 'Belgium', 'numeric': '056',
'official_name': 'Kingdom of Belgium'},
'currency': {
'alpha_3': 'EUR', 'name': 'Euro', 'numeric': '978'},
'search_res': {
'name': 'Belgium', 'native': 'België', 'phone': [32], 'continent': 'EU', 'capital': 'Brussels',
'currency': ['EUR'],
'languages': ['nl', 'fr', 'de']
}
}
"""
if __name__ == '__main__':
c = CountryInfo('BE')
print(c.__dict__)
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
Built Distribution
Close
Hashes for countryinfo-cloudcity-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 805a328d21eb121ee2c82d79d8436674cd4fe1aaae72cbb640bbf17a949c7179 |
|
MD5 | 1d261234fe4703df0393e4351769dd36 |
|
BLAKE2b-256 | a32b673f21d6700060434678bf9465b42f264e0df280abbbafe2956be536cf81 |
Close
Hashes for countryinfo_cloudcity-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44fcf3dd9922487d2e97ee9f75aa993f68743a0a42f5fbaf132c589a3800509a |
|
MD5 | 00c3e40de25934c41579499b6c87c80a |
|
BLAKE2b-256 | 946ed2060e13a7a1ea9d7b0d9bfed07510a693216dc46f7b66d2135ef2a48fb6 |