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:
StrEnumEnumeration 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¶
- powermon.protocols.abstractprotocol module
AbstractProtocolAbstractProtocol.add_command_definition()AbstractProtocol.add_command_definitions()AbstractProtocol.add_supported_ports()AbstractProtocol.check_crc()AbstractProtocol.check_definitions_count()AbstractProtocol.check_valid()AbstractProtocol.clear_supported_ports()AbstractProtocol.get_command_definition()AbstractProtocol.get_command_definition_dtos()AbstractProtocol.get_full_command()AbstractProtocol.get_id_command()AbstractProtocol.list_commands()AbstractProtocol.protocol_idAbstractProtocol.remove_command_definitions()AbstractProtocol.replace_command_definition()AbstractProtocol.split_response()AbstractProtocol.to_dto()AbstractProtocol.trim_response()
AbstractProtocolDTO
- powermon.protocols.constants module
- powermon.protocols.daly module
- powermon.protocols.helpers module
- powermon.protocols.jkserial module
- powermon.protocols.neey module
- powermon.protocols.pi18 module
- powermon.protocols.pi30 module
- powermon.protocols.ved module