kleinkram 0.5.0.dev20240808145046__py3-none-any.whl → 0.6.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
@@ -93,17 +93,3 @@ def download(
93
93
  print(response.json())
94
94
  except:
95
95
  print("Failed to download file")
96
-
97
-
98
- @file.command("clear")
99
- def clear_queue():
100
- """Clear queue"""
101
- # Prompt the user for confirmation
102
- confirmation = typer.prompt("Are you sure you want to clear the Files? (y/n)")
103
- if confirmation.lower() == "y":
104
- client = AuthenticatedClient()
105
- response = client.delete("/file/clear")
106
- response.raise_for_status()
107
- print("Files cleared.")
108
- else:
109
- print("Operation cancelled.")
kleinkram/main.py CHANGED
@@ -166,20 +166,6 @@ def upload(
166
166
  print(e)
167
167
 
168
168
 
169
- @queue.command("clear")
170
- def clear_queue():
171
- """Clear queue"""
172
- # Prompt the user for confirmation
173
- confirmation = typer.prompt("Are you sure you want to clear the queue? (y/n)")
174
- if confirmation.lower() == "y":
175
- client = AuthenticatedClient()
176
- response = client.delete("/queue/clear")
177
- response.raise_for_status()
178
- print("Queue cleared.")
179
- else:
180
- print("Operation cancelled.")
181
-
182
-
183
169
  @queue.command("list")
184
170
  def list_queue():
185
171
  """List current Queue entities"""
@@ -206,47 +192,6 @@ def list_queue():
206
192
  print(e)
207
193
 
208
194
 
209
- @app.command("wipe", hidden=True)
210
- def wipe():
211
- """Wipe all data"""
212
- # Prompt the user for confirmation
213
- confirmation = typer.prompt("Are you sure you want to wipe all data? (y/n)")
214
- if confirmation.lower() == "y":
215
- second_confirmation = typer.prompt(
216
- "This action is irreversible. Are you really sure? (y/n)"
217
- )
218
- if second_confirmation.lower() != "y":
219
- print("Operation cancelled.")
220
- return
221
-
222
- client = AuthenticatedClient()
223
- response_queue = client.delete("/queue/clear")
224
- response_file = client.delete("/file/clear")
225
- response_analysis = client.delete("/analysis/clear")
226
- response_mission = client.delete("/mission/clear")
227
- response_project = client.delete("/project/clear")
228
-
229
- if response_queue.status_code >= 400:
230
- print("Failed to clear queue.")
231
- print(response_queue.text)
232
- elif response_file.status_code >= 400:
233
- print("Failed to clear files.")
234
- print(response_file.text)
235
- elif response_analysis.status_code >= 400:
236
- print("Failed to clear analysis.")
237
- print(response_analysis.text)
238
- elif response_mission.status_code >= 400:
239
- print("Failed to clear missions.")
240
- print(response_mission.text)
241
- elif response_project.status_code >= 400:
242
- print("Failed to clear projects.")
243
- print(response_project.text)
244
- else:
245
- print("Data wiped.")
246
- else:
247
- print("Operation cancelled.")
248
-
249
-
250
195
  @app.command("claim", hidden=True)
251
196
  def claim():
252
197
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kleinkram
3
- Version: 0.5.0.dev20240808145046
3
+ Version: 0.6.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
@@ -2,17 +2,17 @@ kleinkram/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  kleinkram/api_client.py,sha256=RVfHl5yAIYa-sYnyOoG6MATfmyhND5cp4yCbiGYpWDI,2494
3
3
  kleinkram/consts.py,sha256=pm_6OuQcO-tYcRhwauTtyRRsuYY0y0yb6EGuIl49LnI,50
4
4
  kleinkram/helper.py,sha256=9YUuCH0pfj7gK88XRtR0SD-cfdcbR-4g0DdAcUfwdm4,2334
5
- kleinkram/main.py,sha256=HBPiTMyQ8ykBlkKmMDooVX2J30aaoQ-NPTF_qNE5Tmg,8883
5
+ kleinkram/main.py,sha256=icogNWlyaP3J7M4Efadn7rinKH4nv8scFlfY362roW4,6897
6
6
  kleinkram/auth/auth.py,sha256=vk2Qv7v7tb1GziVzVq5ZaiEk39wVDVRBENhUd4pxk1g,5928
7
- kleinkram/file/file.py,sha256=ti-h72JdUs1UdYK7pElbQ-CpWiBQIEA-BhJ-8lgnDGc,3896
7
+ kleinkram/file/file.py,sha256=P6WKaYydUgWAHGZAoOLrMvNo1IeU0ySCcn7HDSyDn7Q,3469
8
8
  kleinkram/mission/mission.py,sha256=arKZbSE9bd7fwcT9fpoy3W1na6Vvn-bkyTV2gCLFLng,4041
9
9
  kleinkram/project/project.py,sha256=p9fe4XQtGLTMDxHK7ofbe_8Sdv-aZ8I4KgseAn8RK20,1566
10
10
  kleinkram/queue/queue.py,sha256=MaLBjAu8asi9BkPvbbT-5AobCcpy3ex5rxM1kHpRINA,181
11
11
  kleinkram/tag/tag.py,sha256=0CN4XwcHmFNFc4n05o82bm2LRfm38NcN3U19vQ6Dqfc,1341
12
12
  kleinkram/topic/topic.py,sha256=5_Vh38GkJ1eu1_hfIUtmjoxgaprDlbaglmuQmjFmpJc,1614
13
13
  kleinkram/user/user.py,sha256=i_QfsctjhImvKKjuDPfOIyDr322SXgV-KxJo-a7qNZw,1368
14
- kleinkram-0.5.0.dev20240808145046.dist-info/METADATA,sha256=XkCFEQ-uRGA929Mgi6F-6fMzfBGH2neFz-1JXb4UIFA,749
15
- kleinkram-0.5.0.dev20240808145046.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
16
- kleinkram-0.5.0.dev20240808145046.dist-info/entry_points.txt,sha256=RHXtRzcreVHImatgjhQwZQ6GdJThElYjHEWcR1BPXUI,45
17
- kleinkram-0.5.0.dev20240808145046.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
18
- kleinkram-0.5.0.dev20240808145046.dist-info/RECORD,,
14
+ kleinkram-0.6.0.dist-info/METADATA,sha256=UZHVfcK-qEg-ATQIqm9W2juFO9JIXfg8bdLoMCqx32M,731
15
+ kleinkram-0.6.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
16
+ kleinkram-0.6.0.dist-info/entry_points.txt,sha256=RHXtRzcreVHImatgjhQwZQ6GdJThElYjHEWcR1BPXUI,45
17
+ kleinkram-0.6.0.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
18
+ kleinkram-0.6.0.dist-info/RECORD,,