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.