powermon.protocols package

Package of the implemented protocols. Includes an Enumeration of available protocols, some helper functions as well as a Abstract Base Protocol and the protocol classes

class powermon.protocols.Protocol(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: StrEnum

Enumeration of currently implemented Protocols

powermon.protocols.get_protocol_definition(protocol, model=None)

Get the protocol based on the protocol name and optionally device model

powermon.protocols.list_commands(protocol: str = None)

helper function to display the commands available for a specified protocol

Parameters:

protocol (str, optional) – Name of protocol to list commands from. Defaults to None.

powermon.protocols.list_protocols()

helper function to display the list of supported protocols

Submodules