kleinkram 0.17.0.dev20240910150018__tar.gz → 0.18.1__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.
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/.gitignore +3 -1
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/PKG-INFO +1 -1
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/pyproject.toml +1 -1
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/auth/auth.py +1 -1
- kleinkram-0.18.1/src/kleinkram/consts.py +2 -0
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/file/file.py +1 -1
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/helper.py +1 -1
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/main.py +2 -2
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/mission/mission.py +5 -3
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/project/project.py +2 -2
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/tag/tag.py +2 -2
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/topic/topic.py +1 -1
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/user/user.py +1 -1
- kleinkram-0.17.0.dev20240910150018/src/kleinkram/consts.py +0 -1
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/LICENSE +0 -0
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/README.md +0 -0
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/deploy.sh +0 -0
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/dev.sh +0 -0
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/requirements.txt +0 -0
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/klein.py +0 -0
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/__init__.py +0 -0
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/api_client.py +0 -0
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/endpoint/endpoint.py +0 -0
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/error_handling.py +0 -0
- {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/queue/queue.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: kleinkram
|
|
3
|
-
Version: 0.
|
|
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
|
|
@@ -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) ->
|
|
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
|
|
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
|
|
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
|
|
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:")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from
|
|
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/
|
|
62
|
+
response = client.delete(f"/tag/{taguuid}")
|
|
63
63
|
if response.status_code < 400:
|
|
64
64
|
print("Deleted tag")
|
|
65
65
|
else:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
API_URL='https://api.datasets.leggedrobotics.com'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|