Skip to main content

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

countryinfo-cloudcity-1.0.5.tar.gz (12.7 kB view hashes)

Uploaded Source

Built Distribution

countryinfo_cloudcity-1.0.5-py3-none-any.whl (12.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page