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.4.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for stream_inflate-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 438be73a8e2c4c1a008c787610d260381f5efcc06510e7d47f190001bd829eee |
|
MD5 | c1ee86877a81b97a97c476fd30ee0dc6 |
|
BLAKE2b-256 | 00bae45fab5b432deaf1d7772c51410e21c8b4f402b16d98ba45494460b836c6 |