kleinkram 0.27.0.dev20241008141236__py3-none-any.whl → 0.28.0__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/file/file.py CHANGED
@@ -15,10 +15,17 @@ file = typer.Typer(
15
15
  context_settings={"help_option_names": ["-h", "--help"]},
16
16
  )
17
17
 
18
- @file.command('download')
18
+
19
+ @file.command("download")
19
20
  def download_file(
20
- file_uuid: Annotated[List[str], typer.Option( help="UUIDs of the files")],
21
- local_path: Annotated[str, typer.Option( prompt=True, help="Local path to save the file",)],
21
+ file_uuid: Annotated[List[str], typer.Option(help="UUIDs of the files")],
22
+ local_path: Annotated[
23
+ str,
24
+ typer.Option(
25
+ prompt=True,
26
+ help="Local path to save the file",
27
+ ),
28
+ ],
22
29
  ):
23
30
  """
24
31
  Download files by UUIDs to a local path.\n
@@ -35,7 +42,6 @@ def download_file(
35
42
  isDir = os.path.isdir(fixed_local_path)
36
43
  chunk_size = 1024 * 100 # 100 KB chunks, adjust size if needed
37
44
 
38
-
39
45
  for file in file_uuid:
40
46
  response = client.get(
41
47
  url,
@@ -48,7 +54,7 @@ def download_file(
48
54
  )
49
55
  download_url = response.text
50
56
  if isDir:
51
- filename = download_url.split("/")[6].split("?")[0] # Trust me bro
57
+ filename = download_url.split("/")[6].split("?")[0] # Trust me bro
52
58
  filepath = os.path.join(fixed_local_path, filename)
53
59
  elif not isDir and len(file_uuid) == 1:
54
60
  filepath = fixed_local_path
@@ -64,6 +70,7 @@ def download_file(
64
70
  f.write(chunk)
65
71
  print(f"Completed")
66
72
 
73
+
67
74
  @file.command("list")
68
75
  def list_files(
69
76
  project: Optional[str] = typer.Option(None, help="Name of Project"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kleinkram
3
- Version: 0.27.0.dev20241008141236
3
+ Version: 0.28.0
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
@@ -6,15 +6,15 @@ 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
9
- kleinkram/file/file.py,sha256=7kRz9LWj7weGHUmLll_wkY0rooVlbi99JTWrUs5KLx4,5333
9
+ kleinkram/file/file.py,sha256=gLCZDHHgQWq25OmeG-lwkIh4aRZaLK12xxLkbhZ_m-g,5390
10
10
  kleinkram/mission/mission.py,sha256=wI83aQbWj4P6zydVThMJiAdQHAVQWE98_-VWE5K12HQ,8684
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.27.0.dev20241008141236.dist-info/METADATA,sha256=00VVAp4sCxwYUB80o1lpF47hnklR5IUvsnNJMLGC6Ys,845
17
- kleinkram-0.27.0.dev20241008141236.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
18
- kleinkram-0.27.0.dev20241008141236.dist-info/entry_points.txt,sha256=RHXtRzcreVHImatgjhQwZQ6GdJThElYjHEWcR1BPXUI,45
19
- kleinkram-0.27.0.dev20241008141236.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
20
- kleinkram-0.27.0.dev20241008141236.dist-info/RECORD,,
16
+ kleinkram-0.28.0.dist-info/METADATA,sha256=MBkZZCXedGnzP4SEsOh7njAOSRufQJDlvyjBuGOhUak,827
17
+ kleinkram-0.28.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
18
+ kleinkram-0.28.0.dist-info/entry_points.txt,sha256=RHXtRzcreVHImatgjhQwZQ6GdJThElYjHEWcR1BPXUI,45
19
+ kleinkram-0.28.0.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
20
+ kleinkram-0.28.0.dist-info/RECORD,,