pyx12.syntax

X12 syntax validation functions

Functions

is_syntax_valid(seg_data, syn)

Verifies the segment against the syntax

syntax_str(syntax)

syntax_ele_id_str(seg_id, ele_pos_list)

Module Contents

pyx12.syntax.is_syntax_valid(seg_data, syn)[source]

Verifies the segment against the syntax :param seg_data: data segment instance :type seg_data: L{segment<segment.Segment>} :param syn: list containing the syntax type, and the indices of elements :type syn: list[string] :rtype: tuple(boolean, error string)

Parameters:
Return type:

tuple[bool, str | None]

pyx12.syntax.syntax_str(syntax)[source]
Return type:

string

Parameters:

syntax (list[Any])

pyx12.syntax.syntax_ele_id_str(seg_id, ele_pos_list)[source]
Return type:

string

Parameters: