on_output Event
Fires whenever a segment is complete.
Syntax
class X12WriterOutputEventParams(object): @property def output_data() -> bytes: ... # In class X12Writer: @property def on_output() -> Callable[[X12WriterOutputEventParams], None]: ... @on_output.setter def on_output(event_hook: Callable[[X12WriterOutputEventParams], None]) -> None: ...
Remarks
The on_output event will fire when the writer completes a new segment and writes data to the output stream or buffer. The Data parameter contains the data bytes.