ezsnmp.utils module
- ezsnmp.utils.is_hostname_ipv6(hostname: str) bool
- ezsnmp.utils.strip_non_printable(value: str | None) str | None
Removes any non-printable characters and adds an indicator to the string when binary characters are fonud.
- Parameters:
value – the value that you wish to strip
- ezsnmp.utils.tostr(value: str | int | float | None) str | None
Converts any variable to a string or returns None if the variable contained None to begin with; this function currently supports None, unicode strings, byte strings and numbers.
- Parameters:
value – the value you wish to convert to a string