pyebus.msgdecoder module
EBUS Message Decoding.
- class pyebus.msgdecoder.MsgDecoder(msgdefs)[source]
Bases:
object
Message Decoder.
- Parameters:
msgdefs (MsgDefs) – Message Definitions
The message decoder takes a EBUSD data one-line string and creates the corresponding
Msg
instance. The decoder needs to know the actual message definitions.- decode_line(line)[source]
Decode EBUSD data line and return
Msg
instance.- Raises:
ValueError – if line does not match expected format.
UnknownMsgError – if line is not covered by fields.