Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

countries_dictionary-1.0.1.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

countries_dictionary-1.0.1-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file countries_dictionary-1.0.1.tar.gz.

File metadata

  • Download URL: countries_dictionary-1.0.1.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for countries_dictionary-1.0.1.tar.gz
Algorithm Hash digest
SHA256 24a85e388ef684e0181921057c7979bdf45e9bc63c09e70ca7e88f1fe3ff857f
MD5 02c9a7a2a1f3c809f5955a92b214acb6
BLAKE2b-256 36967b9951d5eaf8d9d0167e009bd24ec593098090fc134ddcee58549661ef74

See more details on using hashes here.

File details

Details for the file countries_dictionary-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for countries_dictionary-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b36f24179639f13ed35a5586a8f6368fce4d7b19b4075d7c15d8dfd84ad36a3
MD5 f92eafb594ab52eaef220c2c1ad1cfbc
BLAKE2b-256 fcf677f06421162ccb137d3341ad1482b8567a4ae3e7a2c4dfb44ca997e7b074

See more details on using hashes here.

Supported by

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