A AIOHTTP response class streaming a directory as ZIP archive
Project description
AIOHTTP ZIP Response
A AIOHTTP response class streaming the contents of a directory as a ZIP archive. Thanks to stream-zip, this works without storing the entire ZIP in memory or disk.
Generally, this package is meant to complement the existing aiohttp.web.FileResponse
class, which can already stream the contents of a single file.
Installation
pip install aiohttp-zip-response
Usage
from aiohttp import web
from aiohttp_zip_response import ZipResponse
async def handle_zip(request):
return ZipResponse('path/to/directory')
app = web.Application()
app.router.add_get('/zip', handle_zip)
web.run_app(app)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aiohttp_zip_response-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bac0e5ba4289e4397a613d8fec56ff016ebf5bad5a8d7656b900d09e5b0629be |
|
MD5 | be24bd8c4d3e7bacc3200cd353f12289 |
|
BLAKE2b-256 | 475b9adb1d02d213ee8762ba517bc0448478fbea67d145407b6215944a962f31 |
Close
Hashes for aiohttp_zip_response-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7b552c267e261955141fbfe1e0efbfc0840aea3d175ad2e5440b7daca24e8bd |
|
MD5 | 88dbc4c1a52af806b2ee7c32ad600fc6 |
|
BLAKE2b-256 | 4544fa32677001bd7155a28c57e2ca969f29e09b0bdf46db14913f4368b8209a |