'Returns a dictionary of city information for the given IP address or
Fully Qualified Domain Name (FQDN).  Some information in the dictionary
may be undefined (None).'

def city(self, query):

    query = self._check_query(query, city=True)
    if ipv4_re.match(query):
        return GeoIP_record_by_addr(self._city, c_char_p(query))
    else:
        return GeoIP_record_by_name(self._city, c_char_p(query))
