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:
    • Formal name
    • Continent(s) of the country's mainland
    • Area in square kilometre
    • Population
    • Official languages
    • Nominal GDP in dollar
    • Human Development Index
  • Another dictionary contains all federal subjects of the Russian Federation (including occupied zones in Ukraine) and information about them:
    • Federal district
    • Economic region
    • Area
    • Population
  • Another one contains all provinces and municipalities of the Socialist Republic of Vietnam and information about them:
    • Region
    • Area
    • Population
  • Some variables you might find helpful

After importing them:

from countries_dictionary import countries
from countries_dictionary.russia import russia
from countries_dictionary.vietnam import vietnam
import countries_dictionary.quick_variables as qv

you can do many things with the dictionary, such as calculate GDP per capita of a country:

countries["Switzerland"]["nominal GDP"] / countries["Switzerland"]["population"]

population density:

countries["Russia"]["population"] / countries["Russia"]["area"]

percentage of a Vietnamese province's area compared to Vietnam's total area:

vietnam["Ho Chi Minh City"]["area"] / countries["Vietnam"]["area"] * 100

or just see the dictionary when France is censored (This is only a joke, I don't support hate against France and French)

qv.countries_france_censored

I created this module as a source of countries' information that is easy to access and use by coders.

See CHANGELOG.md for changes of releases.

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-2.2.1.tar.gz (30.1 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-2.2.1-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for countries_dictionary-2.2.1.tar.gz
Algorithm Hash digest
SHA256 ffa6125c2d90ea1b488e2d93e92877040ba34406f2d67b5870f11561bbab5814
MD5 87419803555978ef5fb508e4f49b86eb
BLAKE2b-256 d9a2bb91a2aea88fd1cbcc9aa7a1608d7264de215d5a792d7514a14daa99d2c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for countries_dictionary-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a6bdf37eaaddfcb026321173563ee9d80e44cf8a9a630ec6a4fdabd6cc4483a
MD5 4025ebc29ca81c52620a3df4dca5efee
BLAKE2b-256 f1378722583dfeb608109820776f8b61869b51ec8f814f47f835082f2ddf3424

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