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

# Package ip

source code

Provides access to public network address information published by IANA.

More details can be found at the following URLs :-

Internet Assigned Numbers Authority (IANA)

- http://www.iana.org/
- http://www.iana.org/protocols/

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_iana_info() Parse and load internal IANA data lookups with the latest information from data files. | source code
query(ip_addr) Returns informational data specific to this IP address. | source code

Variables | [hide private]
| IANA_INFO = ``{``'``IPv4``'``:` `{`CIDR('0.0.0.0/8')`:` `{``'``date``'``:` `'``1981-09``'``,` `'``...`` Topic based lookup dictionary for IANA information.

Variables Details | [hide private]

  ### IANA_INFO Topic based lookup dictionary for IANA information. Value:
      {'IPv4': {CIDR('0.0.0.0/8'): {'date': '1981-09',
                                    'designation': 'IANA - Local Identificat
      ion',
                                    'prefix': '0/8',
                                    'status': 'Reserved',
                                    'whois': ''},
                CIDR('1.0.0.0/8'): {'date': '',
                                    'designation': 'IANA',
      ...