Skip to content
Python client for the whois.cymru.com service
Python Makefile Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
docs
tests
.gitignore
README.rst
cymruwhois.py
setup.py

README.rst

Perform lookups by ip address and return ASN, Country Code, and Netblock Owner:

>>> import socket
>>> ip = socket.gethostbyname("www.google.com")
>>> from cymruwhois import Client
>>> c=Client()
>>> r=c.lookup(ip)
>>> print r.asn
15169
>>> print r.owner
GOOGLE - Google Inc.

See http://packages.python.org/cymruwhois/ for full documentation.

Something went wrong with that request. Please try again.