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

# Module rfc1924

A basic implementation of RFC 1924 ;-)

Functions | [hide private]
chr_range(low, high) Returns all characters between low and high chars. |
ipv6_to_base85(addr) Convert a regular IPv6 address to base 85. |
base85_to_ipv6(addr) Convert a base 85 IPv6 address to its hexadecimal format. |

Variables | [hide private]
| BASE_85 = ``[``'``0``'``,` `'``1``'``,` `'``2``'``,` `'``3``'``,` `'``4``'``,` `'``5``'``,` `'``6``'``,` `'``7``'``,` `'``8``'``,` `'``9``'``,` `'``...`` Base 85 integer index to character lookup table.
| BASE_85_DICT = ``{``'``!``'``:` 62`,` `'``#``'``:` 63`,` `'``$``'``:` 64`,` `'``%``'``:` 65`,` `'``&``'``:` 66`,` `'``...`` Base 85 digit to integer lookup table.

Variables Details | [hide private]

  ### BASE_85 Base 85 integer index to character lookup table. Value:
      ['0',
       '1',
       '2',
       '3',
       '4',
       '5',
       '6',
       '7',
      ...

  ### BASE_85_DICT Base 85 digit to integer lookup table. Value:
      {'!': 62,
       '#': 63,
       '$': 64,
       '%': 65,
       '&': 66,
       '(': 67,
       ')': 68,
       '*': 69,
      ...