(path: Path)
| 16 | |
| 17 | |
| 18 | def iter_jsonl(path: Path): |
| 19 | with path.open("r", encoding="utf-8") as handle: |
| 20 | for line in handle: |
| 21 | line = line.strip() |
| 22 | if line: |
| 23 | yield json.loads(line) |
| 24 | |
| 25 | |
| 26 | def write_jsonl(path: Path, rows) -> int: |
no outgoing calls
no test coverage detected