Metadata-Version: 2.1
Name: cymruwhois
Version: 1.6
Summary: Client for the whois.cymru.com service
Home-page: http://packages.python.org/cymruwhois/
Download-URL: http://github.com/JustinAzoff/python-cymruwhois/tree/master
Author: Justin Azoff
Author-email: justin@bouncybouncy.net
License: MIT
Keywords: ASN
Classifier: Topic :: System :: Networking
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Development Status :: 5 - Production/Stable
Provides-Extra: cache
Requires-Dist: python-memcached ; extra == 'cache'
Provides-Extra: docs
Requires-Dist: sphinx ; extra == 'docs'
Provides-Extra: tests
Requires-Dist: nose ; extra == 'tests'


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.

    
