zipwire 0.0.1__py3-none-any.whl
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.
- zipwire/__init__.py +33 -0
- zipwire/__main__.py +74 -0
- zipwire/_async.py +173 -0
- zipwire/_constants.py +126 -0
- zipwire/_decompress.py +146 -0
- zipwire/_errors.py +40 -0
- zipwire/_parser.py +273 -0
- zipwire/_sync.py +163 -0
- zipwire/_types.py +57 -0
- zipwire/_version.py +24 -0
- zipwire/_zipinfo.py +93 -0
- zipwire/backends/__init__.py +42 -0
- zipwire/backends/_aiohttp.py +55 -0
- zipwire/backends/_httpx2_async.py +55 -0
- zipwire/backends/_httpx2_sync.py +54 -0
- zipwire/backends/_requests.py +54 -0
- zipwire/backends/_urllib3.py +59 -0
- zipwire/py.typed +0 -0
- zipwire-0.0.1.dist-info/METADATA +134 -0
- zipwire-0.0.1.dist-info/RECORD +22 -0
- zipwire-0.0.1.dist-info/WHEEL +4 -0
- zipwire-0.0.1.dist-info/licenses/LICENSE +177 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"""Asynchronous aiohttp-based reader."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
import aiohttp
|
|
9
|
+
except ImportError as exc:
|
|
10
|
+
raise ImportError(
|
|
11
|
+
"AiohttpReader requires aiohttp. Install it with: pip install zipwire[aiohttp]"
|
|
12
|
+
) from exc
|
|
13
|
+
|
|
14
|
+
from zipwire._constants import STREAM_CHUNK_SIZE
|
|
15
|
+
from zipwire._errors import RangeRequestUnsupported
|
|
16
|
+
|
|
17
|
+
if typing.TYPE_CHECKING:
|
|
18
|
+
from collections.abc import AsyncIterator
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class AiohttpReader:
|
|
22
|
+
"""AsyncReader implementation using aiohttp.ClientSession."""
|
|
23
|
+
|
|
24
|
+
def __init__(self, url: str, *, session: aiohttp.ClientSession | None = None) -> None:
|
|
25
|
+
self._url = url
|
|
26
|
+
self._owns_session = session is None
|
|
27
|
+
self._session = session or aiohttp.ClientSession()
|
|
28
|
+
|
|
29
|
+
async def get_content_length(self) -> int:
|
|
30
|
+
async with self._session.head(self._url) as resp:
|
|
31
|
+
resp.raise_for_status()
|
|
32
|
+
if resp.headers.get("accept-ranges", "").lower() != "bytes":
|
|
33
|
+
raise RangeRequestUnsupported(
|
|
34
|
+
f"Server does not support range requests for {self._url}"
|
|
35
|
+
)
|
|
36
|
+
return int(resp.headers["content-length"])
|
|
37
|
+
|
|
38
|
+
async def read_range(self, offset: int, length: int) -> bytes:
|
|
39
|
+
end = offset + length - 1
|
|
40
|
+
headers = {"Range": f"bytes={offset}-{end}"}
|
|
41
|
+
async with self._session.get(self._url, headers=headers) as resp:
|
|
42
|
+
resp.raise_for_status()
|
|
43
|
+
return await resp.read()
|
|
44
|
+
|
|
45
|
+
async def stream_range(self, offset: int, length: int) -> AsyncIterator[bytes]:
|
|
46
|
+
end = offset + length - 1
|
|
47
|
+
headers = {"Range": f"bytes={offset}-{end}"}
|
|
48
|
+
async with self._session.get(self._url, headers=headers) as resp:
|
|
49
|
+
resp.raise_for_status()
|
|
50
|
+
async for chunk in resp.content.iter_chunked(STREAM_CHUNK_SIZE):
|
|
51
|
+
yield chunk
|
|
52
|
+
|
|
53
|
+
async def close(self) -> None:
|
|
54
|
+
if self._owns_session:
|
|
55
|
+
await self._session.close()
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"""Asynchronous httpx2-based reader."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
import httpx2
|
|
9
|
+
except ImportError as exc:
|
|
10
|
+
raise ImportError(
|
|
11
|
+
"Httpx2AsyncReader requires httpx2. Install it with: pip install zipwire[httpx2]"
|
|
12
|
+
) from exc
|
|
13
|
+
|
|
14
|
+
from zipwire._constants import STREAM_CHUNK_SIZE
|
|
15
|
+
from zipwire._errors import RangeRequestUnsupported
|
|
16
|
+
|
|
17
|
+
if typing.TYPE_CHECKING:
|
|
18
|
+
from collections.abc import AsyncIterator
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Httpx2AsyncReader:
|
|
22
|
+
"""AsyncReader implementation using httpx2.AsyncClient."""
|
|
23
|
+
|
|
24
|
+
def __init__(self, url: str, *, client: httpx2.AsyncClient | None = None) -> None:
|
|
25
|
+
self._url = url
|
|
26
|
+
self._owns_client = client is None
|
|
27
|
+
self._client = client or httpx2.AsyncClient()
|
|
28
|
+
|
|
29
|
+
async def get_content_length(self) -> int:
|
|
30
|
+
resp = await self._client.head(self._url)
|
|
31
|
+
resp.raise_for_status()
|
|
32
|
+
if resp.headers.get("accept-ranges", "").lower() != "bytes":
|
|
33
|
+
raise RangeRequestUnsupported(
|
|
34
|
+
f"Server does not support range requests for {self._url}"
|
|
35
|
+
)
|
|
36
|
+
return int(resp.headers["content-length"])
|
|
37
|
+
|
|
38
|
+
async def read_range(self, offset: int, length: int) -> bytes:
|
|
39
|
+
end = offset + length - 1
|
|
40
|
+
resp = await self._client.get(self._url, headers={"Range": f"bytes={offset}-{end}"})
|
|
41
|
+
resp.raise_for_status()
|
|
42
|
+
return resp.content
|
|
43
|
+
|
|
44
|
+
async def stream_range(self, offset: int, length: int) -> AsyncIterator[bytes]:
|
|
45
|
+
end = offset + length - 1
|
|
46
|
+
async with self._client.stream(
|
|
47
|
+
"GET", self._url, headers={"Range": f"bytes={offset}-{end}"}
|
|
48
|
+
) as resp:
|
|
49
|
+
resp.raise_for_status()
|
|
50
|
+
async for chunk in resp.aiter_bytes(chunk_size=STREAM_CHUNK_SIZE):
|
|
51
|
+
yield chunk
|
|
52
|
+
|
|
53
|
+
async def close(self) -> None:
|
|
54
|
+
if self._owns_client:
|
|
55
|
+
await self._client.aclose()
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""Synchronous httpx2-based reader."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
import httpx2
|
|
9
|
+
except ImportError as exc:
|
|
10
|
+
raise ImportError(
|
|
11
|
+
"Httpx2SyncReader requires httpx2. Install it with: pip install zipwire[httpx2]"
|
|
12
|
+
) from exc
|
|
13
|
+
|
|
14
|
+
from zipwire._constants import STREAM_CHUNK_SIZE
|
|
15
|
+
from zipwire._errors import RangeRequestUnsupported
|
|
16
|
+
|
|
17
|
+
if typing.TYPE_CHECKING:
|
|
18
|
+
from collections.abc import Iterator
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Httpx2SyncReader:
|
|
22
|
+
"""SyncReader implementation using httpx2.Client."""
|
|
23
|
+
|
|
24
|
+
def __init__(self, url: str, *, client: httpx2.Client | None = None) -> None:
|
|
25
|
+
self._url = url
|
|
26
|
+
self._owns_client = client is None
|
|
27
|
+
self._client = client or httpx2.Client()
|
|
28
|
+
|
|
29
|
+
def get_content_length(self) -> int:
|
|
30
|
+
resp = self._client.head(self._url)
|
|
31
|
+
resp.raise_for_status()
|
|
32
|
+
if resp.headers.get("accept-ranges", "").lower() != "bytes":
|
|
33
|
+
raise RangeRequestUnsupported(
|
|
34
|
+
f"Server does not support range requests for {self._url}"
|
|
35
|
+
)
|
|
36
|
+
return int(resp.headers["content-length"])
|
|
37
|
+
|
|
38
|
+
def read_range(self, offset: int, length: int) -> bytes:
|
|
39
|
+
end = offset + length - 1
|
|
40
|
+
resp = self._client.get(self._url, headers={"Range": f"bytes={offset}-{end}"})
|
|
41
|
+
resp.raise_for_status()
|
|
42
|
+
return resp.content
|
|
43
|
+
|
|
44
|
+
def stream_range(self, offset: int, length: int) -> Iterator[bytes]:
|
|
45
|
+
end = offset + length - 1
|
|
46
|
+
with self._client.stream(
|
|
47
|
+
"GET", self._url, headers={"Range": f"bytes={offset}-{end}"}
|
|
48
|
+
) as resp:
|
|
49
|
+
resp.raise_for_status()
|
|
50
|
+
yield from resp.iter_bytes(chunk_size=STREAM_CHUNK_SIZE)
|
|
51
|
+
|
|
52
|
+
def close(self) -> None:
|
|
53
|
+
if self._owns_client:
|
|
54
|
+
self._client.close()
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""Synchronous requests-based reader."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
import requests
|
|
9
|
+
except ImportError as exc:
|
|
10
|
+
raise ImportError(
|
|
11
|
+
"RequestsReader requires requests. Install it with: pip install zipwire[requests]"
|
|
12
|
+
) from exc
|
|
13
|
+
|
|
14
|
+
from zipwire._constants import STREAM_CHUNK_SIZE
|
|
15
|
+
from zipwire._errors import RangeRequestUnsupported
|
|
16
|
+
|
|
17
|
+
if typing.TYPE_CHECKING:
|
|
18
|
+
from collections.abc import Iterator
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class RequestsReader:
|
|
22
|
+
"""SyncReader implementation using requests.Session."""
|
|
23
|
+
|
|
24
|
+
def __init__(self, url: str, *, session: requests.Session | None = None) -> None:
|
|
25
|
+
self._url = url
|
|
26
|
+
self._owns_session = session is None
|
|
27
|
+
self._session = session or requests.Session()
|
|
28
|
+
|
|
29
|
+
def get_content_length(self) -> int:
|
|
30
|
+
resp = self._session.head(self._url)
|
|
31
|
+
resp.raise_for_status()
|
|
32
|
+
if resp.headers.get("accept-ranges", "").lower() != "bytes":
|
|
33
|
+
raise RangeRequestUnsupported(
|
|
34
|
+
f"Server does not support range requests for {self._url}"
|
|
35
|
+
)
|
|
36
|
+
return int(resp.headers["content-length"])
|
|
37
|
+
|
|
38
|
+
def read_range(self, offset: int, length: int) -> bytes:
|
|
39
|
+
end = offset + length - 1
|
|
40
|
+
resp = self._session.get(self._url, headers={"Range": f"bytes={offset}-{end}"})
|
|
41
|
+
resp.raise_for_status()
|
|
42
|
+
return resp.content
|
|
43
|
+
|
|
44
|
+
def stream_range(self, offset: int, length: int) -> Iterator[bytes]:
|
|
45
|
+
end = offset + length - 1
|
|
46
|
+
resp = self._session.get(
|
|
47
|
+
self._url, headers={"Range": f"bytes={offset}-{end}"}, stream=True
|
|
48
|
+
)
|
|
49
|
+
resp.raise_for_status()
|
|
50
|
+
yield from resp.iter_content(chunk_size=STREAM_CHUNK_SIZE)
|
|
51
|
+
|
|
52
|
+
def close(self) -> None:
|
|
53
|
+
if self._owns_session:
|
|
54
|
+
self._session.close()
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"""Synchronous urllib3-based reader."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
|
|
7
|
+
import urllib3
|
|
8
|
+
|
|
9
|
+
from zipwire._constants import STREAM_CHUNK_SIZE
|
|
10
|
+
from zipwire._errors import RangeRequestUnsupported
|
|
11
|
+
|
|
12
|
+
if typing.TYPE_CHECKING:
|
|
13
|
+
from collections.abc import Iterator
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class Urllib3Reader:
|
|
17
|
+
"""SyncReader implementation using urllib3.PoolManager."""
|
|
18
|
+
|
|
19
|
+
def __init__(self, url: str, *, pool: urllib3.PoolManager | None = None) -> None:
|
|
20
|
+
self._url = url
|
|
21
|
+
self._owns_pool = pool is None
|
|
22
|
+
self._pool = pool or urllib3.PoolManager()
|
|
23
|
+
|
|
24
|
+
def get_content_length(self) -> int:
|
|
25
|
+
resp = self._pool.request("HEAD", self._url)
|
|
26
|
+
if resp.status >= 400:
|
|
27
|
+
raise OSError(f"HEAD request failed with status {resp.status}")
|
|
28
|
+
if resp.headers.get("accept-ranges", "").lower() != "bytes":
|
|
29
|
+
raise RangeRequestUnsupported(
|
|
30
|
+
f"Server does not support range requests for {self._url}"
|
|
31
|
+
)
|
|
32
|
+
return int(resp.headers["content-length"])
|
|
33
|
+
|
|
34
|
+
def read_range(self, offset: int, length: int) -> bytes:
|
|
35
|
+
end = offset + length - 1
|
|
36
|
+
resp = self._pool.request("GET", self._url, headers={"Range": f"bytes={offset}-{end}"})
|
|
37
|
+
if resp.status >= 400:
|
|
38
|
+
raise OSError(f"Range request failed with status {resp.status}")
|
|
39
|
+
return bytes(resp.data)
|
|
40
|
+
|
|
41
|
+
def stream_range(self, offset: int, length: int) -> Iterator[bytes]:
|
|
42
|
+
end = offset + length - 1
|
|
43
|
+
resp = self._pool.request(
|
|
44
|
+
"GET",
|
|
45
|
+
self._url,
|
|
46
|
+
headers={"Range": f"bytes={offset}-{end}"},
|
|
47
|
+
preload_content=False,
|
|
48
|
+
)
|
|
49
|
+
if resp.status >= 400:
|
|
50
|
+
resp.release_conn()
|
|
51
|
+
raise OSError(f"Range request failed with status {resp.status}")
|
|
52
|
+
try:
|
|
53
|
+
yield from resp.stream(STREAM_CHUNK_SIZE)
|
|
54
|
+
finally:
|
|
55
|
+
resp.release_conn()
|
|
56
|
+
|
|
57
|
+
def close(self) -> None:
|
|
58
|
+
if self._owns_pool:
|
|
59
|
+
self._pool.clear()
|
zipwire/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: zipwire
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Read and extract files from remote ZIP archives over HTTP range requests
|
|
5
|
+
Project-URL: Homepage, https://github.com/tiran/zipwire
|
|
6
|
+
Project-URL: Source, https://github.com/tiran/zipwire
|
|
7
|
+
Project-URL: Issues, https://github.com/tiran/zipwire/issues
|
|
8
|
+
Author-email: Christian Heimes <christian@python.org>
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
20
|
+
Classifier: Typing :: Typed
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Requires-Dist: urllib3>=2.0
|
|
23
|
+
Provides-Extra: aiohttp
|
|
24
|
+
Requires-Dist: aiohttp>=3.9; extra == 'aiohttp'
|
|
25
|
+
Provides-Extra: all
|
|
26
|
+
Requires-Dist: aiohttp>=3.9; extra == 'all'
|
|
27
|
+
Requires-Dist: httpx2>=2.0; extra == 'all'
|
|
28
|
+
Requires-Dist: requests>=2.31; extra == 'all'
|
|
29
|
+
Provides-Extra: httpx2
|
|
30
|
+
Requires-Dist: httpx2>=2.0; extra == 'httpx2'
|
|
31
|
+
Provides-Extra: requests
|
|
32
|
+
Requires-Dist: requests>=2.31; extra == 'requests'
|
|
33
|
+
Description-Content-Type: text/markdown
|
|
34
|
+
|
|
35
|
+
# zipwire
|
|
36
|
+
|
|
37
|
+
Extract individual files from remote ZIP archives over HTTP - without
|
|
38
|
+
downloading the whole thing.
|
|
39
|
+
|
|
40
|
+
A [zip wire](https://en.wikipedia.org/wiki/Zip-line) gets you straight to your
|
|
41
|
+
destination. This library does the same: it uses HTTP range requests to fetch
|
|
42
|
+
only the central directory and the specific entries you ask for, skipping
|
|
43
|
+
everything else. A 10 KB file inside a 2 GB archive? zipwire downloads roughly
|
|
44
|
+
10 KB (plus a small overhead for the central directory), not 2 GB.
|
|
45
|
+
|
|
46
|
+
## How it works
|
|
47
|
+
|
|
48
|
+
ZIP archives store a central directory at the end of the file that lists every
|
|
49
|
+
entry with its offset and size. zipwire fetches that directory first (a single
|
|
50
|
+
range request), then makes one additional range request per file you extract.
|
|
51
|
+
The server must support `Range` requests (`Accept-Ranges: bytes`), which most
|
|
52
|
+
CDNs, object stores, and static file servers do.
|
|
53
|
+
|
|
54
|
+
## Key features
|
|
55
|
+
|
|
56
|
+
- **Selective extraction** - download only the files you need, not the entire
|
|
57
|
+
archive.
|
|
58
|
+
- **Streaming decompression** - `read_into` decompresses in chunks, keeping
|
|
59
|
+
memory usage low even for large entries.
|
|
60
|
+
- **Sync and async** - `SyncRemoteZip` for synchronous code,
|
|
61
|
+
`AsyncRemoteZip` with `await`/`async with` for asyncio.
|
|
62
|
+
- **ZIP64** - supports archives and entries larger than 4 GiB.
|
|
63
|
+
- **Pluggable backends** - bring your own HTTP library (see below).
|
|
64
|
+
|
|
65
|
+
## Installation and backends
|
|
66
|
+
|
|
67
|
+
The default installation includes the **urllib3** backend. To use a different
|
|
68
|
+
HTTP library, install the matching extra - for example httpx2 gives you both
|
|
69
|
+
sync and async:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
pip install zipwire[httpx2]
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
| Backend | Class | Mode | Install extra |
|
|
76
|
+
|----------|--------------------|-------|---------------|
|
|
77
|
+
| urllib3 | `Urllib3Reader` | sync | *(included)* |
|
|
78
|
+
| httpx2 | `Httpx2SyncReader` | sync | `httpx2` |
|
|
79
|
+
| httpx2 | `Httpx2AsyncReader`| async | `httpx2` |
|
|
80
|
+
| requests | `RequestsReader` | sync | `requests` |
|
|
81
|
+
| aiohttp | `AiohttpReader` | async | `aiohttp` |
|
|
82
|
+
|
|
83
|
+
Every backend accepts an optional pre-configured client or session so you can
|
|
84
|
+
share connection pools, authentication, and retry configuration.
|
|
85
|
+
|
|
86
|
+
## Examples
|
|
87
|
+
|
|
88
|
+
### Sync - list files and read one
|
|
89
|
+
|
|
90
|
+
```python
|
|
91
|
+
from zipwire import SyncRemoteZip
|
|
92
|
+
from zipwire.backends import Urllib3Reader
|
|
93
|
+
|
|
94
|
+
reader = Urllib3Reader("https://archive.example/data.zip")
|
|
95
|
+
with SyncRemoteZip(reader) as rz:
|
|
96
|
+
for info in rz.infolist():
|
|
97
|
+
print(f"{info.filename} {info.file_size} bytes")
|
|
98
|
+
|
|
99
|
+
data = rz.read("path/to/file.txt")
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Sync - stream a large file to disk
|
|
103
|
+
|
|
104
|
+
`read_into` decompresses in chunks so peak memory stays low:
|
|
105
|
+
|
|
106
|
+
```python
|
|
107
|
+
from zipwire import SyncRemoteZip
|
|
108
|
+
from zipwire.backends import Urllib3Reader
|
|
109
|
+
|
|
110
|
+
reader = Urllib3Reader("https://archive.example/large.zip")
|
|
111
|
+
with SyncRemoteZip(reader) as rz:
|
|
112
|
+
with open("output.bin", "wb") as f:
|
|
113
|
+
rz.read_into("big-file.bin", f)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Async
|
|
117
|
+
|
|
118
|
+
```python
|
|
119
|
+
import asyncio
|
|
120
|
+
from zipwire import AsyncRemoteZip
|
|
121
|
+
from zipwire.backends import AiohttpReader
|
|
122
|
+
|
|
123
|
+
async def main():
|
|
124
|
+
reader = AiohttpReader("https://archive.example/data.zip")
|
|
125
|
+
async with AsyncRemoteZip(reader) as rz:
|
|
126
|
+
data = await rz.read("path/to/file.txt")
|
|
127
|
+
print(data.decode())
|
|
128
|
+
|
|
129
|
+
asyncio.run(main())
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## License
|
|
133
|
+
|
|
134
|
+
Apache-2.0
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
zipwire/__init__.py,sha256=dzhZNv6c78rRR4zYO4hNjGHnZ5Emg2sDQVYDV18C1Mc,825
|
|
2
|
+
zipwire/__main__.py,sha256=TYHSpb8nAZbD85SGZz_gHcD8grYvLe2pEZt5YsojvlA,2210
|
|
3
|
+
zipwire/_async.py,sha256=_P0BVab6XfVnpx5MFkNni4qS8xCB22CzFTYpCISjKGY,5944
|
|
4
|
+
zipwire/_constants.py,sha256=eChYiRrCn3u4MSwNjVVyqlCjX31ifYOVYPQ37-ysTMM,4087
|
|
5
|
+
zipwire/_decompress.py,sha256=JTbomt6wh6Pqhcr11W-rPOe33kiS6rRyB463cNbXpRs,4895
|
|
6
|
+
zipwire/_errors.py,sha256=Pd_8oxVlUjKVIGYEWowzPclcLUsowEb1QQg7m7uv4C4,1174
|
|
7
|
+
zipwire/_parser.py,sha256=HHBDjbJWNQhWTZRM0xmgHkWWGrwAxyHqOWIZgIypyDE,8552
|
|
8
|
+
zipwire/_sync.py,sha256=USCLBwUf_SD3uOFoJoPNv9am0otJo2mEPAAS_rWwHNg,5660
|
|
9
|
+
zipwire/_types.py,sha256=8zrQgkSVjTh-vJlll0nZjyRTMOVOjO8zTHy881hVPjw,1640
|
|
10
|
+
zipwire/_version.py,sha256=8OsTLsIVB9D0HdPTmt5rVwyVUBe9xTVGkRslXicxzkM,520
|
|
11
|
+
zipwire/_zipinfo.py,sha256=qUVM0eOjQuDAFLtGfvAGx9jsq2bJWbLI6DwhjhcTXSc,3370
|
|
12
|
+
zipwire/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
+
zipwire/backends/__init__.py,sha256=6hYEG3KnCtSiTkIWmDIJWa9q_ZWr63ynxi25fFLirHc,1461
|
|
14
|
+
zipwire/backends/_aiohttp.py,sha256=XRMjYJ4IQsM4cRitJNYimtqVL-NOzvY42kt9sImOPaE,1962
|
|
15
|
+
zipwire/backends/_httpx2_async.py,sha256=OkQLhAbbREivpbpD9Wk3zUEc3NeH-UJ_BVtOHtl8klE,1879
|
|
16
|
+
zipwire/backends/_httpx2_sync.py,sha256=Wi41Teett5DE5b-rCMpXvumfwTnnZCTPRtS4z-Uorwo,1763
|
|
17
|
+
zipwire/backends/_requests.py,sha256=y5VNuIHCterkQ4YV5eBc5kM6wMPogBmA8DLvdKvX0sU,1776
|
|
18
|
+
zipwire/backends/_urllib3.py,sha256=mDazt5Cj5N-53MURQBEf-Xg2aXttTRTF95BzmwbVll4,1979
|
|
19
|
+
zipwire-0.0.1.dist-info/METADATA,sha256=RTpaRLnxW2_wppD9k9V2SSagYku1VU-yRS2oOFAmg7Y,4601
|
|
20
|
+
zipwire-0.0.1.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
21
|
+
zipwire-0.0.1.dist-info/licenses/LICENSE,sha256=hGx8N3fKUEAgdXJ51Sp8hTFlQ9nrkvkLCJ5C5XSsCSc,10180
|
|
22
|
+
zipwire-0.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding any notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|