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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a2f5b4608aaccd67f163ff2f292d62835b0b56614e8fe26ea7022c4c615275c |
|
MD5 | 5329c0e88392e7992a376a8ab8a030cb |
|
BLAKE2b-256 | 1bb702cdab295907fa83f0a46ff37121b80dd796fba957dcca0f840e6c9989a7 |
Close
Hashes for countryinfo_cloudcity-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93fdb164fc98c3f45004a9c4b580e84dd1734493221b77ac7d83f67ad7a2bcb4 |
|
MD5 | 91435e6760f71f6a82c06e420e5978d9 |
|
BLAKE2b-256 | eaad07b38ea56b3e7e55a8b7fa09b7396a950b5ba1d7bf4f217d545d65980c61 |