PyDocs

Nav

Internet Protocols and Support

IPv6Address

  • IPv6Address(address)
Represent and manipulate single IPv6 Addresses.
Members of IPv6Address

_

__format__
Returns an IP address as a formatted string.

c

compressed
Return the shorthand version of the IP address as a string.

e

exploded
Return the longhand version of the IP address as a string.

i

ipv4_mapped
Return the IPv4 mapped address.
is_global
``True`` if the address is defined as globally reachable by iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6) with the following exception:
is_link_local
Test if the address is reserved for link-local.
is_loopback
Test if the address is a loopback address.
is_multicast
Test if the address is reserved for multicast use.
is_private
``True`` if the address is defined as not globally reachable by iana-ipv4-special-registry_ (for IPv4) or iana-ipv6-special-registry_ (for IPv6) with the following exceptions:
is_reserved
Test if the address is otherwise IETF reserved.
is_site_local
Test if the address is reserved for site-local.
is_unspecified
Test if the address is unspecified.

m

max_prefixlen
Added in version 3.4.

p

packed
The binary representation of this address.

r

reverse_pointer
The name of the reverse DNS pointer for the IP address, e.g.: >>> ipaddress.ip_address("127.0.0.1").reverse_pointer '1.0.0.127.in-addr.arpa' >>> ipaddress.ip_address("2001:db8::1").reverse_pointer '1…

s

scope_id
Identifier of a particular zone of the address's scope.
sixtofour
Return the IPv4 6to4 embedded address.

t

teredo
Tuple of embedded teredo IPs.

v

version
Added in version 3.4.
1 Example
>>> ipaddress.IPv6Address('2001:db8::1000')
IPv6Address('2001:db8::1000')
>>> ipaddress.IPv6Address('ff02::5678%1')
IPv6Address('ff02::5678%1')
from the Python docs
See Also
No see-alsos for ipaddress/IPv6Address
0 Notes
No notes for IPv6Address