kleinkram 0.38.1.dev20250218095010__py3-none-any.whl → 0.39.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/api/deser.py +0 -3
- kleinkram/api/query.py +2 -2
- kleinkram/config.py +4 -4
- kleinkram/utils.py +1 -1
- {kleinkram-0.38.1.dev20250218095010.dist-info → kleinkram-0.39.0.dist-info}/METADATA +3 -1
- {kleinkram-0.38.1.dev20250218095010.dist-info → kleinkram-0.39.0.dist-info}/RECORD +10 -10
- testing/backend_fixtures.py +1 -0
- {kleinkram-0.38.1.dev20250218095010.dist-info → kleinkram-0.39.0.dist-info}/WHEEL +0 -0
- {kleinkram-0.38.1.dev20250218095010.dist-info → kleinkram-0.39.0.dist-info}/entry_points.txt +0 -0
- {kleinkram-0.38.1.dev20250218095010.dist-info → kleinkram-0.39.0.dist-info}/top_level.txt +0 -0
kleinkram/api/deser.py
CHANGED
|
@@ -28,9 +28,6 @@ ProjectObject = NewType("ProjectObject", Dict[str, Any])
|
|
|
28
28
|
MissionObject = NewType("MissionObject", Dict[str, Any])
|
|
29
29
|
FileObject = NewType("FileObject", Dict[str, Any])
|
|
30
30
|
|
|
31
|
-
PROJECT_OBJECT_KEYS = []
|
|
32
|
-
MISSION_OBJECT_KEYS = []
|
|
33
|
-
|
|
34
31
|
MISSION = "mission"
|
|
35
32
|
PROJECT = "project"
|
|
36
33
|
|
kleinkram/api/query.py
CHANGED
|
@@ -31,14 +31,14 @@ class ProjectQuery:
|
|
|
31
31
|
class MissionQuery:
|
|
32
32
|
patterns: List[str] = field(default_factory=list)
|
|
33
33
|
ids: List[UUID] = field(default_factory=list)
|
|
34
|
-
project_query: ProjectQuery = field(
|
|
34
|
+
project_query: ProjectQuery = field(default_factory=ProjectQuery)
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
@dataclass
|
|
38
38
|
class FileQuery:
|
|
39
39
|
patterns: List[str] = field(default_factory=list)
|
|
40
40
|
ids: List[UUID] = field(default_factory=list)
|
|
41
|
-
mission_query: MissionQuery = field(
|
|
41
|
+
mission_query: MissionQuery = field(default_factory=MissionQuery)
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
def check_mission_query_is_creatable(query: MissionQuery) -> str:
|
kleinkram/config.py
CHANGED
|
@@ -52,10 +52,10 @@ DEFAULT_LOCAL_API = "http://localhost:3000"
|
|
|
52
52
|
DEFAULT_LOCAL_S3 = "http://localhost:9000"
|
|
53
53
|
|
|
54
54
|
DEFAULT_DEV_API = "https://api.datasets.dev.leggedrobotics.com"
|
|
55
|
-
DEFAULT_DEV_S3 = "https://
|
|
55
|
+
DEFAULT_DEV_S3 = "https://minio.datasets.dev.leggedrobotics.com"
|
|
56
56
|
|
|
57
57
|
DEFAULT_PROD_API = "https://api.datasets.leggedrobotics.com"
|
|
58
|
-
DEFAULT_PROD_S3 = "https://
|
|
58
|
+
DEFAULT_PROD_S3 = "https://minio.datasets.leggedrobotics.com"
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
DEFAULT_ENDPOINTS = {
|
|
@@ -232,9 +232,9 @@ def endpoint_table(config: Config) -> Table:
|
|
|
232
232
|
|
|
233
233
|
for name, endpoint in config.endpoints.items():
|
|
234
234
|
display_name = (
|
|
235
|
-
Text(name, style="bold yellow")
|
|
235
|
+
Text(f"* {name}", style="bold yellow")
|
|
236
236
|
if name == config.selected_endpoint
|
|
237
|
-
else Text(name)
|
|
237
|
+
else Text(f" {name}")
|
|
238
238
|
)
|
|
239
239
|
table.add_row(display_name, endpoint.api, endpoint.s3)
|
|
240
240
|
return table
|
kleinkram/utils.py
CHANGED
|
@@ -111,7 +111,7 @@ def format_error(msg: str, exc: Exception, *, verbose: bool = False) -> str:
|
|
|
111
111
|
|
|
112
112
|
def format_traceback(exc: Exception) -> str:
|
|
113
113
|
return "".join(
|
|
114
|
-
traceback.format_exception(
|
|
114
|
+
traceback.format_exception(type(exc), value=exc, tb=exc.__traceback__)
|
|
115
115
|
)
|
|
116
116
|
|
|
117
117
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: kleinkram
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.39.0
|
|
4
4
|
Summary: give me your bags
|
|
5
5
|
Author: Cyrill Püntener, Dominique Garmier, Johann Schwabe
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -118,3 +118,5 @@ For the latter you need to have an instance of the backend running locally.
|
|
|
118
118
|
See instructions in the root of the repository for this.
|
|
119
119
|
On top of that these tests require particular files to be present in the `cli/data/testing` directory.
|
|
120
120
|
To see the exact files that are required, see `cli/testing/backend_fixtures.py`.
|
|
121
|
+
|
|
122
|
+
You also need to make sure to be logged in with the cli with `klein login`.
|
|
@@ -2,7 +2,7 @@ kleinkram/__init__.py,sha256=xIJqTJw2kbCGryGlCeAdpmtR1FTxmrW1MklUNQEaj74,1061
|
|
|
2
2
|
kleinkram/__main__.py,sha256=B9RiZxfO4jpCmWPUHyKJ7_EoZlEG4sPpH-nz7T_YhhQ,125
|
|
3
3
|
kleinkram/_version.py,sha256=QYJyRTcqFcJj4qWYpqs7WcoOP6jxDMqyvxLY-cD6KcE,129
|
|
4
4
|
kleinkram/auth.py,sha256=XD_rHOyJmYYfO7QJf3TLYH5qXA22gXGWi7PT3jujlVs,2968
|
|
5
|
-
kleinkram/config.py,sha256=
|
|
5
|
+
kleinkram/config.py,sha256=cGBr5dex6XzoktkLKnXBSQiThxFR4wZjUUsFGu5cqpA,6839
|
|
6
6
|
kleinkram/core.py,sha256=Q7OYIKPN9K6kxf9Eq7r5XRHPJ3RtT7SBZp_3_CS8yuY,8429
|
|
7
7
|
kleinkram/errors.py,sha256=4mygNxkf6IBgaiRWY95qu0v6z4TAXA3G6CUcXC9FU3s,772
|
|
8
8
|
kleinkram/main.py,sha256=BTE0mZN__xd46wBhFi6iBlK9eGGQvJ1LdUMsbnysLi0,172
|
|
@@ -10,14 +10,14 @@ kleinkram/models.py,sha256=8nJlPrKVLSmehspeuQSFV6nUo76JzehUn6KIZYH1xy4,1832
|
|
|
10
10
|
kleinkram/printing.py,sha256=OLApOtXytGZGzdpQ9Kd-swMrPAjdnvCo5jCpLoa2lIE,11238
|
|
11
11
|
kleinkram/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
kleinkram/types.py,sha256=nfDjj8TB1Jn5vqO0Xg6qhLOuKom9DDhe62BrngqnVGM,185
|
|
13
|
-
kleinkram/utils.py,sha256=
|
|
13
|
+
kleinkram/utils.py,sha256=2lUk0y0KE6kkM6gKAfwcdxJsx0lF66ztHbkhm_CSxvI,6264
|
|
14
14
|
kleinkram/wrappers.py,sha256=4xXU43eNnvMG2sssU330MmTLSSRdurOpnZ-zNGOGmt0,11342
|
|
15
15
|
kleinkram/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
kleinkram/api/client.py,sha256=yFanAc8VkpcyO5rVXIPyGaYHmF8_tBeC0ZMRUx0StWU,5061
|
|
17
|
-
kleinkram/api/deser.py,sha256
|
|
17
|
+
kleinkram/api/deser.py,sha256=xRpYUFKZ0Luoo7XyAtYblJvprmpjNSZOiFVnFKmOzcM,4819
|
|
18
18
|
kleinkram/api/file_transfer.py,sha256=3wNlVQdjnRtxOzih5HhCTF18xPbYClFIDxCqbwkLl6c,12985
|
|
19
19
|
kleinkram/api/pagination.py,sha256=P_zPsBKlMWkmAv-YfUNHaGW-XLB_4U8BDMrKyiDFIXk,1370
|
|
20
|
-
kleinkram/api/query.py,sha256=
|
|
20
|
+
kleinkram/api/query.py,sha256=9Exi4hJR7Ml38_zjAcOvSEoIAxZLlpM6QwwzO9fs5Gk,3293
|
|
21
21
|
kleinkram/api/routes.py,sha256=q2MhoeGRXFKcQlIwxk9kzdzSiFB-EWdyeXVCqLp6ydw,12099
|
|
22
22
|
kleinkram/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
23
|
kleinkram/cli/_download.py,sha256=H4YlXJkZE4Md02nzgrO_i8Hsm4ZIejPsxBEKkcn4KHs,2371
|
|
@@ -31,7 +31,7 @@ kleinkram/cli/_verify.py,sha256=0ABVa4U_WzaV36ClR8NsOIG7KAMRlnFmsbtnHhbWVj4,1742
|
|
|
31
31
|
kleinkram/cli/app.py,sha256=pQwyX6Bilg3-GJwkfs5K49KtwnTnl8pzsa7urbR3TMg,6657
|
|
32
32
|
kleinkram/cli/error_handling.py,sha256=wK3tzeKVSrZm-xmiyzGLnGT2E4TRpyxhaak6GWGP7P8,1921
|
|
33
33
|
testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
|
-
testing/backend_fixtures.py,sha256=
|
|
34
|
+
testing/backend_fixtures.py,sha256=t5QWwyezHUhxxAlbUuE_eFmpyRaGbnWNNcGPwrO17JM,1571
|
|
35
35
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
36
|
tests/conftest.py,sha256=5MLYQOtQoXWl0TRkYntYKNdqpd4hl9m0XTRi5OXanYI,104
|
|
37
37
|
tests/test_config.py,sha256=2hyk-CY4D_Q1bLDwcpdEs2tpYeR8zdWxW7VvrckoEVk,5225
|
|
@@ -43,8 +43,8 @@ tests/test_printing.py,sha256=qCr04OJVl5ouht9FoeWGKOi8MZXevVV1EDghzV1JaMc,1903
|
|
|
43
43
|
tests/test_query.py,sha256=fExmCKXLA7-9j2S2sF_sbvRX_2s6Cp3a7OTcqE25q9g,3864
|
|
44
44
|
tests/test_utils.py,sha256=eUBYrn3xrcgcaxm1X4fqZaX4tRvkbI6rh6BUbNbu9T0,4784
|
|
45
45
|
tests/test_wrappers.py,sha256=TbcTyO2L7fslbzgfDdcVZkencxNQ8cGPZm_iB6c9d6Q,2673
|
|
46
|
-
kleinkram-0.
|
|
47
|
-
kleinkram-0.
|
|
48
|
-
kleinkram-0.
|
|
49
|
-
kleinkram-0.
|
|
50
|
-
kleinkram-0.
|
|
46
|
+
kleinkram-0.39.0.dist-info/METADATA,sha256=MVUM8ffHW28IUPdXtl9BsTb10x-H8QpJ_uHyzDodW84,2742
|
|
47
|
+
kleinkram-0.39.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
48
|
+
kleinkram-0.39.0.dist-info/entry_points.txt,sha256=SaB2l5aqhSr8gmaMw2kvQU90a8Bnl7PedU8cWYxkfYo,46
|
|
49
|
+
kleinkram-0.39.0.dist-info/top_level.txt,sha256=N3-sJagEHu1Tk1X6Dx1X1q0pLDNbDZpLzRxVftvepds,24
|
|
50
|
+
kleinkram-0.39.0.dist-info/RECORD,,
|
testing/backend_fixtures.py
CHANGED
|
File without changes
|
{kleinkram-0.38.1.dev20250218095010.dist-info → kleinkram-0.39.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|