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.5.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for stream_inflate-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8b6a8f7067d8bdac6b62935df69c9f22c0b1345db8ec1625f4ca112355390c2 |
|
MD5 | 58f9f66e1e1adf002b056df4176a047c |
|
BLAKE2b-256 | 76a332f5fbaa190cd6da84964a4609a131920741bdbb1bc541ff929e3e6516fb |