cmem-cmemc 25.2.0__py3-none-any.whl → 25.3.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.
- cmem_cmemc/commands/workflow.py +9 -0
- cmem_cmemc/completion.py +24 -31
- {cmem_cmemc-25.2.0.dist-info → cmem_cmemc-25.3.0.dist-info}/METADATA +2 -2
- {cmem_cmemc-25.2.0.dist-info → cmem_cmemc-25.3.0.dist-info}/RECORD +7 -7
- {cmem_cmemc-25.2.0.dist-info → cmem_cmemc-25.3.0.dist-info}/LICENSE +0 -0
- {cmem_cmemc-25.2.0.dist-info → cmem_cmemc-25.3.0.dist-info}/WHEEL +0 -0
- {cmem_cmemc-25.2.0.dist-info → cmem_cmemc-25.3.0.dist-info}/entry_points.txt +0 -0
cmem_cmemc/commands/workflow.py
CHANGED
|
@@ -51,8 +51,15 @@ FILE_EXTENSIONS_TO_PLUGIN_ID = {
|
|
|
51
51
|
".json": "json",
|
|
52
52
|
".xml": "xml",
|
|
53
53
|
".txt": "text",
|
|
54
|
+
".md": "text",
|
|
54
55
|
".xlsx": "excel",
|
|
55
56
|
".zip": "multiCsv",
|
|
57
|
+
".pdf": "binaryFile",
|
|
58
|
+
".png": "binaryFile",
|
|
59
|
+
".jpg": "binaryFile",
|
|
60
|
+
".jpeg": "binaryFile",
|
|
61
|
+
".gif": "binaryFile",
|
|
62
|
+
".tiff": "binaryFile",
|
|
56
63
|
}
|
|
57
64
|
|
|
58
65
|
# Derive valid extensions from FILE_EXTENSIONS_TO_PLUGIN_ID keys
|
|
@@ -63,6 +70,7 @@ EXTRA_INPUT_MIME_TYPES = [
|
|
|
63
70
|
"application/json",
|
|
64
71
|
"application/xml",
|
|
65
72
|
"text/csv",
|
|
73
|
+
"application/octet-stream",
|
|
66
74
|
]
|
|
67
75
|
|
|
68
76
|
EXTRA_OUTPUT_MIME_TYPES = [
|
|
@@ -71,6 +79,7 @@ EXTRA_OUTPUT_MIME_TYPES = [
|
|
|
71
79
|
"application/n-triples",
|
|
72
80
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
73
81
|
"text/csv",
|
|
82
|
+
"application/octet-stream",
|
|
74
83
|
]
|
|
75
84
|
|
|
76
85
|
STDOUT_UNSUPPORTED_MIME_TYPES = {
|
cmem_cmemc/completion.py
CHANGED
|
@@ -495,32 +495,6 @@ def installable_packages(ctx: Context, param: Argument, incomplete: str) -> list
|
|
|
495
495
|
)
|
|
496
496
|
|
|
497
497
|
|
|
498
|
-
def workflow_io_input_files(ctx: Context, param: Argument, incomplete: str) -> list[CompletionItem]:
|
|
499
|
-
"""Prepare a list of acceptable workflow io input files."""
|
|
500
|
-
return (
|
|
501
|
-
file_list(incomplete=incomplete, suffix=".csv", description="CSV Dataset resource")
|
|
502
|
-
+ file_list(incomplete=incomplete, suffix=".xml", description="XML Dataset resource")
|
|
503
|
-
+ file_list(incomplete=incomplete, suffix=".json", description="JSON Dataset resource")
|
|
504
|
-
+ file_list(incomplete=incomplete, suffix=".xlsx", description="Excel Dataset resource")
|
|
505
|
-
+ file_list(incomplete=incomplete, suffix=".txt", description="Text Dataset resource")
|
|
506
|
-
+ file_list(incomplete=incomplete, suffix=".zip", description="Multi CSV Dataset resource")
|
|
507
|
-
)
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
def workflow_io_input_mimetypes(
|
|
511
|
-
ctx: Context, param: Argument, incomplete: str
|
|
512
|
-
) -> list[CompletionItem]:
|
|
513
|
-
"""Prepare a list of acceptable workflow io input mimetypes."""
|
|
514
|
-
return (
|
|
515
|
-
file_list(incomplete=incomplete, suffix=".csv", description="CSV Dataset resource")
|
|
516
|
-
+ file_list(incomplete=incomplete, suffix=".xml", description="XML Dataset resource")
|
|
517
|
-
+ file_list(incomplete=incomplete, suffix=".json", description="JSON Dataset resource")
|
|
518
|
-
+ file_list(incomplete=incomplete, suffix=".xlsx", description="Excel Dataset resource")
|
|
519
|
-
+ file_list(incomplete=incomplete, suffix=".txt", description="Text Dataset resource")
|
|
520
|
-
+ file_list(incomplete=incomplete, suffix=".zip", description="Multi CSV Dataset resource")
|
|
521
|
-
)
|
|
522
|
-
|
|
523
|
-
|
|
524
498
|
def workflow_io_output_files(
|
|
525
499
|
ctx: Context, param: Argument, incomplete: str
|
|
526
500
|
) -> list[CompletionItem]:
|
|
@@ -535,6 +509,18 @@ def workflow_io_output_files(
|
|
|
535
509
|
)
|
|
536
510
|
|
|
537
511
|
|
|
512
|
+
def workflow_io_input_files(ctx: Context, param: Argument, incomplete: str) -> list[CompletionItem]:
|
|
513
|
+
"""Prepare a list of acceptable workflow io input files."""
|
|
514
|
+
files = []
|
|
515
|
+
for extension, info in get_dataset_file_mapping().items():
|
|
516
|
+
# handle zip extension separately.
|
|
517
|
+
if extension != ".zip":
|
|
518
|
+
files += file_list(
|
|
519
|
+
incomplete=incomplete, suffix=extension, description=info["description"]
|
|
520
|
+
)
|
|
521
|
+
return files
|
|
522
|
+
|
|
523
|
+
|
|
538
524
|
def get_dataset_file_mapping() -> dict[str, dict[str, str]]:
|
|
539
525
|
"""Return file extension to type and description mapping"""
|
|
540
526
|
return {
|
|
@@ -547,15 +533,22 @@ def get_dataset_file_mapping() -> dict[str, dict[str, str]]:
|
|
|
547
533
|
".json.zip": {"description": "JSON Dataset resource (zipped)", "type": "json"},
|
|
548
534
|
".jsonl": {"description": "JSON Lines Dataset resource", "type": "json"},
|
|
549
535
|
".jsonl.zip": {"description": "JSON Lines Dataset resource (zipped)", "type": "json"},
|
|
550
|
-
".yaml": {"description": "YAML Document", "type": "text"},
|
|
551
|
-
".yaml.zip": {"description": "YAML Document (zipped)", "type": "text"},
|
|
552
|
-
".
|
|
553
|
-
".
|
|
536
|
+
".yaml": {"description": "YAML Text Document", "type": "text"},
|
|
537
|
+
".yaml.zip": {"description": "YAML Text Document (zipped)", "type": "text"},
|
|
538
|
+
".md": {"description": "Markdown Text Document", "type": "text"},
|
|
539
|
+
".md.zip": {"description": "Markdown Text Document (zipped)", "type": "text"},
|
|
540
|
+
".yml": {"description": "YAML Text Document", "type": "text"},
|
|
541
|
+
".yml.zip": {"description": "YAML Text Document (zipped)", "type": "text"},
|
|
554
542
|
".ttl": {"description": "RDF file Dataset resource", "type": "file"},
|
|
555
543
|
".orc": {"description": "Apache ORC Dataset resource", "type": "orc"},
|
|
556
544
|
".txt": {"description": "Text dataset resource", "type": "text"},
|
|
557
545
|
".txt.zip": {"description": "Text dataset resource (zipped)", "type": "text"},
|
|
558
|
-
".zip": {"description": "multiCsv Dataset resource", "type": "multiCsv"},
|
|
546
|
+
".zip": {"description": "Potential multiCsv Dataset resource", "type": "multiCsv"},
|
|
547
|
+
".pdf": {"description": "Potential Binary Dataset resource", "type": "binaryFile"},
|
|
548
|
+
".png": {"description": "Potential Binary Dataset resource", "type": "binaryFile"},
|
|
549
|
+
".jpg": {"description": "Potential Binary Dataset resource", "type": "binaryFile"},
|
|
550
|
+
".gif": {"description": "Potential Binary Dataset resource", "type": "binaryFile"},
|
|
551
|
+
".tiff": {"description": "Potential Binary Dataset resource", "type": "binaryFile"},
|
|
559
552
|
}
|
|
560
553
|
|
|
561
554
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: cmem-cmemc
|
|
3
|
-
Version: 25.
|
|
3
|
+
Version: 25.3.0
|
|
4
4
|
Summary: Command line client for eccenca Corporate Memory
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: eccenca
|
|
@@ -30,7 +30,7 @@ Requires-Dist: certifi (>=2024.2.2)
|
|
|
30
30
|
Requires-Dist: click (>=8.1.8,<8.2.0)
|
|
31
31
|
Requires-Dist: click-didyoumean (>=0.3.1,<0.4.0)
|
|
32
32
|
Requires-Dist: click-help-colors (>=0.9.4,<0.10.0)
|
|
33
|
-
Requires-Dist: cmem-cmempy (==25.
|
|
33
|
+
Requires-Dist: cmem-cmempy (==25.2.0)
|
|
34
34
|
Requires-Dist: configparser (>=7.2.0,<8.0.0)
|
|
35
35
|
Requires-Dist: jinja2 (>=3.1.6,<4.0.0)
|
|
36
36
|
Requires-Dist: junit-xml (>=1.9,<2.0)
|
|
@@ -24,9 +24,9 @@ cmem_cmemc/commands/user.py,sha256=ANZpeOBA46xiqOcNPrueComsCV0gEBbav-vOL9VgyX4,1
|
|
|
24
24
|
cmem_cmemc/commands/validation.py,sha256=Fv5yBIXzqy8FyjIzo-wJkv_7H5bhtcQhMxFIlJEVoBw,29495
|
|
25
25
|
cmem_cmemc/commands/variable.py,sha256=aLRH_rFe0h7JBpKIqzcevbk26vczgUGokIDY8g6LPxA,11576
|
|
26
26
|
cmem_cmemc/commands/vocabulary.py,sha256=fdXsG7gspA6HeOasXis1ky9UIZG-qRYP-NiFcvzCTKM,17840
|
|
27
|
-
cmem_cmemc/commands/workflow.py,sha256=
|
|
27
|
+
cmem_cmemc/commands/workflow.py,sha256=HSgEMbK_anYZpme4yiQ4-pxGfQcL4YWa29lrm0aT8Nk,25777
|
|
28
28
|
cmem_cmemc/commands/workspace.py,sha256=IcZgBsvtulLRFofS70qpln6oKQIZunrVLfSAUeiFhCA,4579
|
|
29
|
-
cmem_cmemc/completion.py,sha256=
|
|
29
|
+
cmem_cmemc/completion.py,sha256=NTNJWK5nllXVebACAC68NnKKru_VU4lhLA-shgzJH7Y,45092
|
|
30
30
|
cmem_cmemc/config_parser.py,sha256=NduwOT-BB_uAk3pz1Y-ex18RQJW-jjHzkQKCEUUK6Hc,1276
|
|
31
31
|
cmem_cmemc/constants.py,sha256=pzZYbSaTDUiWmE-VOAHB20oivHew5_FP9UTejySsVK4,550
|
|
32
32
|
cmem_cmemc/context.py,sha256=jIta2wgQ3wHviLpzaHKlt-6_Ur7M04I6fBtIIF7s4Cs,22247
|
|
@@ -53,8 +53,8 @@ cmem_cmemc/smart_path/clients/http.py,sha256=3clZu2v4uuOvPY4MY_8SVSy7hIXJDNooahF
|
|
|
53
53
|
cmem_cmemc/string_processor.py,sha256=kSVePdgFmf2ekurKj6TbDJn6ur82VGLwCsTJ9ODfBEU,2879
|
|
54
54
|
cmem_cmemc/title_helper.py,sha256=7frjAR54_Xc1gszOWXfzSmKFTawNJQ7kkXhZcHmQLyw,1250
|
|
55
55
|
cmem_cmemc/utils.py,sha256=PkDFDISz7uemJCmyIWmtCcjfR_gRnRBL8ao76Ex-py8,14669
|
|
56
|
-
cmem_cmemc-25.
|
|
57
|
-
cmem_cmemc-25.
|
|
58
|
-
cmem_cmemc-25.
|
|
59
|
-
cmem_cmemc-25.
|
|
60
|
-
cmem_cmemc-25.
|
|
56
|
+
cmem_cmemc-25.3.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
57
|
+
cmem_cmemc-25.3.0.dist-info/METADATA,sha256=aGWBNWxM2mPs_3OrXPVnGWUIiqBcexhEnIvTnl6sN_c,5642
|
|
58
|
+
cmem_cmemc-25.3.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
59
|
+
cmem_cmemc-25.3.0.dist-info/entry_points.txt,sha256=2G0AWAyz501EHpFTjIxccdlCTsHt80NT0pdUGP1QkPA,45
|
|
60
|
+
cmem_cmemc-25.3.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|