Uncompress DEFLATE streams in pure Python
Project description
stream-inflate
Uncompress DEFLATE streams in pure Python.
Work in progress. This README serves as a rough design spec.
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.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for stream_inflate-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5fb82e1bd8232517ac00d5ccc5af194cfa4901e536e9243e81246d9d7725f72 |
|
MD5 | b5a969d991d2b6da7a2b071949a9619d |
|
BLAKE2b-256 | 21b1be7f4680477f69b6d94361e399aa7ee2aafd078e831d8b147e113dd7aa09 |