synapse-sdk 1.0.0a69__py3-none-any.whl → 1.0.0a70__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.
Potentially problematic release.
This version of synapse-sdk might be problematic. Click here for more details.
- synapse_sdk/utils/storage/providers/s3.py +17 -4
- {synapse_sdk-1.0.0a69.dist-info → synapse_sdk-1.0.0a70.dist-info}/METADATA +1 -1
- {synapse_sdk-1.0.0a69.dist-info → synapse_sdk-1.0.0a70.dist-info}/RECORD +7 -7
- {synapse_sdk-1.0.0a69.dist-info → synapse_sdk-1.0.0a70.dist-info}/WHEEL +0 -0
- {synapse_sdk-1.0.0a69.dist-info → synapse_sdk-1.0.0a70.dist-info}/entry_points.txt +0 -0
- {synapse_sdk-1.0.0a69.dist-info → synapse_sdk-1.0.0a70.dist-info}/licenses/LICENSE +0 -0
- {synapse_sdk-1.0.0a69.dist-info → synapse_sdk-1.0.0a70.dist-info}/top_level.txt +0 -0
|
@@ -13,15 +13,17 @@ class S3Storage(BaseStorage):
|
|
|
13
13
|
self.upath = self._get_upath()
|
|
14
14
|
|
|
15
15
|
def _get_upath(self):
|
|
16
|
+
client_kwargs = {'region_name': self.query_params.get('region_name', self.DEFAULT_REGION)}
|
|
17
|
+
|
|
18
|
+
if self.query_params.get('endpoint_url'):
|
|
19
|
+
client_kwargs['endpoint_url'] = self.query_params['endpoint_url']
|
|
20
|
+
|
|
16
21
|
upath_kwargs = {
|
|
17
22
|
'key': self.query_params['access_key'],
|
|
18
23
|
'secret': self.query_params['secret_key'],
|
|
19
|
-
'client_kwargs':
|
|
24
|
+
'client_kwargs': client_kwargs,
|
|
20
25
|
}
|
|
21
26
|
|
|
22
|
-
if self.query_params.get('endpoint_url'):
|
|
23
|
-
upath_kwargs['endpoint_url'] = self.query_params['endpoint_url']
|
|
24
|
-
|
|
25
27
|
return UPath(
|
|
26
28
|
f's3://{self.query_params["bucket_name"]}',
|
|
27
29
|
**upath_kwargs,
|
|
@@ -76,3 +78,14 @@ class S3Storage(BaseStorage):
|
|
|
76
78
|
if file.is_file():
|
|
77
79
|
total_size += file.stat().st_size
|
|
78
80
|
return total_size
|
|
81
|
+
|
|
82
|
+
def glob(self, pattern):
|
|
83
|
+
"""Glob pattern matching in S3 storage.
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
pattern (str): The glob pattern to match.
|
|
87
|
+
|
|
88
|
+
Returns:
|
|
89
|
+
list: List of matching paths.
|
|
90
|
+
"""
|
|
91
|
+
return list((self.upath / '').glob(pattern))
|
|
@@ -205,11 +205,11 @@ synapse_sdk/utils/storage/registry.py,sha256=MNhX2ohVfQsjhuHO2YMn0wiJIA0ELPp5NXH
|
|
|
205
205
|
synapse_sdk/utils/storage/providers/__init__.py,sha256=x7RGwZryT2FpVxS7fGWryRVpquHzAiIfTz-9uLgjleo,1860
|
|
206
206
|
synapse_sdk/utils/storage/providers/gcp.py,sha256=i2BQCu1Kej1If9SuNr2_lEyTcr5M_ncGITZrL0u5wEA,363
|
|
207
207
|
synapse_sdk/utils/storage/providers/http.py,sha256=2DhIulND47JOnS5ZY7MZUex7Su3peAPksGo1Wwg07L4,5828
|
|
208
|
-
synapse_sdk/utils/storage/providers/s3.py,sha256=
|
|
208
|
+
synapse_sdk/utils/storage/providers/s3.py,sha256=ZmqekAvIgcQBdRU-QVJYv1Rlp6VHfXwtbtjTSphua94,2573
|
|
209
209
|
synapse_sdk/utils/storage/providers/sftp.py,sha256=_8s9hf0JXIO21gvm-JVS00FbLsbtvly4c-ETLRax68A,1426
|
|
210
|
-
synapse_sdk-1.0.
|
|
211
|
-
synapse_sdk-1.0.
|
|
212
|
-
synapse_sdk-1.0.
|
|
213
|
-
synapse_sdk-1.0.
|
|
214
|
-
synapse_sdk-1.0.
|
|
215
|
-
synapse_sdk-1.0.
|
|
210
|
+
synapse_sdk-1.0.0a70.dist-info/licenses/LICENSE,sha256=bKzmC5YAg4V1Fhl8OO_tqY8j62hgdncAkN7VrdjmrGk,1101
|
|
211
|
+
synapse_sdk-1.0.0a70.dist-info/METADATA,sha256=3Q2nmsvMEo9MgyHoxZMPFWQics_W5fx4VE16z-Nuq14,1130
|
|
212
|
+
synapse_sdk-1.0.0a70.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
213
|
+
synapse_sdk-1.0.0a70.dist-info/entry_points.txt,sha256=VNptJoGoNJI8yLXfBmhgUefMsmGI0m3-0YoMvrOgbxo,48
|
|
214
|
+
synapse_sdk-1.0.0a70.dist-info/top_level.txt,sha256=ytgJMRK1slVOKUpgcw3LEyHHP7S34J6n_gJzdkcSsw8,12
|
|
215
|
+
synapse_sdk-1.0.0a70.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|