This is simple package to help make country names and country code available in your application.
To install use pip:
::
$ pip install allcountries
or
::
$ easy_install allcountries
After installation: simply import and use the countries list or dictionary like:
::
from countries import all_countries
::
my_countries = all_countries.all_country_names_and_code
or
::
my_countries = all_countries.all_country_names
| See http://www.pip-installer.org/en/latest/index.html for instructions
| on installing pip. If you are on a system with easy\_install but not
| pip, you can use easy\_install instead. If you’re not using
virtualenv,
| you may have to prefix those commands with ``sudo``. You can learn
more
| about virtualenv at http://www.virtualenv.org/