kleinkram 0.17.0.dev20240910150018__py3-none-any.whl → 0.18.1__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/auth/auth.py CHANGED
@@ -4,7 +4,7 @@ import urllib.parse
4
4
  import webbrowser
5
5
  from http.server import BaseHTTPRequestHandler, HTTPServer
6
6
  from pathlib import Path
7
- from typing import Optional
7
+ from typing_extensions import Optional
8
8
 
9
9
  import typer
10
10
  from typing_extensions import Annotated
kleinkram/consts.py CHANGED
@@ -1 +1,2 @@
1
- API_URL='https://api.datasets.leggedrobotics.com'
1
+ API_URL = "http://localhost:3000"
2
+ # API_URL = "https://api.datasets.leggedrobotics.com"
kleinkram/file/file.py CHANGED
@@ -1,5 +1,5 @@
1
1
  import os
2
- from typing import Optional, Annotated
2
+ from typing_extensions import Optional, Annotated
3
3
 
4
4
  import httpx
5
5
  import requests
kleinkram/helper.py CHANGED
@@ -3,7 +3,7 @@ import os
3
3
  import queue
4
4
  import threading
5
5
  from functools import partial
6
- from typing import Dict
6
+ from typing_extensions import Dict
7
7
  import boto3
8
8
 
9
9
  import tqdm
kleinkram/main.py CHANGED
@@ -9,7 +9,7 @@ from rich import print
9
9
  from rich.table import Table
10
10
  from typer.core import TyperGroup
11
11
  from typer.models import Context
12
- from typing_extensions import Annotated
12
+ from typing_extensions import Annotated, List
13
13
 
14
14
  from kleinkram.api_client import AuthenticatedClient
15
15
  from kleinkram.auth.auth import login, setCliKey, logout
@@ -45,7 +45,7 @@ class OrderCommands(TyperGroup):
45
45
  https://github.com/tiangolo/typer/discussions/855#discussioncomment-9824582) and adapted to our use case.
46
46
  """
47
47
 
48
- def list_commands(self, _ctx: Context) -> list[str]:
48
+ def list_commands(self, _ctx: Context) -> List[str]:
49
49
  order = list(CommandPanel)
50
50
  grouped_commands = {
51
51
  name: getattr(command, "rich_help_panel")
@@ -1,5 +1,5 @@
1
1
  import os
2
- from typing import Annotated, Optional
2
+ from typing_extensions import Annotated, Optional
3
3
 
4
4
  import httpx
5
5
  import requests
@@ -55,8 +55,10 @@ def list_missions(
55
55
  """
56
56
 
57
57
  url = "/mission"
58
+ params = {}
58
59
  if project:
59
- url += f"/filteredByProjectName/{project}"
60
+ url += f"/filteredByProjectName"
61
+ params["projectName"] = project
60
62
  else:
61
63
  url += "/all"
62
64
 
@@ -64,7 +66,7 @@ def list_missions(
64
66
 
65
67
  try:
66
68
 
67
- response = client.get(url)
69
+ response = client.get(url, params=params)
68
70
  response.raise_for_status()
69
71
 
70
72
  except httpx.HTTPError:
@@ -1,4 +1,4 @@
1
- from typing import Annotated
1
+ from typing_extensions import Annotated
2
2
 
3
3
  import httpx
4
4
  import typer
@@ -20,7 +20,7 @@ def list_projects():
20
20
  """
21
21
  try:
22
22
  client = AuthenticatedClient()
23
- response = client.get("/project")
23
+ response = client.get("/project/filtered")
24
24
  response.raise_for_status()
25
25
  projects = response.json()[0]
26
26
  print("Projects:")
kleinkram/tag/tag.py CHANGED
@@ -1,4 +1,4 @@
1
- from typing import Annotated
1
+ from typing_extensions import Annotated
2
2
 
3
3
  import httpx
4
4
  import typer
@@ -59,7 +59,7 @@ def delete_tag(
59
59
 
60
60
  try:
61
61
  client = AuthenticatedClient()
62
- response = client.delete("/tag/deleteTag", params={"uuid": taguuid})
62
+ response = client.delete(f"/tag/{taguuid}")
63
63
  if response.status_code < 400:
64
64
  print("Deleted tag")
65
65
  else:
kleinkram/topic/topic.py CHANGED
@@ -1,4 +1,4 @@
1
- from typing import Annotated
1
+ from typing_extensions import Annotated
2
2
 
3
3
  import httpx
4
4
  import typer
kleinkram/user/user.py CHANGED
@@ -1,4 +1,4 @@
1
- from typing import Annotated
1
+ from typing_extensions import Annotated
2
2
 
3
3
  import typer
4
4
  from rich.table import Table
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kleinkram
3
- Version: 0.17.0.dev20240910150018
3
+ Version: 0.18.1
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
@@ -0,0 +1,20 @@
1
+ kleinkram/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ kleinkram/api_client.py,sha256=1GPsM-XFbPYEKP7RfWmzMTwxRqnVh4wtHVuW25KT8kA,2264
3
+ kleinkram/consts.py,sha256=8kCOeSdMqEyB89hT55w5yd1fksUwbj52a2nYkZTZI_0,88
4
+ kleinkram/error_handling.py,sha256=Nm3tUtc4blQylJLNChSLgkDLFDHg3Xza0CghRrd_SYE,4015
5
+ kleinkram/helper.py,sha256=nq4LGn-dcRd7y69XnWl2Xz36lTcTaWWe1PZwqGWeOVQ,5590
6
+ kleinkram/main.py,sha256=v3wWCIn-4CxKwcf9mq3UnkqIR1XvbHzEjrX9Ri06-hk,8123
7
+ kleinkram/auth/auth.py,sha256=w3-TsxWxURzLQ3_p43zgV4Rlh4dVL_WqI6HG2aes-b4,4991
8
+ kleinkram/endpoint/endpoint.py,sha256=KAYQgK8J6Et8V_ho2wBUIAdg25Mps6l_glCfC1vvC2g,1372
9
+ kleinkram/file/file.py,sha256=8CCYu9MdG24Rh0aEcNB3OEMUzpLMSoV4VIhdeq2n8iA,3206
10
+ kleinkram/mission/mission.py,sha256=ZtCZfmE-N67gK1qKatDylnZkiQx0b26Sx1ZC2PYSFkE,5980
11
+ kleinkram/project/project.py,sha256=yDygz9JJ4Td5VsoCoCLm36HccRyd7jl65Hq05uxEGts,1602
12
+ kleinkram/queue/queue.py,sha256=MaLBjAu8asi9BkPvbbT-5AobCcpy3ex5rxM1kHpRINA,181
13
+ kleinkram/tag/tag.py,sha256=JSHbDPVfsvP34MuQhw__DPQk-Bah5G9BgwYsj_K_JGc,1805
14
+ kleinkram/topic/topic.py,sha256=IaXhrIHcJ3FSIr0WC-N7u9fkz-lAvSBgQklTX67t0Yc,1641
15
+ kleinkram/user/user.py,sha256=hDrbWeFPPnh2sswDd445SwcIFGyAbfXXWpYq1VqrK0g,1379
16
+ kleinkram-0.18.1.dist-info/METADATA,sha256=1HMd5AbYesJUaw_Lhe1mPK8c1isIOR-UnTshcXwZl7c,827
17
+ kleinkram-0.18.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
18
+ kleinkram-0.18.1.dist-info/entry_points.txt,sha256=RHXtRzcreVHImatgjhQwZQ6GdJThElYjHEWcR1BPXUI,45
19
+ kleinkram-0.18.1.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
20
+ kleinkram-0.18.1.dist-info/RECORD,,
@@ -1,20 +0,0 @@
1
- kleinkram/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- kleinkram/api_client.py,sha256=1GPsM-XFbPYEKP7RfWmzMTwxRqnVh4wtHVuW25KT8kA,2264
3
- kleinkram/consts.py,sha256=pm_6OuQcO-tYcRhwauTtyRRsuYY0y0yb6EGuIl49LnI,50
4
- kleinkram/error_handling.py,sha256=Nm3tUtc4blQylJLNChSLgkDLFDHg3Xza0CghRrd_SYE,4015
5
- kleinkram/helper.py,sha256=PNx6h7eTFZ10Ul7BqK2PTMXlKjHMKkQtANsceNZmAe8,5579
6
- kleinkram/main.py,sha256=coUDW27P1Ig1uWwEz4AOJ0IOYBkRiorZThG4uCimA8w,8117
7
- kleinkram/auth/auth.py,sha256=bROptCsE0r5D416_7l1lfw52IX_mSVEnjaKiU2_b1Ms,4980
8
- kleinkram/endpoint/endpoint.py,sha256=KAYQgK8J6Et8V_ho2wBUIAdg25Mps6l_glCfC1vvC2g,1372
9
- kleinkram/file/file.py,sha256=HsKzg8xn-AHJJIF11H6c0Gy61cRX3MyTMYdcyypUxWo,3195
10
- kleinkram/mission/mission.py,sha256=hDvpAcNqrE55rjIygMUign5a-v5H8Nsc2hq-Em1qa1U,5908
11
- kleinkram/project/project.py,sha256=_ATcIEIOt8__cYGpySCOPvfkLufxhwwFhpF5ubfqzlQ,1582
12
- kleinkram/queue/queue.py,sha256=MaLBjAu8asi9BkPvbbT-5AobCcpy3ex5rxM1kHpRINA,181
13
- kleinkram/tag/tag.py,sha256=TZHh1GIV4LhwhqEGKdTJkM5mCIoLXAopBgWdLX1AEz8,1819
14
- kleinkram/topic/topic.py,sha256=qit-DECI19QocXEkkkBC0FAlzpZnotAtX8mylA9zqAA,1630
15
- kleinkram/user/user.py,sha256=i_QfsctjhImvKKjuDPfOIyDr322SXgV-KxJo-a7qNZw,1368
16
- kleinkram-0.17.0.dev20240910150018.dist-info/METADATA,sha256=3BFDD-soyNM7Tr9zbuP0Jrs-RL-IrVIiV20Uri4ySJY,845
17
- kleinkram-0.17.0.dev20240910150018.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
18
- kleinkram-0.17.0.dev20240910150018.dist-info/entry_points.txt,sha256=RHXtRzcreVHImatgjhQwZQ6GdJThElYjHEWcR1BPXUI,45
19
- kleinkram-0.17.0.dev20240910150018.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
20
- kleinkram-0.17.0.dev20240910150018.dist-info/RECORD,,