IP search based on 17mon.cn, the best IP database for China.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
IP
.gitignore
.travis.yml add py2.6 and py3.2 support. Aug 6, 2014
CHANGES.rst
MANIFEST.in
README.rst
setup.cfg
setup.py
test_ip.py

README.rst

17MonIP Python Lib

http://img.shields.io/pypi/v/17MonIP.svg?style=flat http://img.shields.io/travis/lxyu/17monip/master.svg?style=flat http://img.shields.io/pypi/dm/17MonIP.svg?style=flat

IP search based on 17mon.cn, the best IP database for china.

Source: http://tool.17mon.cn

Install

Supports python2.6 to python3.4 and pypy.

$ pip install 17monip

Usage

>>> import IP
>>> IP.find("www.baidu.com")
'中国\t浙江\t杭州'
>>> IP.find("127.0.0.1")
'本机地址\t本机地址'

CMD Util

$ iploc ele.me
中国    北京    北京
$ iploc aliyun.com
中国    浙江    杭州

Changelog

https://github.com/lxyu/17monip/blob/master/CHANGES.rst