1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
|
# Stubs for ipaddress (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
IPV4LENGTH = ... # type: Any
IPV6LENGTH = ... # type: Any
class AddressValueError(ValueError): ...
class NetmaskValueError(ValueError): ...
def ip_address(address): ...
def ip_network(address, strict=...): ...
def ip_interface(address): ...
def v4_int_to_packed(address): ...
def v6_int_to_packed(address): ...
def summarize_address_range(first, last): ...
def collapse_addresses(addresses): ...
def get_mixed_type_key(obj): ...
class _TotalOrderingMixin:
def __eq__(self, other): ...
def __ne__(self, other): ...
def __lt__(self, other): ...
def __le__(self, other): ...
def __gt__(self, other): ...
def __ge__(self, other): ...
class _IPAddressBase(_TotalOrderingMixin):
@property
def exploded(self): ...
@property
def compressed(self): ...
@property
def version(self): ...
class _BaseAddress(_IPAddressBase):
def __init__(self, address) -> None: ...
def __int__(self): ...
def __eq__(self, other): ...
def __lt__(self, other): ...
def __add__(self, other): ...
def __sub__(self, other): ...
def __hash__(self): ...
class _BaseNetwork(_IPAddressBase):
def __init__(self, address) -> None: ...
def hosts(self): ...
def __iter__(self): ...
def __getitem__(self, n): ...
def __lt__(self, other): ...
def __eq__(self, other): ...
def __hash__(self): ...
def __contains__(self, other): ...
def overlaps(self, other): ...
@property
def broadcast_address(self): ...
@property
def hostmask(self): ...
@property
def with_prefixlen(self): ...
@property
def with_netmask(self): ...
@property
def with_hostmask(self): ...
@property
def num_addresses(self): ...
@property
def prefixlen(self): ...
def address_exclude(self, other): ...
def compare_networks(self, other): ...
def subnets(self, prefixlen_diff=..., new_prefix=...): ...
def supernet(self, prefixlen_diff=..., new_prefix=...): ...
@property
def is_multicast(self): ...
@property
def is_reserved(self): ...
@property
def is_link_local(self): ...
@property
def is_private(self): ...
@property
def is_global(self): ...
@property
def is_unspecified(self): ...
@property
def is_loopback(self): ...
class _BaseV4:
def __init__(self, address) -> None: ...
@property
def max_prefixlen(self): ...
@property
def version(self): ...
class IPv4Address(_BaseV4, _BaseAddress):
def __init__(self, address) -> None: ...
@property
def packed(self): ...
@property
def is_reserved(self): ...
@property
def is_private(self): ...
@property
def is_multicast(self): ...
@property
def is_unspecified(self): ...
@property
def is_loopback(self): ...
@property
def is_link_local(self): ...
class IPv4Interface(IPv4Address):
network = ... # type: Any
netmask = ... # type: Any
hostmask = ... # type: Any
def __init__(self, address) -> None: ...
def __eq__(self, other): ...
def __lt__(self, other): ...
def __hash__(self): ...
@property
def ip(self): ...
@property
def with_prefixlen(self): ...
@property
def with_netmask(self): ...
@property
def with_hostmask(self): ...
class IPv4Network(_BaseV4, _BaseNetwork):
network_address = ... # type: Any
netmask = ... # type: Any
hosts = ... # type: Any
def __init__(self, address, strict=...) -> None: ...
@property
def is_global(self): ...
class _BaseV6:
def __init__(self, address) -> None: ...
@property
def max_prefixlen(self): ...
@property
def version(self): ...
class IPv6Address(_BaseV6, _BaseAddress):
def __init__(self, address) -> None: ...
@property
def packed(self): ...
@property
def is_multicast(self): ...
@property
def is_reserved(self): ...
@property
def is_link_local(self): ...
@property
def is_site_local(self): ...
@property
def is_private(self): ...
@property
def is_global(self): ...
@property
def is_unspecified(self): ...
@property
def is_loopback(self): ...
@property
def ipv4_mapped(self): ...
@property
def teredo(self): ...
@property
def sixtofour(self): ...
class IPv6Interface(IPv6Address):
network = ... # type: Any
netmask = ... # type: Any
hostmask = ... # type: Any
def __init__(self, address) -> None: ...
def __eq__(self, other): ...
def __lt__(self, other): ...
def __hash__(self): ...
@property
def ip(self): ...
@property
def with_prefixlen(self): ...
@property
def with_netmask(self): ...
@property
def with_hostmask(self): ...
@property
def is_unspecified(self): ...
@property
def is_loopback(self): ...
class IPv6Network(_BaseV6, _BaseNetwork):
network_address = ... # type: Any
netmask = ... # type: Any
def __init__(self, address, strict=...) -> None: ...
def hosts(self): ...
@property
def is_site_local(self): ...
|