OEWriteRecord

OEWriteRecord(ofs: Union[BinaryIO, TextIO, oeostream], record: OERecord, fmt: str="binary") -> bool

Writes a record to an output stream, and returns True if the write is successful.

ofs
The output stream or file to which the record will be written.
record
The OERecord object to be written.
fmt
The format to be written. Allowed values are “binary” (default) and “json”.

write_record

write_record is an alias to the OEWriteRecord function.