About Reading Pipe Output from a Shell Command
You can read the pipe output of a shell command line by line using sys.stdin
:
import sys
for line in sys.stdin.read().splitlines():
print(line)
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You