Represents blocks of IPv4 addresses using a wildcard or glob style
syntax.
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__
|
|
__contains__(self,
addr)
Returns:
True if given address or range falls within this range,
False otherwise. |
source code
|
|
|
__eq__(self,
other)
Returns:
True if the boundaries of this range are the same as
other, False otherwise. |
source code
|
|
|
__ge__(self,
other)
Returns:
True if the boundaries of this range are greater or
equal to other, False otherwise. |
source code
|
|
|
__getitem__(self,
index)
Returns:
The IP address(es) in this address range referenced by index/slice. |
source code
|
|
|
__gt__(self,
other)
Returns:
True if the boundaries of this range are greater than
other, False otherwise. |
source code
|
|
|
|
|
__iadd__(self,
i)
Increments start and end addresses of this range by the current size. |
source code
|
|
|
__isub__(self,
i)
Decrements start and end addresses of this range by the current size. |
source code
|
|
|
__iter__(self)
Returns:
An iterator object providing access to all network addresses within
this range. |
source code
|
|
|
__le__(self,
other)
Returns:
True if the boundaries of this range are less or equal
to other, False otherwise. |
source code
|
|
|
|
|
__lt__(self,
other)
Returns:
True if the boundaries of this range are less than
other, False otherwise. |
source code
|
|
|
__ne__(self,
other)
Returns:
False if the boundaries of this range are the same as
other, True otherwise. |
source code
|
|
|
adjacent(self,
other)
Returns:
True if other's boundary touches the boundary of this address range,
False otherwise. |
source code
|
|
|
|
|
format(self,
int_addr,
fmt=None)
Returns:
a network address in the format returned after passing it through
this object's fmt property callable. |
source code
|
|
|
|
|
issubnet(self,
other)
Returns:
True if other's boundary is equal to or within this range. |
source code
|
|
|
issupernet(self,
other)
Returns:
True if other's boundary is equal to or contains this range. |
source code
|
|
|
overlaps(self,
other)
Returns:
True if other's boundary crosses the boundary of this address range,
False otherwise. |
source code
|
|
|
size(self)
Returns:
The total number of network addresses in this range. |
source code
|
|
|
tuple(self)
Returns:
A 3-element tuple (first, last, addr_type) which represent the basic
details of this IPRange object. |
source code
|
|
|
|