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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file countryinfo-cloudcity-1.0.5.tar.gz.
File metadata
- Download URL: countryinfo-cloudcity-1.0.5.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
805a328d21eb121ee2c82d79d8436674cd4fe1aaae72cbb640bbf17a949c7179
|
|
| MD5 |
1d261234fe4703df0393e4351769dd36
|
|
| BLAKE2b-256 |
a32b673f21d6700060434678bf9465b42f264e0df280abbbafe2956be536cf81
|
File details
Details for the file countryinfo_cloudcity-1.0.5-py3-none-any.whl.
File metadata
- Download URL: countryinfo_cloudcity-1.0.5-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44fcf3dd9922487d2e97ee9f75aa993f68743a0a42f5fbaf132c589a3800509a
|
|
| MD5 |
00c3e40de25934c41579499b6c87c80a
|
|
| BLAKE2b-256 |
946ed2060e13a7a1ea9d7b0d9bfed07510a693216dc46f7b66d2135ef2a48fb6
|