harshildarji / country

Python module for country codes with ISO codes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Python module for country codes with ISO codes.

License:MIT License


Languages

Language:Python 100.0%