country

Python module for country codes with ISO codes.

View the Project on GitHub harshildarji/country

Country

Package published at: PyPI

Downloads


Python module for country codes with ISO codes.

Install:

pip install country_module

Use:

Create a python script, for example example.py:

from country_module import country

print('Country code: {}'.format(country.see(country_name='India', option=0)))
print('ISO code: {}'.format(country.see(country_name='India', option=1)))

Save and run:

❯❯❯ py example.py
Country code: +91
ISO code: IN

Author: Harshil Darji