Skip to main content

qy ip parse.

Project description

qy ip parse

qy ip parse.

Installing

Install and update using pip:

$ pip install -U qy-ip-parse

A Simple Example

import time

from qy_ip_parse import IP_IP

IP_IP.init(host='127.0.0.1', port=6379, pwd=None, ex=10)


if __name__ == '__main__':
    s = time.time()
    ip = IP_IP.parse('111.12.33.11')
    print(ip.country_name, ip.region_name, ip.city_name, ip.isp_domain)
    print(time.time() - s)
    time.sleep(5)
    s = time.time()
    ip = IP_IP.parse('111.12.32.11')
    print(ip.country_name, ip.region_name, ip.city_name, ip.isp_domain)
    print(time.time() - s)
    time.sleep(6)
    s = time.time()
    ip = IP_IP.parse('111.12.35.11')
    print(ip.country_name, ip.region_name, ip.city_name, ip.isp_domain)
    print(time.time() - s)
    time.sleep(5)
    s = time.time()
    ip = IP_IP.parse('111.12.55.11')
    print(ip.country_name, ip.region_name, ip.city_name, ip.isp_domain)
    print(time.time() - s)

Project details


Download files

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

Source Distribution

qy_ip_parse-0.0.8.tar.gz (3.1 kB view hashes)

Uploaded source

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