buffpopen — Buffered subprocess. Popen implementation¶
This implementation allows to read and write output without blocking
-
class
enki.lib.buffpopen.BufferedPopen(command)¶ Bases:
objectBufferred version of Popen. Never locks, but uses unlimited buffers. May eat all the system memory, if something goes wrong.
-
start(args)¶ Start the process
-
stop()¶ Stop the process
-
isAlive()¶ Check if process is alive
-
write(text)¶ Write data to the subprocess
-
readOutput()¶ Read stdout data from the subprocess
-