Python: Creating a streaming gzip'd file-like?
Python: Creating a streaming gzip'd file-like? Question: I’m trying to figure out the best way to compress a stream with Python’s zlib. I’ve got a file-like input stream (input, below) and an output function which accepts a file-like (output_function, below): with open(“file”) as input: output_function(input) And I’d like to gzip-compress input chunks before sending them …
Total answers: 6