megfile 5.0.1__py3-none-any.whl → 5.0.2__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/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  import megfile.config # noqa: F401 # make sure env config is loaded
2
- from megfile.fs_path import FSPath, is_fs
2
+ from megfile.fs_path import FSPath, fs_copy, is_fs
3
3
  from megfile.hdfs_path import HdfsPath, is_hdfs
4
4
  from megfile.http_path import HttpPath, HttpsPath, is_http
5
5
  from megfile.s3_path import (
@@ -7,13 +7,26 @@ from megfile.s3_path import (
7
7
  is_s3,
8
8
  s3_buffered_open,
9
9
  s3_cached_open,
10
+ s3_concat,
11
+ s3_copy,
12
+ s3_download,
13
+ s3_load_content,
10
14
  s3_memory_open,
11
15
  s3_open,
12
16
  s3_pipe_open,
13
17
  s3_prefetch_open,
14
18
  s3_share_cache_open,
19
+ s3_upload,
20
+ )
21
+ from megfile.sftp_path import (
22
+ SftpPath,
23
+ is_sftp,
24
+ sftp_add_host_key,
25
+ sftp_concat,
26
+ sftp_copy,
27
+ sftp_download,
28
+ sftp_upload,
15
29
  )
16
- from megfile.sftp_path import SftpPath, is_sftp, sftp_add_host_key
17
30
  from megfile.smart import (
18
31
  smart_access,
19
32
  smart_cache,
@@ -73,9 +86,12 @@ except ImportError:
73
86
  __all__ = [
74
87
  "smart_access",
75
88
  "smart_cache",
89
+ "smart_cache",
76
90
  "smart_combine_open",
91
+ "smart_concat",
77
92
  "smart_copy",
78
93
  "smart_exists",
94
+ "smart_getmd5",
79
95
  "smart_getmtime",
80
96
  "smart_getsize",
81
97
  "smart_glob_stat",
@@ -86,55 +102,62 @@ __all__ = [
86
102
  "smart_islink",
87
103
  "smart_listdir",
88
104
  "smart_load_content",
89
- "smart_save_content",
90
105
  "smart_load_from",
91
106
  "smart_load_text",
92
- "smart_save_text",
107
+ "smart_lstat",
93
108
  "smart_makedirs",
109
+ "smart_move",
94
110
  "smart_open",
95
111
  "smart_path_join",
112
+ "smart_readlink",
96
113
  "smart_realpath",
97
114
  "smart_remove",
98
- "smart_move",
99
115
  "smart_rename",
100
116
  "smart_save_as",
117
+ "smart_save_content",
118
+ "smart_save_text",
101
119
  "smart_scan_stat",
102
120
  "smart_scan",
103
121
  "smart_scandir",
104
122
  "smart_stat",
123
+ "smart_symlink",
105
124
  "smart_sync",
106
125
  "smart_touch",
107
126
  "smart_unlink",
108
127
  "smart_walk",
109
- "smart_cache",
110
- "smart_getmd5",
111
- "smart_symlink",
112
- "smart_readlink",
113
- "smart_lstat",
114
- "smart_concat",
128
+ "is_fs",
129
+ "fs_copy",
130
+ "is_hdfs",
131
+ "is_http",
115
132
  "is_s3",
116
133
  "s3_buffered_open",
117
134
  "s3_cached_open",
135
+ "s3_concat",
136
+ "s3_copy",
137
+ "s3_download",
138
+ "s3_load_content",
118
139
  "s3_memory_open",
119
140
  "s3_open",
120
141
  "s3_pipe_open",
121
142
  "s3_prefetch_open",
122
143
  "s3_share_cache_open",
123
- "is_fs",
124
- "is_http",
125
- "is_stdio",
126
- "stdio_open",
144
+ "s3_upload",
127
145
  "is_sftp",
128
146
  "sftp_add_host_key",
129
- "is_hdfs",
147
+ "sftp_concat",
148
+ "sftp_copy",
149
+ "sftp_download",
150
+ "sftp_upload",
151
+ "is_stdio",
152
+ "stdio_open",
130
153
  "is_webdav",
131
- "WebdavPath",
132
- "S3Path",
133
154
  "FSPath",
155
+ "HdfsPath",
134
156
  "HttpPath",
135
157
  "HttpsPath",
136
- "StdioPath",
137
- "SmartPath",
158
+ "S3Path",
138
159
  "SftpPath",
139
- "HdfsPath",
160
+ "SmartPath",
161
+ "StdioPath",
162
+ "WebdavPath",
140
163
  ]
megfile/version.py CHANGED
@@ -1 +1 @@
1
- VERSION = "5.0.1"
1
+ VERSION = "5.0.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: megfile
3
- Version: 5.0.1
3
+ Version: 5.0.2
4
4
  Summary: Megvii file operation library
5
5
  Author-email: megvii-reng <megvii-reng@googlegroups.com>
6
6
  Project-URL: Homepage, https://github.com/megvii-research/megfile
@@ -1,4 +1,4 @@
1
- megfile/__init__.py,sha256=YvF3lLDTnxYxeICLYwzwJHQWfNTizBx8B0BwjWvHnRU,2934
1
+ megfile/__init__.py,sha256=4XbMsR-lM7MxbnPGBI16m2sq6ghuA2-zZj2XF4bbX2Y,3291
2
2
  megfile/cli.py,sha256=HdOIAMFXdZw79kayVIri5-_rbq_KwOGSdMYTx51ABp0,30204
3
3
  megfile/config.py,sha256=K3B_o2dnI7qGsGnK8Jg18-S5YYLYuzskfNJowlSMkQM,5065
4
4
  megfile/errors.py,sha256=eC7z-2-QqE12pYgTGAOIlEBsemqcMyeBFVUEDz3gBS0,15585
@@ -13,7 +13,7 @@ megfile/sftp_path.py,sha256=_KU7_-Mq2m7lcLY1mpiGrju0SP-OsdEXlRjFhZH25UA,51223
13
13
  megfile/smart.py,sha256=Lab2jxprj-zvPw5GqUWlWiEY8bcpRlviks_qp9r-km8,38224
14
14
  megfile/smart_path.py,sha256=kGidkM5S58ChE3LVZMcUACs3IQgsqh9m04sp6-wxuhk,12615
15
15
  megfile/stdio_path.py,sha256=cxaDr8rtisTPnN-rjtaEpqQnshwiqwXFUJBM9xWY7Cg,2711
16
- megfile/version.py,sha256=LPuRF_X3cat_YjhbR3eY8fMsZ1mTDe7rRMdxF3ozYRY,19
16
+ megfile/version.py,sha256=2z_YV6M_rFsVnaPW0uk4dTnt4IynxvGR09iBXCfO_Po,19
17
17
  megfile/webdav_path.py,sha256=xQmZMt-hDA7PfHzuSjRYaIoJA_Nbi1jsg952KZJhs-E,31364
18
18
  megfile/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  megfile/lib/base_memory_handler.py,sha256=i5-YHpL0k2tuFBnP9VMzb3_OsaU6D6j6thkmWgptnFg,2680
@@ -42,10 +42,10 @@ megfile/lib/webdav_memory_handler.py,sha256=_UccPYPpvfTd4gSEhBFL1BHeyFtsBJdhVINk
42
42
  megfile/lib/webdav_prefetch_reader.py,sha256=M0X6E6t-DS5q9KiLvjVZx_AZuiW9SaIkBnIPLc774GQ,3941
43
43
  megfile/utils/__init__.py,sha256=4hBVSXbNTbDj7Je0y9SbwgcPm_s41H9v3eHUMr9JNGo,12700
44
44
  megfile/utils/mutex.py,sha256=asb8opGLgK22RiuBJUnfsvB8LnMmodP8KzCVHKmQBWA,2561
45
- megfile-5.0.1.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
46
- megfile-5.0.1.dist-info/licenses/LICENSE.pyre,sha256=9lf5nT-5ZH25JijpYAequ0bl8E8z5JmZB1qrjiUMp84,1080
47
- megfile-5.0.1.dist-info/METADATA,sha256=r-7Od-pbEExL11PMsE0VhgxUvkv_O0kGz0s8bzzczRE,9225
48
- megfile-5.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
49
- megfile-5.0.1.dist-info/entry_points.txt,sha256=M6ZWSSv5_5_QtIpZafy3vq7WuOJ_5dSGQQnEZbByt2Q,49
50
- megfile-5.0.1.dist-info/top_level.txt,sha256=i3rMgdU1ZAJekAceojhA-bkm3749PzshtRmLTbeLUPQ,8
51
- megfile-5.0.1.dist-info/RECORD,,
45
+ megfile-5.0.2.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
46
+ megfile-5.0.2.dist-info/licenses/LICENSE.pyre,sha256=9lf5nT-5ZH25JijpYAequ0bl8E8z5JmZB1qrjiUMp84,1080
47
+ megfile-5.0.2.dist-info/METADATA,sha256=TvjBMScDXQdbke5lhUufQg2B-KY7XywLn-VpQkfQsfw,9225
48
+ megfile-5.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
49
+ megfile-5.0.2.dist-info/entry_points.txt,sha256=M6ZWSSv5_5_QtIpZafy3vq7WuOJ_5dSGQQnEZbByt2Q,49
50
+ megfile-5.0.2.dist-info/top_level.txt,sha256=i3rMgdU1ZAJekAceojhA-bkm3749PzshtRmLTbeLUPQ,8
51
+ megfile-5.0.2.dist-info/RECORD,,