megfile 4.1.3.post2__py3-none-any.whl → 4.1.4.post1__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.
- megfile/lib/s3_prefetch_reader.py +2 -1
- megfile/s3_path.py +15 -6
- megfile/version.py +1 -1
- {megfile-4.1.3.post2.dist-info → megfile-4.1.4.post1.dist-info}/METADATA +1 -1
- {megfile-4.1.3.post2.dist-info → megfile-4.1.4.post1.dist-info}/RECORD +10 -10
- {megfile-4.1.3.post2.dist-info → megfile-4.1.4.post1.dist-info}/WHEEL +1 -1
- {megfile-4.1.3.post2.dist-info → megfile-4.1.4.post1.dist-info}/entry_points.txt +0 -0
- {megfile-4.1.3.post2.dist-info → megfile-4.1.4.post1.dist-info}/licenses/LICENSE +0 -0
- {megfile-4.1.3.post2.dist-info → megfile-4.1.4.post1.dist-info}/licenses/LICENSE.pyre +0 -0
- {megfile-4.1.3.post2.dist-info → megfile-4.1.4.post1.dist-info}/top_level.txt +0 -0
|
@@ -117,7 +117,8 @@ class S3PrefetchReader(BasePrefetchReader):
|
|
|
117
117
|
return fetch_response()
|
|
118
118
|
|
|
119
119
|
def _fetch_buffer(self, index: int) -> BytesIO:
|
|
120
|
-
start
|
|
120
|
+
start = index * self._block_size
|
|
121
|
+
end = min((index + 1) * self._block_size - 1, self._content_size - 1)
|
|
121
122
|
response = self._fetch_response(start=start, end=end)
|
|
122
123
|
etag = response.get("ETag", None)
|
|
123
124
|
if self._content_etag and etag and etag != self._content_etag:
|
megfile/s3_path.py
CHANGED
|
@@ -290,14 +290,23 @@ def get_s3_client(
|
|
|
290
290
|
profile_name=profile_name,
|
|
291
291
|
)
|
|
292
292
|
|
|
293
|
+
try:
|
|
294
|
+
default_config = botocore.config.Config(
|
|
295
|
+
connect_timeout=5,
|
|
296
|
+
max_pool_connections=GLOBAL_MAX_WORKERS,
|
|
297
|
+
request_checksum_calculation="when_required",
|
|
298
|
+
response_checksum_validation="when_required",
|
|
299
|
+
)
|
|
300
|
+
except TypeError: # botocore < 1.36.0
|
|
301
|
+
default_config = botocore.config.Config(
|
|
302
|
+
connect_timeout=5,
|
|
303
|
+
max_pool_connections=GLOBAL_MAX_WORKERS,
|
|
304
|
+
)
|
|
305
|
+
|
|
293
306
|
if config:
|
|
294
|
-
config =
|
|
295
|
-
connect_timeout=5, max_pool_connections=GLOBAL_MAX_WORKERS
|
|
296
|
-
).merge(config)
|
|
307
|
+
config = default_config.merge(config)
|
|
297
308
|
else:
|
|
298
|
-
config =
|
|
299
|
-
connect_timeout=5, max_pool_connections=GLOBAL_MAX_WORKERS
|
|
300
|
-
)
|
|
309
|
+
config = default_config
|
|
301
310
|
|
|
302
311
|
addressing_style = get_env_var("AWS_S3_ADDRESSING_STYLE", profile_name=profile_name)
|
|
303
312
|
if addressing_style:
|
megfile/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION = "4.1.
|
|
1
|
+
VERSION = "4.1.4.post1"
|
|
@@ -11,14 +11,14 @@ megfile/http_path.py,sha256=yRIk-fNbrsY8rUS5KVOfocS_PS520dX5KOs8lImpLaY,14173
|
|
|
11
11
|
megfile/interfaces.py,sha256=p4UvVZpeLx5djd6bqqDaygIx_s-_AxIVj-gudTch4JE,8467
|
|
12
12
|
megfile/pathlike.py,sha256=3Hnw-fn6RcIe9iPrJt00QdHSA--UfDyxnVBuZ_ymYYQ,31278
|
|
13
13
|
megfile/s3.py,sha256=abBxnI7RIyn7n7qjGszP1VruYd6Gi9I8QnUOvsHkx1Y,16325
|
|
14
|
-
megfile/s3_path.py,sha256=
|
|
14
|
+
megfile/s3_path.py,sha256=S8iulho1btVLLvNU-OtcskkbaAC8yNXnBrFNnF3fwS8,93510
|
|
15
15
|
megfile/sftp.py,sha256=uBcLQs-j6Q-q-sWAdd-pgi5Qmb_kq7boJM-0sCfcNO0,26540
|
|
16
16
|
megfile/sftp_path.py,sha256=Wz4VcQ0pBUuWDGMSxPpPbutrT09mnY6jZNiAqTi5tO4,43840
|
|
17
17
|
megfile/smart.py,sha256=Sae2KJzaU0k_qV_Bk0YifOMq8WsV5qQ2pGInDRF546I,36411
|
|
18
18
|
megfile/smart_path.py,sha256=Up_6xNZ2019iSzMn_JAU_1H--z-AP6O7SxdXGdeTG0c,7659
|
|
19
19
|
megfile/stdio.py,sha256=ZwxsnJNJYIT7Iyg5pIw4qiyH8bszG6oAhEJuR-hXGG4,658
|
|
20
20
|
megfile/stdio_path.py,sha256=cxaDr8rtisTPnN-rjtaEpqQnshwiqwXFUJBM9xWY7Cg,2711
|
|
21
|
-
megfile/version.py,sha256=
|
|
21
|
+
megfile/version.py,sha256=n7uJo8sxqI4-yPdovTHcDolsukxzF_l9KEtT9E_KR3o,25
|
|
22
22
|
megfile/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
23
|
megfile/lib/base_prefetch_reader.py,sha256=uxVwYknOjc8hLF7q_T2QKMsBqFcrf411ZsuK25CN1eQ,12848
|
|
24
24
|
megfile/lib/combine_reader.py,sha256=Kp2wEloOUpTlIU7dve87MBpSzmIM-F9OtpTawAjFkiU,4828
|
|
@@ -36,17 +36,17 @@ megfile/lib/s3_cached_handler.py,sha256=MkNt6AAapd5x8BH2gnW5_S0cLofN-mshEdb0qSoL
|
|
|
36
36
|
megfile/lib/s3_limited_seekable_writer.py,sha256=joVcjoTx48jataXAwEqOI3toRxxO3-XQRvyWHtJ23lQ,6232
|
|
37
37
|
megfile/lib/s3_memory_handler.py,sha256=epIzQgTlE_deuVlP4LTmsh1T3cmAgK8ATEwrit9j7X8,4186
|
|
38
38
|
megfile/lib/s3_pipe_handler.py,sha256=g3iAN1P9pCdvSNsGeJBGcBa10S62oqIg_9W3b3wc7os,3809
|
|
39
|
-
megfile/lib/s3_prefetch_reader.py,sha256=
|
|
39
|
+
megfile/lib/s3_prefetch_reader.py,sha256=txJbXyxaFVS3wPvut5yW4ppVdLeDtVQIvCXFDlQfBMc,4474
|
|
40
40
|
megfile/lib/s3_share_cache_reader.py,sha256=LVWKxHdHo0_zUIW4o8yqNvplqqwezUPeYEt02Vj-WNM,3754
|
|
41
41
|
megfile/lib/shadow_handler.py,sha256=TntewlvIW9ZxCfmqASDQREHoiZ8v42faOe9sovQYQz0,2779
|
|
42
42
|
megfile/lib/stdio_handler.py,sha256=IDdgENLQlhigEwkLL4zStueVSzdWg7xVcTF_koof_Ek,1987
|
|
43
43
|
megfile/lib/url.py,sha256=ER32pWy9Q2MAk3TraAaNEBWIqUeBmLuM57ol2cs7-Ks,103
|
|
44
44
|
megfile/utils/__init__.py,sha256=xAzmICA0MtAbg-I2yPfeHjA1N4CiMP4sBrC9BgrfZLw,10151
|
|
45
45
|
megfile/utils/mutex.py,sha256=asb8opGLgK22RiuBJUnfsvB8LnMmodP8KzCVHKmQBWA,2561
|
|
46
|
-
megfile-4.1.
|
|
47
|
-
megfile-4.1.
|
|
48
|
-
megfile-4.1.
|
|
49
|
-
megfile-4.1.
|
|
50
|
-
megfile-4.1.
|
|
51
|
-
megfile-4.1.
|
|
52
|
-
megfile-4.1.
|
|
46
|
+
megfile-4.1.4.post1.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
47
|
+
megfile-4.1.4.post1.dist-info/licenses/LICENSE.pyre,sha256=9lf5nT-5ZH25JijpYAequ0bl8E8z5JmZB1qrjiUMp84,1080
|
|
48
|
+
megfile-4.1.4.post1.dist-info/METADATA,sha256=-gzxqJGLKfx6MOtJu4nARQ-wj6e46niHR0rXZQoqPXE,9601
|
|
49
|
+
megfile-4.1.4.post1.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
50
|
+
megfile-4.1.4.post1.dist-info/entry_points.txt,sha256=M6ZWSSv5_5_QtIpZafy3vq7WuOJ_5dSGQQnEZbByt2Q,49
|
|
51
|
+
megfile-4.1.4.post1.dist-info/top_level.txt,sha256=i3rMgdU1ZAJekAceojhA-bkm3749PzshtRmLTbeLUPQ,8
|
|
52
|
+
megfile-4.1.4.post1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|