### 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
```
Metadata
Release files for cz-ip 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cz-ip-1.1.tar.gz | 9.6 MB | Without provenance | Details for cz-ip-1.1.tar.gz |
Release files / cz-ip-1.1.tar.gz
| Download URL | cz-ip-1.1.tar.gz |
|---|---|
| Size | 9.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73f364b904e7fb879703739ed71c9bea028baa18e02d15da7a0fbc6fcbb99047
|
|
BLAKE2b-256 checksum How to use checksums |
c911e5e919919181463416232dadeb7fabab944fb2b2f44eac6e8d7a292ddb71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for cz-ip 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.