Uncompress DEFLATE streams in pure Python
Project description
stream-inflate
Uncompress DEFLATE streams in pure Python.
Installation
pip install stream-inflate
Usage
from stream_inflate import stream_inflate
import httpx
def compressed_chunks():
# Iterable that yields the bytes of a DEFLATE-compressed stream
with httpx.stream('GET', 'https://www.example.com/my.txt') as r:
yield from r.iter_raw(chunk_size=65536)
for uncompressed_chunk in stream_inflate(compressed_chunks()):
print(uncompressed_chunk)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stream-inflate-0.0.3.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for stream_inflate-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf9a7ee404fed08c1a8ee27554b086702dac57c9ffdbf1c3b8a8db57044f0c89 |
|
MD5 | e44b9ab3689ec172279a6c8c004141be |
|
BLAKE2b-256 | c3b48116f855b2da9d3c5a25f8bc47f19c541f0a922f38b4f295f404f1639c36 |