How to stream lines from stdout with subprocessPublished byalexwlchan.neton •1 min readUse subprocess.Popen() with bufsize=1 and text=True, then you can interate over the lines with proc.stdout.StreamLinesStdoutSubprocessLearn moreShareLegalReport