bis_fetcher.jsonl

bis_fetcher.jsonl#

JSON Lines helpers (UTF-8, one json.dumps(..., ensure_ascii=False) object per line).

Functions

append_to_jsonl(data, filename[, encoding])

Append a json payload to the end of a jsonl file.

load_jsonl(filename[, encoding])

Load a jsonl file into a list of json objects.

remove_duplicates_from_list_of_dicts(data, key)

Keep the first dict for each value of key, preserving order.

save_jsonl(data, filename[, encoding])

Save a list of json objects to a jsonl file, overwriting it.