[MacPorts] #44587: New port: py-ipwhois

MacPorts noreply at macports.org
Sat Aug 9 15:05:58 PDT 2014


#44587: New port: py-ipwhois
------------------------------+--------------------------------
 Reporter:  jason-macports@…  |      Owner:  macports-tickets@…
     Type:  submission        |     Status:  new
 Priority:  Normal            |  Milestone:
Component:  ports             |    Version:  2.3.1
 Keywords:  py-ipwhois        |       Port:  py-ipwhois
------------------------------+--------------------------------
 = Summary =

 `ipwhois` (''py-ipwhois'') is a simple package for retrieving and parsing
 whois data for IPv4 and IPv6 addresses.

 = Features =

 - Parses a majority of whois fields in to a standard dictionary
 - IPv4 and IPv6 support
 - Supports REST queries (useful if whois is blocked from your network)
 - Proxy support for REST queries
 - Recursive network parsing for IPs with parent/children networks listed
 - Python 2.6+ and 3.3+ supported
 - Useful set of utilities
 - BSD license

 = Example =
 {{{
 #!python
 >> from ipwhois import IPWhois
 >> from pprint import pprint

 >> obj = IPWhois('74.125.225.229')
 >> results = obj.lookup()
 >> pprint(results)

 {
 'asn': '15169',
 'asn_cidr': '74.125.225.0/24',
 'asn_country_code': 'US',
 'asn_date': '2007-03-13',
 'asn_registry': 'arin',
 'nets': [{'abuse_emails': 'arin-contact at google.com',
           'address': '1600 Amphitheatre Parkway',
           'cidr': '74.125.0.0/16',
           'city': 'Mountain View',
           'country': 'US',
           'created': '2007-03-13T00:00:00',
           'description': 'Google Inc.',
           'handle': 'NET-74-125-0-0-1',
           'misc_emails': None,
           'name': 'GOOGLE',
           'postal_code': '94043',
           'range': '74.125.0.0 - 74.125.255.255',
           'state': 'CA',
           'tech_emails': 'arin-contact at google.com',
           'updated': '2012-02-24T00:00:00'}],
 'query': '74.125.225.229',
 'raw': None,
 'raw_referral': None,
 'referral': None
 }
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/44587>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list