Skip to main content

Library for Tornado web framework to locate IPs or server names.

Project description

Python library for Tornado web framework to locate IPs or server names.

Torip will provide you information like country, city, zip code or the url of google maps.

Torip has been developed and tested using Python3.4


$ pip install torip

Available APIs

Torip supports the following APIs:


It is also the default API.

from torip.locator import Locator
locator = Locator(api_name='ip-api')


from torip.locator import Locator
locator = Locator()  # default API

from torip.locator import Locator
locator = Locator(api_name='freegeoip')


import tornado
from torip.locator import Locator
ip = ''  # IP or server name
def function():
        locator = Locator()
        result = yield locator.locate(ip)
    except Exception as e:
ioloop = tornado.ioloop.IOLoop.instance()

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 torip, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size torip-0.1.5.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page