Skip to content

Convert country codes and country names (python script)

License

Notifications You must be signed in to change notification settings

johnb30/pycountrycode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pycountrycode

Convert country names to and from 9 country code schemes.

A Python port of the countrycode package for R:

This is alpha software; the script probably won't behave well in all cases.

Dependencies

Installation

git clone https://github.com/vincentarelbundock/pycountrycode
cd pycountrycode
sudo python setup.py install

Usage

from pycountrycode import countrycode
countrycode(origin='country_name', target='iso3c', codes=['Algeria', 'United States'])
> ['DZA', 'USA']

About

Convert country codes and country names (python script)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages