pygeoip icon indicating copy to clipboard operation
pygeoip copied to clipboard

DEPRECATED: Pure Python API for Maxmind's binary GeoIP databases

Results 7 pygeoip issues
Sort by recently updated
recently updated
newest added

Just so you know, MaxMind has an official python lib. It's is available here https://geoip2.readthedocs.io/en/latest/

I found that I needed to create a mapping from the timezones returned by pygeoip to the proper ones in pytz so I thought I'd share it here. The keys...

This PR include support of python 2.7 on Windows which don't have `socket.inet_pton` function. You need install and import `win_inet_pton` package for that.

The official Python driver offers `region_name` which is the full name for what you call `region_code`, i.e. "Californa" instead of "CA". ``` python >>> city.record_by_addr('64.233.161.99') >>> {'area_code': 650, 'city': 'Mountain...

When running query for IPV6 against GEOIPCITY maxmind db I am getting results that are from the wrong location, querying maxmind support they state that this database doesnt actually support...

country_name_by_addr(addr) fails when the record is not found: /usr/local/lib/python2.7/dist-packages/pygeoip/**init**.pyc in country_name_by_addr(self, addr) 489 return const.COUNTRY_NAMES[country_id] 490 elif self._databaseType in const.CITY_EDITIONS: --> 491 return self.record_by_addr(addr).get('country_name') 492 else: 493 message = 'Invalid...

It'd be awesome to be able to iterate through the city database. It seems a ruby client has implemented this feature: https://github.com/cjheath/geoip/blob/master/lib/geoip.rb#L332

enhancement