Skip to content

Countries Dictionary

Countries Dictionary (countries-dictionary on PyPI) is a data-oriented module which provides dictionaries of countries and states, from members of UN to unrecognised ones.

This module is created as an offline source of countries' information which is easy to access and use by programmers.

from countries_dictionary import COUNTRIES

print(f"The mf who created this module is one of {COUNTRIES["Vietnam"]["population"]} people who live in Vietnam!")

How to install the module

Simply copy this command, paste it into your device's shell program (for example, PowerShell on Windows) and run it:

pip install countries-dictionary