Convert country names and country codes
Project description
Python countrycode
Convert country names to and from 9 country code schemes.
Bugs & Development: https://github.com/vincentarelbundock/pycountrycode
A Python port of the countrycode package for R:
This is beta software.
Installation
Using pip
sudo pip install countrycode
Latest version from Gitub
git clone https://github.com/vincentarelbundock/pycountrycode cd pycountrycode sudo python setup.py install
Usage
from countrycode import countrycode countrycode(codes=['Algeria', 'United States'], origin='country_name', target='iso3c') > ['DZA', 'USA']
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
countrycode-0.1.zip
(13.6 kB
view hashes)
countrycode-0.1.tar.gz
(12.5 kB
view hashes)