kleinkram 0.24.5.dev20241001114155__py3-none-any.whl → 0.24.6.dev20241002074301__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/mission/mission.py +12 -6
- {kleinkram-0.24.5.dev20241001114155.dist-info → kleinkram-0.24.6.dev20241002074301.dist-info}/METADATA +1 -1
- {kleinkram-0.24.5.dev20241001114155.dist-info → kleinkram-0.24.6.dev20241002074301.dist-info}/RECORD +6 -6
- {kleinkram-0.24.5.dev20241001114155.dist-info → kleinkram-0.24.6.dev20241002074301.dist-info}/WHEEL +0 -0
- {kleinkram-0.24.5.dev20241001114155.dist-info → kleinkram-0.24.6.dev20241002074301.dist-info}/entry_points.txt +0 -0
- {kleinkram-0.24.5.dev20241001114155.dist-info → kleinkram-0.24.6.dev20241002074301.dist-info}/licenses/LICENSE +0 -0
kleinkram/mission/mission.py
CHANGED
|
@@ -199,6 +199,7 @@ def download(
|
|
|
199
199
|
f.write(chunk)
|
|
200
200
|
print(f" Downloaded {filename}")
|
|
201
201
|
|
|
202
|
+
|
|
202
203
|
@missionCommands.command("upload")
|
|
203
204
|
def upload(
|
|
204
205
|
path: Annotated[
|
|
@@ -223,9 +224,7 @@ def upload(
|
|
|
223
224
|
if not filenames:
|
|
224
225
|
raise ValueError("No files found matching the given path.")
|
|
225
226
|
|
|
226
|
-
print(
|
|
227
|
-
f"Uploading the following files to mission '{mission}':"
|
|
228
|
-
)
|
|
227
|
+
print(f"Uploading the following files to mission '{mission}':")
|
|
229
228
|
filepaths = {}
|
|
230
229
|
for path in files:
|
|
231
230
|
if not os.path.isdir(path):
|
|
@@ -234,9 +233,17 @@ def upload(
|
|
|
234
233
|
|
|
235
234
|
try:
|
|
236
235
|
client = AuthenticatedClient()
|
|
237
|
-
res = client.post(
|
|
236
|
+
res = client.post(
|
|
237
|
+
"/file/temporaryAccess",
|
|
238
|
+
json={"missionUUID": mission, "filenames": filenames},
|
|
239
|
+
)
|
|
238
240
|
if res.status_code >= 400:
|
|
239
|
-
raise ValueError(
|
|
241
|
+
raise ValueError(
|
|
242
|
+
"Failed to get temporary access. Status code: "
|
|
243
|
+
+ str(res.status_code)
|
|
244
|
+
+ " Message: "
|
|
245
|
+
+ res.json()["message"]
|
|
246
|
+
)
|
|
240
247
|
|
|
241
248
|
temp_credentials = res.json()
|
|
242
249
|
credential = temp_credentials["credentials"]
|
|
@@ -253,4 +260,3 @@ def upload(
|
|
|
253
260
|
print(e)
|
|
254
261
|
print("Failed to upload files")
|
|
255
262
|
raise e
|
|
256
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: kleinkram
|
|
3
|
-
Version: 0.24.
|
|
3
|
+
Version: 0.24.6.dev20241002074301
|
|
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
|
{kleinkram-0.24.5.dev20241001114155.dist-info → kleinkram-0.24.6.dev20241002074301.dist-info}/RECORD
RENAMED
|
@@ -7,14 +7,14 @@ kleinkram/main.py,sha256=Kfi4eadz034Z-_pNztGExgqTGmHmDk-cRGSJL-X-QIE,9516
|
|
|
7
7
|
kleinkram/auth/auth.py,sha256=w3-TsxWxURzLQ3_p43zgV4Rlh4dVL_WqI6HG2aes-b4,4991
|
|
8
8
|
kleinkram/endpoint/endpoint.py,sha256=uez5UrAnP7L5rVHUysA9tFkN3dB3dG1Ojt9g3w-UWuQ,1441
|
|
9
9
|
kleinkram/file/file.py,sha256=LaqIFYZ2HL5-tCqEXqQJ-ptXU8Eyg0T4Hy5W0NATEXg,3395
|
|
10
|
-
kleinkram/mission/mission.py,sha256=
|
|
10
|
+
kleinkram/mission/mission.py,sha256=cb6DJgVFrsatIaXnxYbR1zBtDLK-d_w7S9KD0JtXW5Y,8470
|
|
11
11
|
kleinkram/project/project.py,sha256=yDygz9JJ4Td5VsoCoCLm36HccRyd7jl65Hq05uxEGts,1602
|
|
12
12
|
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.24.
|
|
17
|
-
kleinkram-0.24.
|
|
18
|
-
kleinkram-0.24.
|
|
19
|
-
kleinkram-0.24.
|
|
20
|
-
kleinkram-0.24.
|
|
16
|
+
kleinkram-0.24.6.dev20241002074301.dist-info/METADATA,sha256=nAFa0WftgEziXHMJRmH27lavUP3peA4k4yDTL9o_mzU,845
|
|
17
|
+
kleinkram-0.24.6.dev20241002074301.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
18
|
+
kleinkram-0.24.6.dev20241002074301.dist-info/entry_points.txt,sha256=RHXtRzcreVHImatgjhQwZQ6GdJThElYjHEWcR1BPXUI,45
|
|
19
|
+
kleinkram-0.24.6.dev20241002074301.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
|
20
|
+
kleinkram-0.24.6.dev20241002074301.dist-info/RECORD,,
|
{kleinkram-0.24.5.dev20241001114155.dist-info → kleinkram-0.24.6.dev20241002074301.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|