appliedsec / pygeoip

DEPRECATED: Pure Python API for Maxmind's binary GeoIP databases
https://github.com/appliedsec/pygeoip
GNU Lesser General Public License v3.0
481 stars 111 forks source link

Support iteration over the GeoIP city database #45

Open larsyencken opened 11 years ago

larsyencken commented 11 years ago

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

tiwilliam commented 11 years ago

Took a while to understand what you meant, the link had been updated and pointed to another function. For future readers, the function can be seen at the link below.

https://github.com/cjheath/geoip/blob/e2f064c209ee94ddbc6fc056d7f8eecdcb565b47/lib/geoip.rb#L391