Skip to main content


Project description

# Python解析datx格式的示例

## 安装说明 <pre> <code>pip install ipip-datx</code> </pre> ## 代码示例 <pre><code> import datx

# 查询地级市精度的IP库 c = datx.City(“/path/to/mydata4vipday2.datx”) print(c.find(“”)) print(c.find(“”))

# 查询国内区县库 d = datx.District(“/path/to/quxian.datx”) print(d.find(“”))

# 查询基站IP库 d = datx.BaseStation(“/path/to/station_ip.datx”) print(d.find(“”)) </code></pre>

Project details

Download files

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

Files for ipip-datx, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size ipip-datx-0.3.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page