Skip to main content

API to access data from Sypex Geo IP database files from your Python code

Project description

What’s that

pysyge is an API to access data from Sypex Geo IP database files from your Python code.

For more information about Sypex Geo databases and their features please visit


Download Geo IP database file from (example below uses SxGeoCity.dat file).

Application sample:

# Import all we need from pysyge module.
from pysyge import GeoLocator, MODE_BATCH, MODE_MEMORY

# Create GeoLocator object to access API from 'SxGeoCity.dat' using fast memory mode.
geodata = GeoLocator('SxGeoCity.dat', MODE_BATCH | MODE_MEMORY)

# Request geo information for IP address.
location = geodata.get_location('', detailed=True)

# Print out some lyrics.
print('%s (%s) calling. All the circuits are busy.' % (location['city'], location['country_iso']))

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 pysyge, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pysyge-0.1.0.tar.gz (8.2 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