Simple streaming gzip reader for #python 2.x http://bo4.me/YLbrfR
@beaufour buf = cStringIO.StringIO() ; zip = gzip.GzipFile(None, "w+b", 9, buf) ; zip.write(blob) ; zip.close(); gzipped = buf.getvalue();
-
-
@colmmacc I'm trying to decompress, and also doing it streaming, not reading everything into men first? -
@beaufour Well that is harder, but I think StringIO supports the new memoryview model, should be doable. - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.