kleinkram 0.25.2.dev20241002134557__py3-none-any.whl → 0.25.2.dev20241002135013__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/main.py CHANGED
@@ -113,7 +113,7 @@ def download():
113
113
  @app.command("upload", rich_help_panel=CommandPanel.CoreCommands)
114
114
  def upload(
115
115
  path: Annotated[
116
- str, typer.Option(prompt=True, help="Path to files to upload, Regex supported")
116
+ List[str], typer.Option(prompt=True, help="Path to files to upload, Regex supported")
117
117
  ],
118
118
  project: Annotated[str, typer.Option(prompt=True, help="Name of Project")],
119
119
  mission: Annotated[
@@ -128,11 +128,14 @@ def upload(
128
128
  Upload files matching the path to a mission in a project.
129
129
 
130
130
  The mission name must be unique within the project and not yet created.\n
131
+ Multiple paths can be given by using the option multiple times.\n
131
132
  Examples:\n
132
133
  - 'klein upload --path "~/data/**/*.bag" --project "Project 1" --mission "Mission 1" --tags "0700946d-1d6a-4520-b263-0e177f49c35b:LEE-H" --tags "1565118d-593c-4517-8c2d-9658452d9319:Dodo"'\n
133
134
 
134
135
  """
135
- files = expand_and_match(path)
136
+ files = []
137
+ for p in path:
138
+ files.extend(expand_and_match(p))
136
139
  filenames = list(
137
140
  map(lambda x: x.split("/")[-1], filter(lambda x: not os.path.isdir(x), files))
138
141
  )
@@ -1,5 +1,5 @@
1
1
  import os
2
- from typing_extensions import Annotated, Optional
2
+ from typing_extensions import Annotated, Optional, List
3
3
 
4
4
  import httpx
5
5
  import requests
@@ -203,7 +203,7 @@ def download(
203
203
  @missionCommands.command("upload")
204
204
  def upload(
205
205
  path: Annotated[
206
- str, typer.Option(prompt=True, help="Path to files to upload, Regex supported")
206
+ List[str], typer.Option(prompt=True, help="Path to files to upload, Regex supported")
207
207
  ],
208
208
  mission: Annotated[
209
209
  str, typer.Option(prompt=True, help="UUID of Mission to create")
@@ -212,12 +212,16 @@ def upload(
212
212
  """
213
213
  Upload files matching the path to a mission in a project.
214
214
 
215
- The mission name must be unique within the project and already created.\n
215
+ The mission name must be unique within the project and already created.
216
+ Multiple paths can be given by using the option multiple times.\n
217
+ \n
216
218
  Examples:\n
217
- - 'klein upload --path "~/data/**/*.bag" --project "Project 1" --mission "Mission 1" '\n
219
+ - 'klein upload --path "~/data/**/*.bag" --project "Project 1" --mission "2518cfc2-07f2-41a5-b74c-fdedb1b97f88" '\n
218
220
 
219
221
  """
220
- files = expand_and_match(path)
222
+ files = []
223
+ for p in path:
224
+ files.extend(expand_and_match(p))
221
225
  filenames = list(
222
226
  map(lambda x: x.split("/")[-1], filter(lambda x: not os.path.isdir(x), files))
223
227
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kleinkram
3
- Version: 0.25.2.dev20241002134557
3
+ Version: 0.25.2.dev20241002135013
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
@@ -3,18 +3,18 @@ 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
5
  kleinkram/helper.py,sha256=BQawKoKLIwtAtVIZ7MjxH6Azqi7wHP4ja_gsrqyYAWU,7849
6
- kleinkram/main.py,sha256=Kfi4eadz034Z-_pNztGExgqTGmHmDk-cRGSJL-X-QIE,9516
6
+ kleinkram/main.py,sha256=NqV1c4vcX1jdqYQln2MuCIGOGu7Je88vCW-tfNveTfA,9633
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=cb6DJgVFrsatIaXnxYbR1zBtDLK-d_w7S9KD0JtXW5Y,8470
10
+ kleinkram/mission/mission.py,sha256=O-H3iYlOhNDtJcrPLdMESZ3gy7_Lrjjj287_uDre5XM,8625
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.25.2.dev20241002134557.dist-info/METADATA,sha256=kWSus9gofAOtmcOedguamQYx30jt55vMA5pMl5rdwiE,845
17
- kleinkram-0.25.2.dev20241002134557.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
18
- kleinkram-0.25.2.dev20241002134557.dist-info/entry_points.txt,sha256=RHXtRzcreVHImatgjhQwZQ6GdJThElYjHEWcR1BPXUI,45
19
- kleinkram-0.25.2.dev20241002134557.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
20
- kleinkram-0.25.2.dev20241002134557.dist-info/RECORD,,
16
+ kleinkram-0.25.2.dev20241002135013.dist-info/METADATA,sha256=QrmRDys0VuyETPi-4wR-5aNByYhlDwGZ7cN0gbMc17I,845
17
+ kleinkram-0.25.2.dev20241002135013.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
18
+ kleinkram-0.25.2.dev20241002135013.dist-info/entry_points.txt,sha256=RHXtRzcreVHImatgjhQwZQ6GdJThElYjHEWcR1BPXUI,45
19
+ kleinkram-0.25.2.dev20241002135013.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
20
+ kleinkram-0.25.2.dev20241002135013.dist-info/RECORD,,