aiohttp-zip-response 1.0.0__tar.gz → 1.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aiohttp_zip_response-1.0.0 → aiohttp_zip_response-1.0.2}/PKG-INFO +19 -2
- aiohttp_zip_response-1.0.2/README.md +42 -0
- aiohttp_zip_response-1.0.2/aiohttp_zip_response/py.typed +0 -0
- {aiohttp_zip_response-1.0.0 → aiohttp_zip_response-1.0.2}/pyproject.toml +1 -1
- aiohttp_zip_response-1.0.0/README.md +0 -25
- {aiohttp_zip_response-1.0.0 → aiohttp_zip_response-1.0.2}/LICENSE +0 -0
- {aiohttp_zip_response-1.0.0 → aiohttp_zip_response-1.0.2}/aiohttp_zip_response/__init__.py +0 -0
- {aiohttp_zip_response-1.0.0 → aiohttp_zip_response-1.0.2}/aiohttp_zip_response/zip_response.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aiohttp-zip-response
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: A AIOHTTP response class streaming a directory as ZIP archive
|
|
5
5
|
Home-page: https://github.com/DoctorJohn/aiohttp-zip-response
|
|
6
6
|
License: MIT
|
|
@@ -28,7 +28,24 @@ Description-Content-Type: text/markdown
|
|
|
28
28
|
|
|
29
29
|
# AIOHTTP ZIP Response
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
[![Versions][versions-image]][versions-url]
|
|
32
|
+
[![PyPI][pypi-image]][pypi-url]
|
|
33
|
+
[![Codecov][codecov-image]][codecov-url]
|
|
34
|
+
[![License][license-image]][license-url]
|
|
35
|
+
|
|
36
|
+
[versions-image]: https://img.shields.io/pypi/pyversions/aiohttp-zip-response
|
|
37
|
+
[versions-url]: https://github.com/DoctorJohn/aiohttp-zip-response/blob/master/setup.py
|
|
38
|
+
[pypi-image]: https://img.shields.io/pypi/v/aiohttp-zip-response
|
|
39
|
+
[pypi-url]: https://pypi.org/project/aiohttp-zip-response/
|
|
40
|
+
[codecov-image]: https://codecov.io/gh/DoctorJohn/aiohttp-zip-response/branch/main/graph/badge.svg
|
|
41
|
+
[codecov-url]: https://codecov.io/gh/DoctorJohn/aiohttp-zip-response
|
|
42
|
+
[license-image]: https://img.shields.io/pypi/l/aiohttp-zip-response
|
|
43
|
+
[license-url]: https://github.com/DoctorJohn/aiohttp-zip-response/blob/master/LICENSE
|
|
44
|
+
|
|
45
|
+
A AIOHTTP response class streaming the contents of a directory as a ZIP archive.
|
|
46
|
+
Thanks to [stream-zip](https://github.com/uktrade/stream-zip/), this works **without storing the entire ZIP in memory or disk**.
|
|
47
|
+
|
|
48
|
+
Generally, this package is meant to complement the existing `aiohttp.web.FileResponse` class, which can already stream the contents of a single file.
|
|
32
49
|
|
|
33
50
|
## Installation
|
|
34
51
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# AIOHTTP ZIP Response
|
|
2
|
+
|
|
3
|
+
[![Versions][versions-image]][versions-url]
|
|
4
|
+
[![PyPI][pypi-image]][pypi-url]
|
|
5
|
+
[![Codecov][codecov-image]][codecov-url]
|
|
6
|
+
[![License][license-image]][license-url]
|
|
7
|
+
|
|
8
|
+
[versions-image]: https://img.shields.io/pypi/pyversions/aiohttp-zip-response
|
|
9
|
+
[versions-url]: https://github.com/DoctorJohn/aiohttp-zip-response/blob/master/setup.py
|
|
10
|
+
[pypi-image]: https://img.shields.io/pypi/v/aiohttp-zip-response
|
|
11
|
+
[pypi-url]: https://pypi.org/project/aiohttp-zip-response/
|
|
12
|
+
[codecov-image]: https://codecov.io/gh/DoctorJohn/aiohttp-zip-response/branch/main/graph/badge.svg
|
|
13
|
+
[codecov-url]: https://codecov.io/gh/DoctorJohn/aiohttp-zip-response
|
|
14
|
+
[license-image]: https://img.shields.io/pypi/l/aiohttp-zip-response
|
|
15
|
+
[license-url]: https://github.com/DoctorJohn/aiohttp-zip-response/blob/master/LICENSE
|
|
16
|
+
|
|
17
|
+
A AIOHTTP response class streaming the contents of a directory as a ZIP archive.
|
|
18
|
+
Thanks to [stream-zip](https://github.com/uktrade/stream-zip/), this works **without storing the entire ZIP in memory or disk**.
|
|
19
|
+
|
|
20
|
+
Generally, this package is meant to complement the existing `aiohttp.web.FileResponse` class, which can already stream the contents of a single file.
|
|
21
|
+
|
|
22
|
+
## Installation
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install aiohttp-zip-response
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
from aiohttp import web
|
|
32
|
+
from aiohttp_zip_response import ZipResponse
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
async def handle_zip(request):
|
|
36
|
+
return ZipResponse('path/to/directory')
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
app = web.Application()
|
|
40
|
+
app.router.add_get('/zip', handle_zip)
|
|
41
|
+
web.run_app(app)
|
|
42
|
+
```
|
|
File without changes
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# AIOHTTP ZIP Response
|
|
2
|
-
|
|
3
|
-
A AIOHTTP response class streaming a directory as ZIP archive.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pip install aiohttp-zip-response
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```python
|
|
14
|
-
from aiohttp import web
|
|
15
|
-
from aiohttp_zip_response import ZipResponse
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
async def handle_zip(request):
|
|
19
|
-
return ZipResponse('path/to/directory')
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
app = web.Application()
|
|
23
|
-
app.router.add_get('/zip', handle_zip)
|
|
24
|
-
web.run_app(app)
|
|
25
|
-
```
|
|
File without changes
|
|
File without changes
|
{aiohttp_zip_response-1.0.0 → aiohttp_zip_response-1.0.2}/aiohttp_zip_response/zip_response.py
RENAMED
|
File without changes
|