I need a stream in Python that is writing stuff. But while it is writing it, a threaded method should read from it, until it gets closed (EOF).
So far I can only create a stream with stream = io.BinaryIO('binarystart')
and then stream.seek(0, 1)
to begining of the stream to read it. But then I cannot append binary strings to the end of the stream. Because the main process shares the same stream (therefor also the same cursor and cursor position) with the threaded reader.
Any ideas to solve this?