This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

获取域名或者IP的所在地

Project Description

python-ip

  • 基于[全球 IPv4 地址归属地数据库](http://tool.17mon.cn/ipdb.html)修改的Python版本
  • 只支持Python2
  • 支持域名查询
  • 支持IP直接查询

致谢

我自己的代码写的不好,这个风格是参考[lxyu的代码](https://github.com/lxyu/17monip)修改的,大家star他的库比较好~

安装

$ sudo pip install ip2loc

使用方法

>>> import ip2loc
>>> print ip2loc.find("www.langman1dian.com")
'日本   日本'
>>> print ip2loc.find("106.186.17.155")
'日本   日本'

协议

基于[WTFPL](http://en.wikipedia.org/wiki/WTFPL)协议开源。

Release History

Release History

This version
History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ip2loc-0.1.3.tar.gz (281.5 kB) Copy SHA256 Checksum SHA256 Source Mar 6, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting