pyx12.rawx12file

Low level interface to an X12 data input stream. Iterates over segment line strings. Used by X12Reader.

Attributes

Classes

RawX12File

Interface to an X12 data file

Module Contents

pyx12.rawx12file.DEFAULT_BUFSIZE = 8192[source]
pyx12.rawx12file.ISA_LEN = 106[source]
class pyx12.rawx12file.RawX12File(fin)[source]

Interface to an X12 data file

Initialize the file X12 file reader

Parameters:

fin (open file object) – an open, readable file object

fd: TextIO[source]
buffer: str[source]
icvn: str[source]
seg_term: str[source]
ele_term: str[source]
subele_term: str[source]
repetition_term: str | None[source]
get_term()[source]

Get the original terminators

Return type:

tuple(string, string, string, string)