duck.utils.net¶
Network helper utilily tools.
Module Contents¶
Functions¶
Check if the provided name is a valid domain name. |
|
Check if the provided IP address is a valid IPv4 address. |
|
Check if the provided IP address is a valid IPv6 address. |
|
Super-fast validation of hostname or IP address, optionally with a port. Returns a tuple (is_valid, message). |
Data¶
API¶
- duck.utils.net.HOSTNAME_LABEL_RE¶
‘compile(…)’
- duck.utils.net.MAX_HOSTNAME_LENGTH¶
253
- duck.utils.net.is_ipv4(ip_address: str) bool[source]¶
Check if the provided IP address is a valid IPv4 address.