PNG
IHDR ; IDATxܻn0K
)(pA7LeG{ §㻢|ذaÆ
6lذaÆ
6lذaÆ
6lom$^yذag5 bÆ
6lذaÆ
6lذa{
6lذaÆ
`}HFkm,mӪôô!x|'ܢ˟;E:9&ᶒ}{v]n&6
h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%tMז -lG6mrz2s%9s@-k9=)kB5\+͂ZsٲRn~GRCwIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL /F*\Ԕ#"5m2[S=gnaPeғL
lذaÆ
6l^ḵaÆ
6lذaÆ
6lذa;
_ذaÆ
6lذaÆ
6lذaÆ
R IENDB`
An individual IPv4 or IPv6 address without a net mask or subnet
prefix.
|
__init__(self,
addr,
version=None,
flags=0)
Constructor. |
|
|
|
__getstate__(self)
Returns:
Pickled state of an IPAddress object. |
|
|
|
|
|
is_hostmask(self)
Returns:
True if this IP address host mask, False
otherwise. |
|
|
|
is_netmask(self)
Returns:
True if this IP address network mask, False
otherwise. |
|
|
|
__iadd__(self,
num)
Increases the numerical value of this IPAddress by num. |
|
|
|
__isub__(self,
num)
Decreases the numerical value of this IPAddress by num. |
|
|
|
__add__(self,
num)
Add the numerical value of this IP address to num and provide the
result as a new IPAddress object. |
|
|
|
__radd__(self,
num)
Add the numerical value of this IP address to num and provide the
result as a new IPAddress object. |
|
|
|
__sub__(self,
num)
Subtract the numerical value of this IP address from num providing
the result as a new IPAddress object. |
|
|
|
__rsub__(self,
num)
Subtract num (lvalue) from the numerical value of this IP address
(rvalue) providing the result as a new IPAddress object. |
|
|
|
key(self)
Returns:
a key tuple that uniquely identifies this IP address. |
|
|
|
sort_key(self)
Returns:
A key tuple used to compare and sort this IPAddress
correctly. |
|
|
|
__int__(self)
Returns:
the value of this IP address as an unsigned integer |
|
|
|
__long__(self)
Returns:
the value of this IP address as an unsigned integer |
|
|
|
__oct__(self)
Returns:
an octal string representation of this IP address. |
|
|
|
__hex__(self)
Returns:
a hexadecimal string representation of this IP address. |
|
|
|
__index__(self)
Returns:
return the integer value of this IP address when called by hex(),
oct() or bin(). |
|
|
|
bits(self,
word_sep=None)
Returns:
the value of this IP address as a binary digit string. |
|
|
|
ipv4(self)
Returns:
A numerically equivalent version 4 IPAddress
object. |
|
|
|
ipv6(self,
ipv4_compatible=False)
Please Note: the IPv4-mapped IPv6 address format is now
considered deprecated. |
|
|
|
format(self,
dialect=None)
Only relevant for IPv6 addresses. |
|
|
|
__or__(self,
other)
Returns:
bitwise OR (x | y) between the integer value of this IP address and
other . |
|
|
|
__and__(self,
other)
Returns:
bitwise AND (x & y) between the integer value of this IP address
and other . |
|
|
|
__xor__(self,
other)
Returns:
bitwise exclusive OR (x ^ y) between the integer value of this IP
address and other . |
|
|
|
__lshift__(self,
numbits)
Returns:
an IPAddress object based on this one with its integer
value left shifted by numbits . |
|
|
|
__rshift__(self,
numbits)
Returns:
an IPAddress object based on this one with its integer
value right shifted by numbits . |
|
|
|
__nonzero__(self)
Returns:
True if the numerical value of this IP address is not
zero, False otherwise. |
|
|
|
__bool__(self)
Returns:
True if the numerical value of this IP address is not
zero, False otherwise. |
|
|
|
__str__(self)
Returns:
IP address in presentational format |
|
|
|
__repr__(self)
Returns:
Python statement to create an equivalent object |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
|
|
__ge__(self,
other)
Returns:
True if this IPAddress or IPNetwork
object is greater than or equal to other ,
False otherwise. |
|
|
|
|
|
__hash__(self)
Returns:
A hash value uniquely indentifying this IP object. |
|
|
|
__le__(self,
other)
Returns:
True if this IPAddress or IPNetwork
object is less than or equal to other ,
False otherwise. |
|
|
|
|
|
|
|
|
|
is_ipv4_compat(self)
Returns:
True if this IP is IPv4-mapped IPv6 address,
False otherwise. |
|
|
|
is_ipv4_mapped(self)
Returns:
True if this IP is IPv4-compatible IPv6 address,
False otherwise. |
|
|
|
is_link_local(self)
Returns:
True if this IP is link-local address False
otherwise. |
|
|
|
is_loopback(self)
Returns:
True if this IP is loopback address (not for network
transmission), False otherwise. |
|
|
|
is_multicast(self)
Returns:
True if this IP is multicast, False
otherwise |
|
|
|
is_private(self)
Returns:
True if this IP is for internal/private use only (i.e. |
|
|
|
is_reserved(self)
Returns:
True if this IP is in IANA reserved range,
False otherwise. |
|
|
|
is_unicast(self)
Returns:
True if this IP is unicast, False otherwise |
|
|