sample_data_utils/geo.py
def get_codes():
    """
    >> get_codes()
    ISO	ISO3	ISO-Numeric	fips	Country	Capital	Area(in sq km)	Population	Continent	tld	CurrencyCode	CurrencyName	Phone	Postal Code Format	Postal Code Regex	Languages	geonameid	neighbours	EquivalentFipsCode
    """
    cache_filename = os.path.join(os.path.dirname(__file__), 'data', 'countryInfo.txt')
    data = []
    for line in open(cache_filename, 'r'):
        if not line.startswith('#'):
            data.append(line.split('\t'))

    return data
def get_codes():
    """
    >> get_codes()
    ISO	ISO3	ISO-Numeric	fips	Country	Capital	Area(in sq km)	Population	Continent	tld	CurrencyCode	CurrencyName	Phone	Postal Code Format	Postal Code Regex	Languages	geonameid	neighbours	EquivalentFipsCode
    """
    cache_filename = os.path.join(os.path.dirname(__file__), 'data', 'countryInfo.txt')
    data = []
    for line in open(cache_filename, 'r'):
        if not line.startswith('#'):
            data.append(line.split('\t'))

    return data
>> get_codes()
    ISO	ISO3	ISO-Numeric	fips	Country	Capital	Area(in sq km)	Population	Continent	tld	CurrencyCode	CurrencyName	Phone	Postal Code Format	Postal Code Regex	Languages	geonameid	neighbours	EquivalentFipsCode