{"library":"python-geoip","title":"python-geoip","description":"Provides GeoIP functionality for Python. Version 1.2 is the last release, unmaintained since 2011. It wraps the MaxMind GeoIP legacy C library. Use python-geoip-geolite2 or geoip2 for modern MaxMind databases.","language":"python","status":"deprecated","last_verified":"Fri May 01","install":{"commands":["pip install python-geoip"],"cli":null},"imports":["from geoip import geolite2","from geoip import geolite2"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from geoip import geolite2\nmatch = geolite2.lookup('8.8.8.8')\nif match:\n    print(match.country)\n    print(match.continent)\n    print(match.timezone)\nelse:\n    print('No match')","lang":"python","description":"Look up IP address using GeoLite2 database (requires python-geoip-geolite2).","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}