Provides a dictionary contains all members and observer states of the United Nations and information about them
Project description
Countries Dictionary provides a dictionary contains all members and observer states of the United Nations and information about them:
- Continent(s) of the countries' mainland
- Area in square kilometre
- Population
- Nominal GDP in dollar
I created this module as a source of countries' information that is easy to access and use by coders using any programming language (as it can be converted into JSON).
After import it:
from countries_dictionary import countries
you can do many things with the dictionary, such as convert it into a JSON string:
json.dumps(countries, indent=4)
calculate GDP per capita of a country:
countries["Vietnam"]["nominal GDP"] / countries["Vietnam"]["population"]
population density:
countries["Russia"]["population"] / countries["Russia"]["area"]
Project details
Release history Release notifications | RSS feed
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 countries_dictionary-1.0.0.tar.gz.
File metadata
- Download URL: countries_dictionary-1.0.0.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
304347b34976ea436de49fe8078aa0cc34205884504bc84cbe9deff17ae3196c
|
|
| MD5 |
c74cf400909937c956e0e404b905941a
|
|
| BLAKE2b-256 |
c0f89fad7fcf2d8d90dce0ac9172b25100e621c06b9e56ddc9ed0a06148aac10
|
File details
Details for the file countries_dictionary-1.0.0-py3-none-any.whl.
File metadata
- Download URL: countries_dictionary-1.0.0-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42cc5ad5be49630575c6f35d8e29f0963de81b14331b36b7a66f5cd38e401b6a
|
|
| MD5 |
af365834f5126612da9a3a749ae2c1ca
|
|
| BLAKE2b-256 |
ef6afe1f47ac9e5ef46b8093b519aff7ef1a9e4a2aec34524b7cffcaa45dc0ca
|