appliedsec / pygeoip

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

Support for .dat.gz files #4

Closed chrish42 closed 12 years ago

chrish42 commented 12 years ago

This commit adds support for .dat.gz files when in MEMORY_CACHE mode. Since the whole file is loaded in memory anyway in that mode, the change has no impact after initialization. It also allows using the .dat.gz files downloaded directly, without decompressing them first.

chrish42 commented 12 years ago

(I've also expanded slightly the documentation in the init method.)