pyGeoIP Description A standalone function to map an IP address to a two letter country code in ISO format. Also can be used as a command line utility. Relies on a small database file that is compacted into a hash:countryCode tuple.