kleinkram 0.50.2.dev20250915073003__py3-none-any.whl → 0.51.0.dev20251002112719__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/cli/_upload.py +16 -0
- kleinkram/utils.py +4 -0
- {kleinkram-0.50.2.dev20250915073003.dist-info → kleinkram-0.51.0.dev20251002112719.dist-info}/METADATA +1 -1
- {kleinkram-0.50.2.dev20250915073003.dist-info → kleinkram-0.51.0.dev20251002112719.dist-info}/RECORD +7 -7
- {kleinkram-0.50.2.dev20250915073003.dist-info → kleinkram-0.51.0.dev20251002112719.dist-info}/WHEEL +0 -0
- {kleinkram-0.50.2.dev20250915073003.dist-info → kleinkram-0.51.0.dev20251002112719.dist-info}/entry_points.txt +0 -0
- {kleinkram-0.50.2.dev20250915073003.dist-info → kleinkram-0.51.0.dev20251002112719.dist-info}/top_level.txt +0 -0
kleinkram/cli/_upload.py
CHANGED
|
@@ -44,6 +44,10 @@ def upload(
|
|
|
44
44
|
False,
|
|
45
45
|
help="fix filenames before upload, this does not change the filenames locally",
|
|
46
46
|
),
|
|
47
|
+
experimental_datatypes: bool = typer.Option(
|
|
48
|
+
False,
|
|
49
|
+
help="allow experimental datatypes (yaml, svo2, db3, tum)"
|
|
50
|
+
),
|
|
47
51
|
ignore_missing_tags: bool = typer.Option(False, help="ignore mission tags"),
|
|
48
52
|
) -> None:
|
|
49
53
|
# get filepaths
|
|
@@ -61,6 +65,18 @@ def upload(
|
|
|
61
65
|
|
|
62
66
|
if not fix_filenames:
|
|
63
67
|
for file in file_paths:
|
|
68
|
+
|
|
69
|
+
# check for experimental datatypes and throw an exception if not allowed
|
|
70
|
+
EXPERIMENTAL_DATATYPES = {".yaml", ".svo2", ".db3", ".tum"}
|
|
71
|
+
|
|
72
|
+
if not experimental_datatypes:
|
|
73
|
+
if file.suffix.lower() in EXPERIMENTAL_DATATYPES:
|
|
74
|
+
# NOTE: Assuming a 'DatatypeNotSupported' exception exists/is defined
|
|
75
|
+
raise FileNameNotSupported(
|
|
76
|
+
f"Datatype '{file.suffix}' for file {file} is not supported without the "
|
|
77
|
+
f"`--experimental-datatypes` flag. "
|
|
78
|
+
)
|
|
79
|
+
|
|
64
80
|
if not kleinkram.utils.check_filename_is_sanatized(file.stem):
|
|
65
81
|
raise FileNameNotSupported(
|
|
66
82
|
f"Only `{''.join(kleinkram.utils.INTERNAL_ALLOWED_CHARS)}` are "
|
kleinkram/utils.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kleinkram
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.51.0.dev20251002112719
|
|
4
4
|
Summary: give me your bags
|
|
5
5
|
Author: Cyrill Püntener, Dominique Garmier, Johann Schwabe
|
|
6
6
|
Author-email: pucyril@ethz.ch, dgarmier@ethz.ch, jschwab@ethz.ch
|
{kleinkram-0.50.2.dev20250915073003.dist-info → kleinkram-0.51.0.dev20251002112719.dist-info}/RECORD
RENAMED
|
@@ -10,7 +10,7 @@ kleinkram/models.py,sha256=MkWdGIWuCSnyg45DbdEUhtGIprwPYwKppYumHkRAS18,1870
|
|
|
10
10
|
kleinkram/printing.py,sha256=gVLQPmAhyO1Fc5kKLBC77KvoEguBaAReTU3h-QQCx58,12212
|
|
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=mmQWDxVYvEIGa7e7xDxIMZ-gvjgYA7wZIj-F4Rp1pi0,6816
|
|
14
14
|
kleinkram/wrappers.py,sha256=ZScoEov5Q6D2rvaJJ8E-4f58P_NGWrGc9mRPYxSqOC0,13127
|
|
15
15
|
kleinkram/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
kleinkram/api/client.py,sha256=VwuT97_WdbDpcVGwMXB0fRnUoQnUSf7BOP5eXUFokfI,5932
|
|
@@ -26,7 +26,7 @@ kleinkram/cli/_file.py,sha256=Q2fLDdUyfHFmdGC6wIxMqgEl0F76qszhzWJrRV5rTBM,2973
|
|
|
26
26
|
kleinkram/cli/_list.py,sha256=5gI3aIUeKC0_eWPQqdFXSBBFvpkTTJSm31TamHa197c,3090
|
|
27
27
|
kleinkram/cli/_mission.py,sha256=zDFnOozOFckpuREFgIPt1IzG5q3b1bsNxYlWQoHoz5A,5301
|
|
28
28
|
kleinkram/cli/_project.py,sha256=N0C96NC_onCEwTteYp2wgkkwkdJt-1q43LFdqNXfjC8,3398
|
|
29
|
-
kleinkram/cli/_upload.py,sha256=
|
|
29
|
+
kleinkram/cli/_upload.py,sha256=fGcBm4pJ1M6vL7z69LVURl3w6-_JnhpDnsnN9b3l8cs,3537
|
|
30
30
|
kleinkram/cli/_verify.py,sha256=n9QThY0JnqaIqw6udYXdRQGcpUl2lIbFXGQIgpTnDPE,2112
|
|
31
31
|
kleinkram/cli/app.py,sha256=Yetkt2jd6cggor7mPpV9Lcp6aLd45rACdF1nBW0uy9k,7546
|
|
32
32
|
kleinkram/cli/error_handling.py,sha256=wK3tzeKVSrZm-xmiyzGLnGT2E4TRpyxhaak6GWGP7P8,1921
|
|
@@ -43,8 +43,8 @@ tests/test_printing.py,sha256=kPzpIQOtQJ9yQ32mM8cMGDVOGsbrZZLQhfsXN1Pe68Q,2231
|
|
|
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.51.0.dev20251002112719.dist-info/METADATA,sha256=ssv7Rwcq9WypDmyZr_ZWTaqr-hDkgjwxz1XkKXUSyok,2846
|
|
47
|
+
kleinkram-0.51.0.dev20251002112719.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
48
|
+
kleinkram-0.51.0.dev20251002112719.dist-info/entry_points.txt,sha256=SaB2l5aqhSr8gmaMw2kvQU90a8Bnl7PedU8cWYxkfYo,46
|
|
49
|
+
kleinkram-0.51.0.dev20251002112719.dist-info/top_level.txt,sha256=N3-sJagEHu1Tk1X6Dx1X1q0pLDNbDZpLzRxVftvepds,24
|
|
50
|
+
kleinkram-0.51.0.dev20251002112719.dist-info/RECORD,,
|
{kleinkram-0.50.2.dev20250915073003.dist-info → kleinkram-0.51.0.dev20251002112719.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|