Find the location of ip address
Project description
# 查 ip 所在位置, 查找速度还行(微秒级), 数据来自纯真数据库.
### Install
```
pip install cz-ip
```
### Usage
```
>>> import cz_ip
>>> cz_ip.locate("8.8.8.8")
'美国 加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器'
```
```
$ python -m cz_ip
114.114.114.114
114.114.114.114 江苏省南京市 南京信风网络科技有限公司GreatbitDNS服务器
```
```
$ cat ips.txt
114.114.114.114
172.16.16.16
10.0.0.1
10.0.0.2
$ python -m cz_ip <ips.txt
114.114.114.114 江苏省南京市 南京信风网络科技有限公司GreatbitDNS服务器
172.16.16.16 局域网 对方和您在同一内部网
10.0.0.1 局域网 IP
10.0.0.2 局域网 IP
```
### Install
```
pip install cz-ip
```
### Usage
```
>>> import cz_ip
>>> cz_ip.locate("8.8.8.8")
'美国 加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器'
```
```
$ python -m cz_ip
114.114.114.114
114.114.114.114 江苏省南京市 南京信风网络科技有限公司GreatbitDNS服务器
```
```
$ cat ips.txt
114.114.114.114
172.16.16.16
10.0.0.1
10.0.0.2
$ python -m cz_ip <ips.txt
114.114.114.114 江苏省南京市 南京信风网络科技有限公司GreatbitDNS服务器
172.16.16.16 局域网 对方和您在同一内部网
10.0.0.1 局域网 IP
10.0.0.2 局域网 IP
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cz-ip-1.1.tar.gz
(9.6 MB
view details)
File details
Details for the file cz-ip-1.1.tar.gz
.
File metadata
- Download URL: cz-ip-1.1.tar.gz
- Upload date:
- Size: 9.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
73f364b904e7fb879703739ed71c9bea028baa18e02d15da7a0fbc6fcbb99047
|
|
MD5 |
e403b425f568c438bb2b76f68c846bc3
|
|
BLAKE2b-256 |
c911e5e919919181463416232dadeb7fabab944fb2b2f44eac6e8d7a292ddb71
|