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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b778b978f06c64e4bd5b1db6166108add61236c1a8157b9b610a8a340f3f23b4 |
|
MD5 | c4811887a7ccabd1637d419ff81a21da |
|
BLAKE2b-256 | 2fa16673c1aaf9b2cbb096764ef294dff6c09846494fc622d34fd5135f023691 |
Close
Hashes for countryinfo_cloudcity-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16d10e32811663b0cbb58fc031b378914d0432822cfd586a669bcdf8e559e72b |
|
MD5 | 04dd1be491ff4bc76609f6be0cd94f2b |
|
BLAKE2b-256 | ca151ed07e5c7bb37fdefd9d745ebbc8bcedc23956e05171ce386d4ce3a3b555 |