I want to compress a sequence of bytes one byte at a time. (I am already 
processing the bytes one byte at a time, for other reasons.) I don't 
particularly care *which* compression method is used, and in fact I'm not 
even interested in the compressed data itself, only its length. So I'm 
looking for something similar to this:

count = 0
for b in stream:
    count += incremental_compressor.compressor(b)

or some variation. Apart from bzip2, do I have any other options in the 
std lib?




Reply via email to