'Instantiate a new IPv6 address object.
Args:
address: A string or integer representing the IP
Additionally, an integer can be passed, so
IPv6Address(\'2001:db8::\') ==
IPv6Address(42540766411282592856903984951653826560)
or, more generally
IPv6Address(int(IPv6Address(\'2001:db8::\'))) ==
IPv6Address(\'2001:db8::\')
Raises:
AddressValueError: If address isn\'t a valid IPv6 address.'

def __init__(self, address):

    _BaseAddress.__init__(self, address)
    _BaseV6.__init__(self, address)
    if isinstance(address, int):
        self._ip = address
        if ((address < 0) or (address > self._ALL_ONES)):
            raise AddressValueError(address)
        return
    if ((not isinstance(address, str)) and isinstance(address, bytes) and (len(address) == 16)):
        tmp = struct.unpack('!QQ', address)
        self._ip = ((tmp[0] << 64) | tmp[1])
        return
    addr_str = str(address)
    if (not addr_str):
        raise AddressValueError('')
    self._ip = self._ip_int_from_string(addr_str)
