Staging: this is not the live site, pydocs.org.
Internet Protocols and Support
This class represents and manipulates 128-bit IPv6 networks.
Attributes: [examples for IPv6('2001:db8::1000/124')]
.network_address: IPv6Address('2001:db8::1000')
.hostmask: IPv6Address('::f')
.broadcast_address: IPv6Address('2001:db8::100f')
.netmask: IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0')
.prefixlen: 124Changed in 3.5
- 3.5: Added the two-tuple form for the address constructor parameter.
Members of IPv6Network
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.
h
- hostmask
- Returns an iterator over the usable hosts in the network.
- hosts
- Generate Iterator over usable hosts in a network.
i
- is_multicast
- Test if the address is reserved for multicast use.
- is_private
- Test if this network belongs to a private range.
- is_reserved
- Test if the address is otherwise IETF reserved.
m
- max_prefixlen
- Returns an iterator over the usable hosts in the network.
n
- netmask
- Returns an iterator over the usable hosts in the network.
o
- overlaps
- Tell if self is partly contained in other.
p
- prefixlen
- Returns an iterator over the usable hosts in the network.
s
- subnet_of
- Return True if this network is a subnet of other.
- subnets
- The subnets which join to make the current subnet.
- supernet
- The supernet containing the current network.
- supernet_of
- Return True if this network is a supernet of other.
v
- version
- Returns an iterator over the usable hosts in the network.
w
- with_hostmask
- Returns an iterator over the usable hosts in the network.
- with_netmask
- Returns an iterator over the usable hosts in the network.
- with_prefixlen
- Returns an iterator over the usable hosts in the network.