I use two different libraries. One produces a stream as StringIO . Another library expects an object of type File and calls a read method on it. I do not want to stop the stream in a temporary file to avoid disk I / O.
Is there a way to create a BufferedReader from a StringIO object? Is there a different approach to solving this problem?
Environmental Information: Python 2.7
source
share