hestia-earth-utils 0.15.5__py3-none-any.whl → 0.15.6__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.
- hestia_earth/utils/storage/_s3_client.py +14 -0
- hestia_earth/utils/version.py +1 -1
- {hestia_earth_utils-0.15.5.dist-info → hestia_earth_utils-0.15.6.dist-info}/METADATA +1 -1
- {hestia_earth_utils-0.15.5.dist-info → hestia_earth_utils-0.15.6.dist-info}/RECORD +8 -8
- {hestia_earth_utils-0.15.5.data → hestia_earth_utils-0.15.6.data}/scripts/hestia-format-upload +0 -0
- {hestia_earth_utils-0.15.5.data → hestia_earth_utils-0.15.6.data}/scripts/hestia-pivot-csv +0 -0
- {hestia_earth_utils-0.15.5.dist-info → hestia_earth_utils-0.15.6.dist-info}/WHEEL +0 -0
- {hestia_earth_utils-0.15.5.dist-info → hestia_earth_utils-0.15.6.dist-info}/top_level.txt +0 -0
|
@@ -81,3 +81,17 @@ def _upload_to_bucket(bucket: str, key: str, body, content_type: str):
|
|
|
81
81
|
)
|
|
82
82
|
except ClientError:
|
|
83
83
|
return None
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def _list_bucket_objects(bucket: str, folder: str = ''):
|
|
87
|
+
from botocore.exceptions import ClientError
|
|
88
|
+
try:
|
|
89
|
+
paginator = _get_s3_client().get_paginator('list_objects_v2')
|
|
90
|
+
pages = paginator.paginate(Bucket=bucket, Prefix=folder)
|
|
91
|
+
|
|
92
|
+
contents = []
|
|
93
|
+
for page in pages:
|
|
94
|
+
contents.extend(page.get('Contents', []))
|
|
95
|
+
return contents
|
|
96
|
+
except ClientError:
|
|
97
|
+
return []
|
hestia_earth/utils/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION = '0.15.
|
|
1
|
+
VERSION = '0.15.6'
|
|
@@ -16,7 +16,7 @@ hestia_earth/utils/stats.py,sha256=4t3op10xDJbGxWJEY1Jtyl302PYWyMFwLpsSkMlzQn8,3
|
|
|
16
16
|
hestia_earth/utils/table.py,sha256=RrTt-KF_QzjKiCpaAueoG6La1FG-Iusxw5NMDpoRBpQ,2861
|
|
17
17
|
hestia_earth/utils/term.py,sha256=6LiUSc6KX3IOkfWF6fYkQ2tENCO8ENljcdDypxU6WtA,1060
|
|
18
18
|
hestia_earth/utils/tools.py,sha256=eCppZ0gFR6RPF7TEraMLwLJnUCJb93xP0iEzFPcYpK0,4685
|
|
19
|
-
hestia_earth/utils/version.py,sha256=
|
|
19
|
+
hestia_earth/utils/version.py,sha256=hcbBawDU79tFjoFeJoCgvYJcMG4vzlMkCMPvi0NU6JE,19
|
|
20
20
|
hestia_earth/utils/pivot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
21
|
hestia_earth/utils/pivot/_shared.py,sha256=sRE_PGe9u0-sFnCb0mdeM7vPOkFWt3-kDs8WSGQTQGk,875
|
|
22
22
|
hestia_earth/utils/pivot/pivot_csv.py,sha256=Ed-sCKEqVIFJu71AncS7zlMkHbw5V15QLd5c5B_uxiE,12296
|
|
@@ -24,14 +24,14 @@ hestia_earth/utils/pivot/pivot_json.py,sha256=Rm4_mNaEgx-Jmq8sGIq_-jYMtZO78YXGxw
|
|
|
24
24
|
hestia_earth/utils/storage/__init__.py,sha256=uNX6_EHWWnNUIm4Ng7L43-cQmuc6NGFAxXye85saIXQ,922
|
|
25
25
|
hestia_earth/utils/storage/_azure_client.py,sha256=sevCZni04eknMql2DgUsWG23f7u0KvsXP7me1ZUBy00,1274
|
|
26
26
|
hestia_earth/utils/storage/_local_client.py,sha256=IbzziUKY0QS3ybHFfgEpELqvafa7hQnZ-DdGdjQuypE,515
|
|
27
|
-
hestia_earth/utils/storage/_s3_client.py,sha256=
|
|
27
|
+
hestia_earth/utils/storage/_s3_client.py,sha256=y-4rdqrAN45_W-pl5Zr7M4PL89JSjFaeq6lJiOFl3qQ,2637
|
|
28
28
|
hestia_earth/utils/storage/_sns_client.py,sha256=LowUatj78Egu6_Id6Rr7hZjfZx1WguS3lozB3yAwSps,347
|
|
29
|
-
hestia_earth_utils-0.15.
|
|
30
|
-
hestia_earth_utils-0.15.
|
|
29
|
+
hestia_earth_utils-0.15.6.data/scripts/hestia-format-upload,sha256=IhLAHHPJqRgUcht-M_EUEsRMbRbMfshig07o488zscM,703
|
|
30
|
+
hestia_earth_utils-0.15.6.data/scripts/hestia-pivot-csv,sha256=0YBuGuyPO8rytod6iwWEKiQdSlr9JLuD001k6U5t6no,1163
|
|
31
31
|
tests/pivot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
32
|
tests/pivot/test_pivot_csv.py,sha256=aYni7o3QDPSgtVxVCspEetotgpYHY7Lz5VHf-DR89gw,8131
|
|
33
33
|
tests/pivot/test_pivot_json.py,sha256=UYTAN4AZhzVicIYsU1A2VgJcctUXohjHppg6s-pqwcg,8287
|
|
34
|
-
hestia_earth_utils-0.15.
|
|
35
|
-
hestia_earth_utils-0.15.
|
|
36
|
-
hestia_earth_utils-0.15.
|
|
37
|
-
hestia_earth_utils-0.15.
|
|
34
|
+
hestia_earth_utils-0.15.6.dist-info/METADATA,sha256=UOzNkiXzlimsJgwkjiWm7uVW_MBa9CFiZV7u-0dE63o,1757
|
|
35
|
+
hestia_earth_utils-0.15.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
36
|
+
hestia_earth_utils-0.15.6.dist-info/top_level.txt,sha256=1dqA9TqpOLTEgpqa-YBsmbCmmNU1y56AtfFGEceZ2A0,19
|
|
37
|
+
hestia_earth_utils-0.15.6.dist-info/RECORD,,
|
{hestia_earth_utils-0.15.5.data → hestia_earth_utils-0.15.6.data}/scripts/hestia-format-upload
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|