megfile 2.2.9.post3__py3-none-any.whl → 2.2.9.post5__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/errors.py +3 -0
- megfile/sftp_path.py +1 -0
- megfile/version.py +1 -1
- {megfile-2.2.9.post3.dist-info → megfile-2.2.9.post5.dist-info}/METADATA +2 -2
- {megfile-2.2.9.post3.dist-info → megfile-2.2.9.post5.dist-info}/RECORD +10 -10
- {megfile-2.2.9.post3.dist-info → megfile-2.2.9.post5.dist-info}/WHEEL +1 -1
- {megfile-2.2.9.post3.dist-info → megfile-2.2.9.post5.dist-info}/LICENSE +0 -0
- {megfile-2.2.9.post3.dist-info → megfile-2.2.9.post5.dist-info}/LICENSE.pyre +0 -0
- {megfile-2.2.9.post3.dist-info → megfile-2.2.9.post5.dist-info}/entry_points.txt +0 -0
- {megfile-2.2.9.post3.dist-info → megfile-2.2.9.post5.dist-info}/top_level.txt +0 -0
megfile/errors.py
CHANGED
|
@@ -90,9 +90,11 @@ s3_retry_exceptions = [
|
|
|
90
90
|
botocore.exceptions.IncompleteReadError,
|
|
91
91
|
botocore.exceptions.EndpointConnectionError,
|
|
92
92
|
botocore.exceptions.ReadTimeoutError,
|
|
93
|
+
botocore.exceptions.ConnectTimeoutError,
|
|
93
94
|
botocore.exceptions.ProxyConnectionError,
|
|
94
95
|
botocore.exceptions.ConnectionClosedError,
|
|
95
96
|
requests.exceptions.ReadTimeout,
|
|
97
|
+
requests.exceptions.ConnectTimeout,
|
|
96
98
|
urllib3.exceptions.IncompleteRead,
|
|
97
99
|
urllib3.exceptions.ProtocolError,
|
|
98
100
|
urllib3.exceptions.ReadTimeoutError,
|
|
@@ -116,6 +118,7 @@ def s3_should_retry(error: Exception) -> bool:
|
|
|
116
118
|
|
|
117
119
|
http_retry_exceptions = (
|
|
118
120
|
requests.exceptions.ReadTimeout,
|
|
121
|
+
requests.exceptions.ConnectTimeout,
|
|
119
122
|
requests.exceptions.ChunkedEncodingError,
|
|
120
123
|
requests.exceptions.HTTPError,
|
|
121
124
|
requests.exceptions.ProxyError,
|
megfile/sftp_path.py
CHANGED
|
@@ -1159,6 +1159,7 @@ class SftpPath(URIPath):
|
|
|
1159
1159
|
raise FileNotFoundError(
|
|
1160
1160
|
'No such file: %r' % self.path_with_protocol)
|
|
1161
1161
|
fileobj = self._client.open(self._real_path, mode, bufsize=buffering)
|
|
1162
|
+
fileobj.name = self.path
|
|
1162
1163
|
if 'r' in mode and 'b' not in mode:
|
|
1163
1164
|
return io.TextIOWrapper(
|
|
1164
1165
|
fileobj, encoding=encoding, errors=errors) # type: ignore
|
megfile/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION = "2.2.9.
|
|
1
|
+
VERSION = "2.2.9.post5"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: megfile
|
|
3
|
-
Version: 2.2.9.
|
|
3
|
+
Version: 2.2.9.post5
|
|
4
4
|
Summary: Megvii file operation library
|
|
5
5
|
Home-page: https://github.com/megvii-research/megfile
|
|
6
6
|
Author: megvii
|
|
@@ -24,7 +24,7 @@ Description-Content-Type: text/markdown
|
|
|
24
24
|
License-File: LICENSE
|
|
25
25
|
License-File: LICENSE.pyre
|
|
26
26
|
Requires-Dist: boto3
|
|
27
|
-
Requires-Dist: botocore >=1.13.0
|
|
27
|
+
Requires-Dist: botocore (>=1.13.0)
|
|
28
28
|
Requires-Dist: requests
|
|
29
29
|
Requires-Dist: paramiko
|
|
30
30
|
Requires-Dist: tqdm
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
megfile/__init__.py,sha256=MT8SIXsmEUvtSpd1GHv6e3fFfR1gRnlEdkNNqv3gngo,6534
|
|
2
2
|
megfile/cli.py,sha256=iey0nNwPg9fu__NA3VbFD4a5iKgEIF-X1PL7Vi8fJeU,21080
|
|
3
|
-
megfile/errors.py,sha256=
|
|
3
|
+
megfile/errors.py,sha256=Sbx3UEKnzuyUmB1tFU9cZv61Yr4dRa79J6D0UMmkvj4,13323
|
|
4
4
|
megfile/fs.py,sha256=OfY0z4GSl8fT3mDGdeqP2hWFsd1QJl-h8RkSbg6-M8I,11547
|
|
5
5
|
megfile/fs_path.py,sha256=nptxiqKFElDxDligDynBNsf_DJltMTiHq-Z3asa_qg8,38835
|
|
6
6
|
megfile/hdfs.py,sha256=aAkHobOO0nDcLoqj0tx_1tvgoLOCooTWuukq0pO-nQA,9156
|
|
@@ -12,12 +12,12 @@ megfile/pathlike.py,sha256=Ere6tMf2nsI7bDsZo0WBzl_2HRrS_4iKOpYp0zZltAU,29487
|
|
|
12
12
|
megfile/s3.py,sha256=siBZfveWX1TDA4Mp41UvugcG3zlrhl_iPUbixUp1TmI,12352
|
|
13
13
|
megfile/s3_path.py,sha256=7esS4XupMv0kowOwQewq_lCTD07c8VIQXofTYMbdgzg,90323
|
|
14
14
|
megfile/sftp.py,sha256=JCkF2v1ZbHuIy_Bg3l85AesjFDimDzx9Gh1gRoMsahc,12524
|
|
15
|
-
megfile/sftp_path.py,sha256=
|
|
15
|
+
megfile/sftp_path.py,sha256=dXxH_aompswriUhJJ8VHoi4rC9PpkXYCU9v3yoMQVco,50943
|
|
16
16
|
megfile/smart.py,sha256=YoRvxEaZ_C-A5gQlFEs4sGBJ6D26s0qYEBJEcny_jBg,33416
|
|
17
17
|
megfile/smart_path.py,sha256=Y0UFh4J2ccydRY2W-wX2ubaf9zzJx1M2nf-VLBGe4mk,6749
|
|
18
18
|
megfile/stdio.py,sha256=yRhlfUA2DHi3bq-9cXsSlbLCnHvS_zvglO2IYYyPsGc,707
|
|
19
19
|
megfile/stdio_path.py,sha256=eQulTXUwHvUKA-5PKCGfVNiEPkJhG9YtVhtU58OcmoM,2873
|
|
20
|
-
megfile/version.py,sha256=
|
|
20
|
+
megfile/version.py,sha256=N78j2FzmS7ZRqpASyygNGUD0HBA-P1-3UvFDwNflNe4,25
|
|
21
21
|
megfile/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
megfile/lib/base_prefetch_reader.py,sha256=Rspr7i3q8GlWeiqQ-4xMiu83tVz3kR40QH8mNlG5xqs,13220
|
|
23
23
|
megfile/lib/combine_reader.py,sha256=XFSqEY5A5X5Uf7eQ6AXAzrvNteESSXvKNVPktGjo3KY,4546
|
|
@@ -42,10 +42,10 @@ megfile/lib/stdio_handler.py,sha256=QDWtcZxz-hzi-rqQUiSlR3NrihX1fjK_Rj9T2mdTFEg,
|
|
|
42
42
|
megfile/lib/url.py,sha256=VbQLjo0s4AaV0iSk66BcjI68aUTcN9zBZ5x6-cM4Qvs,103
|
|
43
43
|
megfile/utils/__init__.py,sha256=qdX8FF_dYFKwp1BIWx3JeSGd91s7AKUDSEpDv9tORcM,9162
|
|
44
44
|
megfile/utils/mutex.py,sha256=-2KH3bNovKRd9zvsXq9n3bWM7rQdoG9hO7tUPxVG_Po,2538
|
|
45
|
-
megfile-2.2.9.
|
|
46
|
-
megfile-2.2.9.
|
|
47
|
-
megfile-2.2.9.
|
|
48
|
-
megfile-2.2.9.
|
|
49
|
-
megfile-2.2.9.
|
|
50
|
-
megfile-2.2.9.
|
|
51
|
-
megfile-2.2.9.
|
|
45
|
+
megfile-2.2.9.post5.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
46
|
+
megfile-2.2.9.post5.dist-info/LICENSE.pyre,sha256=9lf5nT-5ZH25JijpYAequ0bl8E8z5JmZB1qrjiUMp84,1080
|
|
47
|
+
megfile-2.2.9.post5.dist-info/METADATA,sha256=6O_QO11jBRYQcU5jeXfIjK_gujavzRFs8Yz7BUjt-38,8970
|
|
48
|
+
megfile-2.2.9.post5.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
49
|
+
megfile-2.2.9.post5.dist-info/entry_points.txt,sha256=M6ZWSSv5_5_QtIpZafy3vq7WuOJ_5dSGQQnEZbByt2Q,49
|
|
50
|
+
megfile-2.2.9.post5.dist-info/top_level.txt,sha256=i3rMgdU1ZAJekAceojhA-bkm3749PzshtRmLTbeLUPQ,8
|
|
51
|
+
megfile-2.2.9.post5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|