kleinkram 0.24.4.dev20241001100627__tar.gz → 0.24.5__tar.gz

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.

Files changed (24) hide show
  1. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/PKG-INFO +1 -1
  2. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/pyproject.toml +1 -1
  3. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/mission/mission.py +12 -6
  4. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/.gitignore +0 -0
  5. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/LICENSE +0 -0
  6. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/README.md +0 -0
  7. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/deploy.sh +0 -0
  8. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/dev.sh +0 -0
  9. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/requirements.txt +0 -0
  10. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/klein.py +0 -0
  11. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/__init__.py +0 -0
  12. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/api_client.py +0 -0
  13. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/auth/auth.py +0 -0
  14. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/consts.py +0 -0
  15. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/endpoint/endpoint.py +0 -0
  16. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/error_handling.py +0 -0
  17. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/file/file.py +0 -0
  18. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/helper.py +0 -0
  19. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/main.py +0 -0
  20. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/project/project.py +0 -0
  21. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/queue/queue.py +0 -0
  22. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/tag/tag.py +0 -0
  23. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/topic/topic.py +0 -0
  24. {kleinkram-0.24.4.dev20241001100627 → kleinkram-0.24.5}/src/kleinkram/user/user.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kleinkram
3
- Version: 0.24.4.dev20241001100627
3
+ Version: 0.24.5
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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "kleinkram"
7
- version = "0.24.4-dev20241001100627"
7
+ version = "0.24.5"
8
8
  description = "A CLI for the ETH project kleinkram"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.7"
@@ -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("/file/temporaryAccess", json={"missionUUID": mission, "filenames": filenames})
236
+ res = client.post(
237
+ "/file/temporaryAccess",
238
+ json={"missionUUID": mission, "filenames": filenames},
239
+ )
238
240
  if res.status_code >= 400:
239
- raise ValueError("Failed to get temporary access. Status code: " + str(res.status_code) + " Message: " + res.json()['message'])
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
-