Module Contents


Bases: object

Subclass of module.

This subclass of module is intended for providing implementations of some helpful tools for

static bytes_to_octal(bytes_obj: bytes, extra_zero: bool = False) str

Convert bytes to their octal representation.

  • bytes_obj (bytes) – bytes to convert

  • extra_zero (bool) – add extra_zero to the result

Return str:

octal representation of bytes

static post_payload(sender: Callable[Ellipsis, str], payload: str | bytes) str

Post command to sender and receive the result.

  • sender (Callable[..., Any]) – sender function

  • payload (Union[str, bytes]) – command to post

Return str:

post command result