kleinkram 0.0.121.dev20240731104925__tar.gz → 0.0.121.dev20240805131106__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.

@@ -4,5 +4,5 @@ CLI/dist
4
4
  **/__pycache__
5
5
 
6
6
  **/node_modules/**
7
-
7
+ **/venv/**
8
8
  backend/migration/.env
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kleinkram
3
- Version: 0.0.121.dev20240731104925
3
+ Version: 0.0.121.dev20240805131106
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.0.121-dev20240731104925"
7
+ version = "0.0.121-dev20240805131106"
8
8
  authors = [
9
9
  { name="Johann Schwabe", email="jschwab@ethz.ch" },
10
10
  ]
@@ -42,9 +42,10 @@ app.command(hidden=True)(setCliKey)
42
42
  def list_files(
43
43
  project: Optional[str] = typer.Option(None, help="Name of Project"),
44
44
  mission: Optional[str] = typer.Option(None, help="Name of Mission"),
45
- topics: Optional[List[str]] = typer.Option(
45
+ topics: Optional[str] = typer.Option(
46
46
  None, help="Comma separated list of topics"
47
47
  ),
48
+ tags: Optional[str] = typer.Option(None, help="Comma separated list of tagtype:tagvalue pairs")
48
49
  ):
49
50
  """
50
51
  List all files with optional filters for project, mission, or topics.
@@ -66,6 +67,11 @@ def list_files(
66
67
  params["missionName"] = mission
67
68
  if topics:
68
69
  params["topics"] = topics
70
+ if tags:
71
+ params["tags"] = {}
72
+ for tag in tags.split(","):
73
+ tagtype, tagvalue = tag.split("§")
74
+ params['tags'][tagtype] = tagvalue
69
75
  response = client.get(
70
76
  url,
71
77
  params=params,
@@ -244,7 +250,7 @@ def create_project(
244
250
  """
245
251
  Create a new project
246
252
  """
247
- #Todo add required tags as option.
253
+ # Todo add required tags as option.
248
254
  try:
249
255
  url = "/project/create"
250
256
  response = client.post(