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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rtzip
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Requires-Python: >=3.12
5
5
  License-File: LICENSE
6
6
  Requires-Dist: obstruct==0.5.2
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "rtzip"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  requires-python = ">=3.12"
5
5
  dependencies = [
6
6
  "obstruct==0.5.2",
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rtzip
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Requires-Python: >=3.12
5
5
  License-File: LICENSE
6
6
  Requires-Dist: obstruct==0.5.2
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes