schrodinger.seam.io.textio module

class schrodinger.seam.io.textio.WriteToText(file_name: str, header: Optional[str] = None, overwrite: bool = True, **kwargs)

Bases: _LocalOnlyPTransform, WriteToText

Write a PCollection of strings to a file.

This is meant as a replacement for beam’s WriteToText transform, which is doesn’t work in the Schrodinger environment due to a multiproc requirement.