write_jsonl

write_jsonl(objects: Iterable[X], path: str | Path, *, show_progress: bool = False, stream: Literal[False] = False) None[source]
write_jsonl(objects: Iterable[X], path: str | Path, *, show_progress: bool = False, stream: Literal[True] = True) Generator[X]

Write a list of Pydantic objects into a JSONL file.