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 language(s)
    • 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
    • Capital or administrative centre
    • Area
    • Population
  • Another one contains all provinces and municipalities of the Socialist Republic of Vietnam and information about them:
    • Region
    • Administrative centre
    • 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.2.tar.gz (30.2 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.2-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: countries_dictionary-2.2.2.tar.gz
  • Upload date:
  • Size: 30.2 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.2.tar.gz
Algorithm Hash digest
SHA256 96557b2b7ea6fd65a96822e317b1846b3717f9a816d991c7355ab40bd1fd1a6e
MD5 fb12de9d418b1ac0fcdaad59562df51a
BLAKE2b-256 8c0d0f9ddec899e8235cdaff1ae396b51d4edb04c3f8328bd342bddd6554dc48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for countries_dictionary-2.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 af08d7b246a9c25704a2622d69640596d32ce5e6de9de80124568ab1e7be3077
MD5 e99970f78b544848bcb6a3684d11d329
BLAKE2b-256 3cb7107ccd5d5bf66354e324df30c2ae27a9b4a60e8cd78c7b217c4b080778d3

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