io
io
¶
I/O utilities for JSON and JSONL files.
load_json(path)
¶
save_json(path, data, indent=2)
¶
load_jsonl(path)
¶
Load a JSONL file as a list of dictionaries.
Source code in autochecklist/utils/io.py
iter_jsonl(path)
¶
Iterate over a JSONL file, yielding one item at a time.
Source code in autochecklist/utils/io.py
save_jsonl(path, data)
¶
Save a list of dictionaries to a JSONL file.
append_jsonl(path, item)
¶
Append a single item to a JSONL file.