kleinkram 0.25.11.dev20241007123955__py3-none-any.whl → 0.26.0.dev20241007152353__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 kleinkram might be problematic. Click here for more details.
- kleinkram/helper.py +11 -4
- {kleinkram-0.25.11.dev20241007123955.dist-info → kleinkram-0.26.0.dev20241007152353.dist-info}/METADATA +1 -1
- {kleinkram-0.25.11.dev20241007123955.dist-info → kleinkram-0.26.0.dev20241007152353.dist-info}/RECORD +6 -6
- {kleinkram-0.25.11.dev20241007123955.dist-info → kleinkram-0.26.0.dev20241007152353.dist-info}/WHEEL +0 -0
- {kleinkram-0.25.11.dev20241007123955.dist-info → kleinkram-0.26.0.dev20241007152353.dist-info}/entry_points.txt +0 -0
- {kleinkram-0.25.11.dev20241007123955.dist-info → kleinkram-0.26.0.dev20241007152353.dist-info}/licenses/LICENSE +0 -0
kleinkram/helper.py
CHANGED
|
@@ -130,7 +130,6 @@ def uploadFiles(files: Dict[str, str], credentials: Dict[str, str], nrThreads: i
|
|
|
130
130
|
transferCallback = TransferCallback()
|
|
131
131
|
failed_uploads = []
|
|
132
132
|
|
|
133
|
-
|
|
134
133
|
for i in range(nrThreads):
|
|
135
134
|
thread = threading.Thread(
|
|
136
135
|
target=uploadFile, args=(_queue, s3, transferCallback, failed_uploads)
|
|
@@ -139,13 +138,18 @@ def uploadFiles(files: Dict[str, str], credentials: Dict[str, str], nrThreads: i
|
|
|
139
138
|
threads.append(thread)
|
|
140
139
|
for thread in threads:
|
|
141
140
|
thread.join()
|
|
142
|
-
if
|
|
141
|
+
if len(failed_uploads) > 0:
|
|
143
142
|
print("Failed to upload the following files:")
|
|
144
143
|
for file in failed_uploads:
|
|
145
144
|
print(file)
|
|
146
145
|
|
|
147
146
|
|
|
148
|
-
def uploadFile(
|
|
147
|
+
def uploadFile(
|
|
148
|
+
_queue: queue.Queue,
|
|
149
|
+
s3: BaseClient,
|
|
150
|
+
transferCallback: TransferCallback,
|
|
151
|
+
failed_uploads: List[str],
|
|
152
|
+
):
|
|
149
153
|
while True:
|
|
150
154
|
try:
|
|
151
155
|
filename, _file = _queue.get(timeout=3)
|
|
@@ -169,7 +173,10 @@ def uploadFile(_queue: queue.Queue, s3: BaseClient, transferCallback: TransferCa
|
|
|
169
173
|
)
|
|
170
174
|
|
|
171
175
|
client = AuthenticatedClient()
|
|
172
|
-
res = client.post(
|
|
176
|
+
res = client.post(
|
|
177
|
+
"/queue/confirmUpload",
|
|
178
|
+
json={"uuid": queueUUID, "md5": md5_checksum},
|
|
179
|
+
)
|
|
173
180
|
res.raise_for_status()
|
|
174
181
|
_queue.task_done()
|
|
175
182
|
except queue.Empty:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: kleinkram
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.26.0.dev20241007152353
|
|
4
4
|
Summary: A CLI for the ETH project kleinkram
|
|
5
5
|
Project-URL: Homepage, https://github.com/leggedrobotics/kleinkram
|
|
6
6
|
Project-URL: Issues, https://github.com/leggedrobotics/kleinkram/issues
|
|
@@ -2,7 +2,7 @@ kleinkram/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
kleinkram/api_client.py,sha256=1GPsM-XFbPYEKP7RfWmzMTwxRqnVh4wtHVuW25KT8kA,2264
|
|
3
3
|
kleinkram/consts.py,sha256=pm_6OuQcO-tYcRhwauTtyRRsuYY0y0yb6EGuIl49LnI,50
|
|
4
4
|
kleinkram/error_handling.py,sha256=Nm3tUtc4blQylJLNChSLgkDLFDHg3Xza0CghRrd_SYE,4015
|
|
5
|
-
kleinkram/helper.py,sha256=
|
|
5
|
+
kleinkram/helper.py,sha256=tBxZj4PzII0YHfHtrDhagKrb4gTdNYa31t4E3DRDK0c,8372
|
|
6
6
|
kleinkram/main.py,sha256=9u_msMlPhphfaL92GNrm-cRUeSHxc_mOFPeXLDzv-ok,9642
|
|
7
7
|
kleinkram/auth/auth.py,sha256=w3-TsxWxURzLQ3_p43zgV4Rlh4dVL_WqI6HG2aes-b4,4991
|
|
8
8
|
kleinkram/endpoint/endpoint.py,sha256=uez5UrAnP7L5rVHUysA9tFkN3dB3dG1Ojt9g3w-UWuQ,1441
|
|
@@ -13,8 +13,8 @@ kleinkram/queue/queue.py,sha256=MaLBjAu8asi9BkPvbbT-5AobCcpy3ex5rxM1kHpRINA,181
|
|
|
13
13
|
kleinkram/tag/tag.py,sha256=JSHbDPVfsvP34MuQhw__DPQk-Bah5G9BgwYsj_K_JGc,1805
|
|
14
14
|
kleinkram/topic/topic.py,sha256=IaXhrIHcJ3FSIr0WC-N7u9fkz-lAvSBgQklTX67t0Yc,1641
|
|
15
15
|
kleinkram/user/user.py,sha256=hDrbWeFPPnh2sswDd445SwcIFGyAbfXXWpYq1VqrK0g,1379
|
|
16
|
-
kleinkram-0.
|
|
17
|
-
kleinkram-0.
|
|
18
|
-
kleinkram-0.
|
|
19
|
-
kleinkram-0.
|
|
20
|
-
kleinkram-0.
|
|
16
|
+
kleinkram-0.26.0.dev20241007152353.dist-info/METADATA,sha256=07O03L4kzLiIs4XoHIVK8pMFbzkSmm53CxpyQDsJNs4,845
|
|
17
|
+
kleinkram-0.26.0.dev20241007152353.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
18
|
+
kleinkram-0.26.0.dev20241007152353.dist-info/entry_points.txt,sha256=RHXtRzcreVHImatgjhQwZQ6GdJThElYjHEWcR1BPXUI,45
|
|
19
|
+
kleinkram-0.26.0.dev20241007152353.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
|
20
|
+
kleinkram-0.26.0.dev20241007152353.dist-info/RECORD,,
|
{kleinkram-0.25.11.dev20241007123955.dist-info → kleinkram-0.26.0.dev20241007152353.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|