JsonlFileWriter#

class JsonlFileWriter(file_path: Path)[source]#

Bases: object

Handles newline-delimited JSON writing with a persistent file handle.

Methods

close

Close the file writer.

open

write

Append data as one JSON line, mapping non-finite floats to null.

write(
data: Measurement | Command,
)[source]#

Append data as one JSON line, mapping non-finite floats to null.

open()[source]#
close()[source]#

Close the file writer.