rtzip 0.3.0__tar.gz → 0.3.1__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.
- {rtzip-0.3.0/src/rtzip.egg-info → rtzip-0.3.1}/PKG-INFO +1 -1
- {rtzip-0.3.0 → rtzip-0.3.1}/pyproject.toml +1 -1
- {rtzip-0.3.0 → rtzip-0.3.1}/src/rtzip/models.py +6 -2
- {rtzip-0.3.0 → rtzip-0.3.1}/src/rtzip/remotezip.py +0 -6
- {rtzip-0.3.0 → rtzip-0.3.1/src/rtzip.egg-info}/PKG-INFO +1 -1
- {rtzip-0.3.0 → rtzip-0.3.1}/LICENSE +0 -0
- {rtzip-0.3.0 → rtzip-0.3.1}/README.md +0 -0
- {rtzip-0.3.0 → rtzip-0.3.1}/setup.cfg +0 -0
- {rtzip-0.3.0 → rtzip-0.3.1}/src/rtzip/__init__.py +0 -0
- {rtzip-0.3.0 → rtzip-0.3.1}/src/rtzip/algorithm_register.py +0 -0
- {rtzip-0.3.0 → rtzip-0.3.1}/src/rtzip/codec_wrappers.py +0 -0
- {rtzip-0.3.0 → rtzip-0.3.1}/src/rtzip/const.py +0 -0
- {rtzip-0.3.0 → rtzip-0.3.1}/src/rtzip/errors.py +0 -0
- {rtzip-0.3.0 → rtzip-0.3.1}/src/rtzip.egg-info/SOURCES.txt +0 -0
- {rtzip-0.3.0 → rtzip-0.3.1}/src/rtzip.egg-info/dependency_links.txt +0 -0
- {rtzip-0.3.0 → rtzip-0.3.1}/src/rtzip.egg-info/requires.txt +0 -0
- {rtzip-0.3.0 → rtzip-0.3.1}/src/rtzip.egg-info/top_level.txt +0 -0
|
@@ -5,11 +5,15 @@ from typing import Annotated, Self
|
|
|
5
5
|
|
|
6
6
|
import obstruct as obs
|
|
7
7
|
|
|
8
|
-
from rtzip.utils import exactly_get_slice
|
|
9
|
-
|
|
10
8
|
EXTRA_FIELD_HEADER = struct.Struct("<HH")
|
|
11
9
|
|
|
12
10
|
|
|
11
|
+
def exactly_get_slice(__obj, __offset, __length):
|
|
12
|
+
result = __obj[__offset:__offset + __length]
|
|
13
|
+
assert len(result) == __length
|
|
14
|
+
return result
|
|
15
|
+
|
|
16
|
+
|
|
13
17
|
def parse_extra_fields(buffer):
|
|
14
18
|
res = {}
|
|
15
19
|
|
|
@@ -36,12 +36,6 @@ class DataSource:
|
|
|
36
36
|
"""
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
def exactly_get_slice(__obj, __offset, __length):
|
|
40
|
-
result = __obj[__offset:__offset + __length]
|
|
41
|
-
assert len(result) == __length
|
|
42
|
-
return result
|
|
43
|
-
|
|
44
|
-
|
|
45
39
|
async def single_chunk_wrapper(__data: Buffer, /):
|
|
46
40
|
yield __data
|
|
47
41
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|