Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Shell script and module for easy geoip lookups.

Project description

Travis-CI codecov Latest version Supported python versions

Dead simple geoip package. Pretty much just a wrapper around maxminddb that automatically downloads the geolite database for you. You can either do this manually using the ‘download_latest_database’ function or let the script do it automatically when it detects no database is installed.

Can be used as a package or standalone script.


pip install simplegeoip


As a python package.

import simplegeoip

# Gets a dict with country/city information, if there is no database it will be downloaded automatically
# Downloads an updated database into simplegeoip's application directory
# Tells you when the database was last updated by maxmind
# Returns a maxminddb reader object, if there is no database it will be downloaded automatically

The same as above but as a standalone script

simplegeoip update
simplegeoip info

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for simplegeoip, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size simplegeoip-0.2.0-py2.py3-none-any.whl (28.5 kB) File type Wheel Python version 3.7 Upload date Hashes View hashes
Filename, size simplegeoip-0.2.0.tar.gz (28.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page