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 countries' 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.

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.0.0.tar.gz (28.8 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.0.0-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: countries_dictionary-2.0.0.tar.gz
  • Upload date:
  • Size: 28.8 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.0.0.tar.gz
Algorithm Hash digest
SHA256 37613131828758763e203eaac42e3cc17d4c85e337a8e90ba9e765f9d9c12857
MD5 509b91eeda8a88b4071eb4ed0ff92354
BLAKE2b-256 a95cb0f133a87f847dfdc974b010ee9b99aac37f3c334d8b437f91f244c3e136

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for countries_dictionary-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f6f9558eb6e95af613251c73291477181f9e221dd96c28c164c47002eb49009
MD5 ce0a8f78befa24b184dc632fdeaa69d8
BLAKE2b-256 585b81a830ff5a191c15880856e821308b8152937c884a9e9a3d5b8ed3b9279a

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