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.2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for stream_inflate-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7043ff668ad97548da4ddb293bd5e6fe6d93773222cd71eb7663745aadf5ae16 |
|
MD5 | ee98a2576c62dd5382601a01b787e024 |
|
BLAKE2b-256 | ec5e4709a3bbff788b16e66f8b1071992bb14ed95d479a72255a2f9b1cd3633d |