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.1.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.1-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: countries_dictionary-2.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a6c3dc9343f180f02b186aeddda44f4a41955404bc38688eb96a90c5682148c3
MD5 46dfaa829f7e15c9c58f78ad50c83f8a
BLAKE2b-256 c69383721189ce154108172686e5bcf15d9b1e7fe52f68b3b3301b93d6bd2527

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for countries_dictionary-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d89bf421b56d00f820bd2fa37760542b50ac7ad734a4f560159d47a59d63fefc
MD5 75e39ddd466079694f44dc903c00e527
BLAKE2b-256 b05720a3cce071e8ec2fbb170247b067b85d5b987a3922c4ccae892c06362a37

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