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.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for stream_inflate-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4baa7416499e09982853ab4b238ccf6fe96278751c30c07f5ddbab496da52db4 |
|
MD5 | 15f629fcbceb808451b71a9696319fc7 |
|
BLAKE2b-256 | 1e54878cb1e7ae9afaae2f56e9eb378a0a8e567518eb469aaed17479a1fdaa4e |