I want to open a big file from the web, and would like to start processing it before it downloads entirely. What I would want is something like urllib2 but one that has another thread that downloads the file in the background. It will have a same interface as a file : if I do read for more bytes that are downloaded the main thread would block on it, and if the bytes are already there the read will return immediately. When everything is downloaded the additional downloader thread will die. When everything is read EOF will fire.
Is there some builtin module that does this?