dcwatson / deflate

Python extension wrapper for libdeflate.
MIT License
25 stars 6 forks source link

Can this library be used for streaming decompression? #9

Closed danielloader closed 2 years ago

danielloader commented 2 years ago

Thanks for writing this wrapper, is it possible to use it to stream decompress chunked data? Either through a pipe or streaming HTTP response?

Thanks again.

dcwatson commented 2 years ago

Not really. Take a look at https://github.com/ebiggers/libdeflate#api for more info, but tl;dr is that it's great for "small" chunks of data, not for streams.