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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file countries_dictionary-2.2.0.tar.gz.
File metadata
- Download URL: countries_dictionary-2.2.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52ad2f687a7f6f0d6f95c0a16101fadcf6cc2695f04091e94ac7dc6a039cf65c
|
|
| MD5 |
4557a51568698500d4a0db8354b656ce
|
|
| BLAKE2b-256 |
cd0abbfc0cae89a69e5e9c80382b3b829ebee0603a759f2484ef63a95d638036
|
File details
Details for the file countries_dictionary-2.2.0-py3-none-any.whl.
File metadata
- Download URL: countries_dictionary-2.2.0-py3-none-any.whl
- Upload date:
- Size: 30.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dcfb38ee4169b7451984f3d4d2402eac96bc18e92719d76f811c841d0381411
|
|
| MD5 |
bc8e4111c8e05d53183652ae8063be6a
|
|
| BLAKE2b-256 |
7c76d3355e69c5e5d9825e0b1e7a984eb463a3a52680a4a6bc3ee0a64ddb668d
|