Package netaddr :: Package ip :: Module iana
[hide private]
[frames] | no frames]

Module iana

Routines for accessing data published by IANA (Internet Assigned Numbers Authority).

More details can be found at the following URLs :-

Classes [hide private]
  LineRecordParser
A configurable Parser that understands how to parse line based records.
  IPv4Parser
A LineRecordParser that understands how to parse and retrieve data records from the IANA IPv4 address space file.
  IPv6Parser
A LineRecordParser that understands how to parse and retrieve data records from the IANA IPv6 address space file.
  MulticastParser
A LineParser that knows how to process the IANA IPv4 multicast address allocation file.
  DictUpdater
Concrete Subscriber that inserts records received from a Publisher into a dictionary.
Functions [hide private]
 
load_info()
Parse and load internal IANA data lookups with the latest information from data files.
 
pprint_info(fh=None)
Pretty prints IANA information to filehandle.
 
query(ip_addr)
Returns informational data specific to this IP address.
 
get_latest_files()
Download the latest files from IANA
Variables [hide private]
  IANA_INFO = {'IPv4': {IPNetwork('0.0.0.0/8'): {'date': '1981-0...
  __package__ = 'netaddr.ip'
Variables Details [hide private]

IANA_INFO

Value:
{'IPv4': {IPNetwork('0.0.0.0/8'): {'date': '1981-09',
                                   'designation': 'IANA - Local Identi\
fication',
                                   'prefix': '0/8',
                                   'status': 'Reserved',
                                   'whois': ''},
          IPNetwork('1.0.0.0/8'): {'date': '2010-01',
                                   'designation': 'APNIC',
...