PyDocs

Internet Protocols and Support

ipaddress

A fast, lightweight IPv4/IPv6 manipulation library in Python.

This library is used to create/poke/manipulate IPv4 and IPv6 addresses
and networks.
Symbols in ipaddress

a

AddressValueError
A Value Error related to the address.

c

collapse_addresses
Collapse a list of IP objects.

g

get_mixed_type_key
Return a key suitable for sorting between networks and addresses.

i

ip_address
Take an IP string/int and return an object of the correct type.
ip_interface
Take an IP string/int and return an object of the correct type.
ip_network
Take an IP string/int and return an object of the correct type.
IPv4Address
Represent and manipulate single IPv4 Addresses.
IPv4Interface
Construct an IPv4 interface.
IPv4Network
This class represents and manipulates 32-bit IPv4 network + addresses..
IPv6Address
Represent and manipulate single IPv6 Addresses.
IPv6Interface
Construct an IPv6 interface.
IPv6Network
This class represents and manipulates 128-bit IPv6 networks.

n

NetmaskValueError
A Value Error related to the netmask.

s

summarize_address_range
Summarize a network range given the first and last IP addresses.

v

v4_int_to_packed
Represent an address as 4 packed bytes in network (big-endian) order.
v6_int_to_packed
Represent an address as 16 packed bytes in network (big-endian) order.