Skip to main content

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)

Metadata

Release files for qy-ip-parse 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qy-ip-parse 0.0.8
File Size Uploaded
qy_ip_parse-0.0.8.tar.gz 3.1 kB Details

Release files / qy_ip_parse-0.0.8.tar.gz

Download URL qy_ip_parse-0.0.8.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
17f5bb5a950e7a6449de2c6e36a616f9c683f4958d2b5199e86cef19e8d5a3b0
BLAKE2b-256 checksum
How to use checksums
7b188262616728615ddd5818cb85372302061ba5fbae1b4891c5d96d0b02803e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.8 This release

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page