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 details)

Uploaded Source

File details

Details for the file qy_ip_parse-0.0.8.tar.gz.

File metadata

  • Download URL: qy_ip_parse-0.0.8.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.0 importlib-metadata/4.6.3 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.0

File hashes

Hashes for qy_ip_parse-0.0.8.tar.gz
Algorithm Hash digest
SHA256 17f5bb5a950e7a6449de2c6e36a616f9c683f4958d2b5199e86cef19e8d5a3b0
MD5 e9ab39c2a61e58e4c9520fd3740cfb28
BLAKE2b-256 7b188262616728615ddd5818cb85372302061ba5fbae1b4891c5d96d0b02803e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page