>>> import pygeoip >>> gi = pygeoip.GeoIP('GeoIP.dat') >>> gi.country_name_by_addr('64.233.161.99') 'United States'