Metadata-Version: 1.1
Name: ipip-datx
Version: 0.3
Summary: IPIP.net官方支持维护的IP数据库datx格式解析代码库
Home-page: https://github.com/ipipdotnet/datx-python
Author: frk
Author-email: frk@ipip.net
License: Apache License Version 2.0
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("8.8.8.258"))
        print(c.find("255.255.255.255"))
        
        # 查询国内区县库
        d = datx.District("/path/to/quxian.datx")
        print(d.find("123.121.117.72"))
        
        # 查询基站IP库
        d = datx.BaseStation("/path/to/station_ip.datx")
        print(d.find("223.221.121.0"))
        </code></pre>
Platform: all
Classifier: Development Status :: 4 - Beta
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: Implementation
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries
