Package netaddr :: Module core
[hide private]
[frames] | no frames]

Module core

Common code shared between various netaddr sub modules

Classes [hide private]
  AddrFormatError
An Exception indicating a network address is not correctly formatted.
  AddrConversionError
An Exception indicating a failure to convert between address types or notations.
  NotRegisteredError
An Exception indicating that an OUI or IAB was not found in the IEEE Registry.
  Subscriber
An abstract class defining the interface expected by a Publisher.
  PrettyPrinter
A concrete Subscriber that employs the pprint in the standard library to format all data from updates received, writing them to a file-like object.
  Publisher
A 'push' Publisher that maintains a list of Subscriber objects notifying them of state changes by passing them update data when it encounter events of interest.
  DictDotLookup
Creates objects that behave much like a dictionaries, but allow nested key access using object '.' (dot) lookups.
Functions [hide private]
 
num_bits(int_val)
Returns: the minimum number of bits needed to represent value provided.
 
dos2unix(filename)
Replace DOS line endings (CRLF) with UNIX line endings (LF) in file.
Variables [hide private]
  BIG_ENDIAN_PLATFORM = False
  INET_PTON = 1
  P = 1
  ZEROFILL = 2
  Z = 2
  NOHOST = 4
  N = 4
  __package__ = 'netaddr'
Function Details [hide private]

num_bits(int_val)

 
Parameters:
  • int_val - an unsigned integer.
Returns:
the minimum number of bits needed to represent value provided.