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.

Files changed (25) hide show
  1. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/.gitignore +3 -1
  2. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/PKG-INFO +1 -1
  3. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/pyproject.toml +1 -1
  4. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/auth/auth.py +1 -1
  5. kleinkram-0.18.1/src/kleinkram/consts.py +2 -0
  6. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/file/file.py +1 -1
  7. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/helper.py +1 -1
  8. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/main.py +2 -2
  9. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/mission/mission.py +5 -3
  10. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/project/project.py +2 -2
  11. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/tag/tag.py +2 -2
  12. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/topic/topic.py +1 -1
  13. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/user/user.py +1 -1
  14. kleinkram-0.17.0.dev20240910150018/src/kleinkram/consts.py +0 -1
  15. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/LICENSE +0 -0
  16. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/README.md +0 -0
  17. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/deploy.sh +0 -0
  18. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/dev.sh +0 -0
  19. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/requirements.txt +0 -0
  20. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/klein.py +0 -0
  21. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/__init__.py +0 -0
  22. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/api_client.py +0 -0
  23. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/endpoint/endpoint.py +0 -0
  24. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/error_handling.py +0 -0
  25. {kleinkram-0.17.0.dev20240910150018 → kleinkram-0.18.1}/src/kleinkram/queue/queue.py +0 -0
@@ -5,4 +5,6 @@ CLI/dist
5
5
 
6
6
  **/node_modules/**
7
7
  **/venv/**
8
- backend/migration/.env
8
+ backend/migration/.env
9
+
10
+ **/swagger-spec.json
@@ -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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "kleinkram"
7
- version = "0.17.0-dev20240910150018"
7
+ version = "0.18.1"
8
8
  description = "A CLI for the ETH project kleinkram"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.7"
@@ -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
@@ -0,0 +1,2 @@
1
+ API_URL = "http://localhost:3000"
2
+ # API_URL = "https://api.datasets.leggedrobotics.com"
@@ -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
@@ -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
@@ -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:")
@@ -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:
@@ -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
@@ -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 +0,0 @@
1
- API_URL='https://api.datasets.leggedrobotics.com'