licos-dev-sdk 0.2.0__tar.gz → 0.2.2__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.
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/PKG-INFO +1 -1
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/pyproject.toml +27 -27
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/src/licos_dev_sdk/__init__.py +89 -87
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/src/licos_dev_sdk/model.py +1010 -947
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/tests/test_model.py +226 -151
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/.gitignore +0 -0
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/src/licos_dev_sdk/_utils.py +0 -0
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/src/licos_dev_sdk/archive.py +0 -0
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/src/licos_dev_sdk/chart.py +0 -0
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/src/licos_dev_sdk/data.py +0 -0
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/src/licos_dev_sdk/diagram.py +0 -0
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/src/licos_dev_sdk/document.py +0 -0
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/src/licos_dev_sdk/image.py +0 -0
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/src/licos_dev_sdk/presentation.py +0 -0
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/src/licos_dev_sdk/spreadsheet.py +0 -0
- {licos_dev_sdk-0.2.0 → licos_dev_sdk-0.2.2}/src/licos_dev_sdk/web.py +0 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["hatchling"]
|
|
3
|
-
build-backend = "hatchling.build"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "licos-dev-sdk"
|
|
7
|
-
version = "0.2.
|
|
8
|
-
description = "LICOS Dev SDK - file generation and model capability clients"
|
|
9
|
-
requires-python = ">=3.10"
|
|
10
|
-
dependencies = [
|
|
11
|
-
"licos-platform-sdk>=0.2.6",
|
|
12
|
-
"weasyprint>=62.0",
|
|
13
|
-
"python-docx>=1.1",
|
|
14
|
-
"openpyxl>=3.1",
|
|
15
|
-
"python-pptx>=1.0",
|
|
16
|
-
"matplotlib>=3.9",
|
|
17
|
-
"graphviz>=0.20",
|
|
18
|
-
"qrcode[pil]>=8.0",
|
|
19
|
-
"python-barcode>=0.15",
|
|
20
|
-
"Pillow>=10.0",
|
|
21
|
-
"Jinja2>=3.1",
|
|
22
|
-
"mistune>=3.0",
|
|
23
|
-
"PyYAML>=6.0",
|
|
24
|
-
]
|
|
25
|
-
|
|
26
|
-
[tool.hatch.build.targets.wheel]
|
|
27
|
-
packages = ["src/licos_dev_sdk"]
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "licos-dev-sdk"
|
|
7
|
+
version = "0.2.2"
|
|
8
|
+
description = "LICOS Dev SDK - file generation and model capability clients"
|
|
9
|
+
requires-python = ">=3.10"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"licos-platform-sdk>=0.2.6",
|
|
12
|
+
"weasyprint>=62.0",
|
|
13
|
+
"python-docx>=1.1",
|
|
14
|
+
"openpyxl>=3.1",
|
|
15
|
+
"python-pptx>=1.0",
|
|
16
|
+
"matplotlib>=3.9",
|
|
17
|
+
"graphviz>=0.20",
|
|
18
|
+
"qrcode[pil]>=8.0",
|
|
19
|
+
"python-barcode>=0.15",
|
|
20
|
+
"Pillow>=10.0",
|
|
21
|
+
"Jinja2>=3.1",
|
|
22
|
+
"mistune>=3.0",
|
|
23
|
+
"PyYAML>=6.0",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[tool.hatch.build.targets.wheel]
|
|
27
|
+
packages = ["src/licos_dev_sdk"]
|
|
@@ -1,87 +1,89 @@
|
|
|
1
|
-
"""LICOS Dev SDK — file generation toolkit.
|
|
2
|
-
|
|
3
|
-
Modules with heavy native dependencies (weasyprint, graphviz, matplotlib)
|
|
4
|
-
are lazy-imported to avoid errors in minimal environments (e.g., node-base).
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def __getattr__(name: str):
|
|
9
|
-
"""Lazy import — only load modules when accessed."""
|
|
10
|
-
_map = {
|
|
11
|
-
# data
|
|
12
|
-
"create_json": ("data", "create_json"),
|
|
13
|
-
"create_xml": ("data", "create_xml"),
|
|
14
|
-
"create_yaml": ("data", "create_yaml"),
|
|
15
|
-
# archive
|
|
16
|
-
"create_zip": ("archive", "create_zip"),
|
|
17
|
-
"create_tar_gz": ("archive", "create_tar_gz"),
|
|
18
|
-
# image
|
|
19
|
-
"create_qrcode": ("image", "create_qrcode"),
|
|
20
|
-
"create_barcode": ("image", "create_barcode"),
|
|
21
|
-
"create_watermark": ("image", "create_watermark"),
|
|
22
|
-
# web
|
|
23
|
-
"create_html": ("web", "create_html"),
|
|
24
|
-
"create_markdown": ("web", "create_markdown"),
|
|
25
|
-
"markdown_to_html": ("web", "markdown_to_html"),
|
|
26
|
-
# document
|
|
27
|
-
"create_pdf": ("document", "create_pdf"),
|
|
28
|
-
"create_docx": ("document", "create_docx"),
|
|
29
|
-
# spreadsheet
|
|
30
|
-
"create_xlsx": ("spreadsheet", "create_xlsx"),
|
|
31
|
-
"create_csv": ("spreadsheet", "create_csv"),
|
|
32
|
-
# chart
|
|
33
|
-
"create_chart": ("chart", "create_chart"),
|
|
34
|
-
# diagram
|
|
35
|
-
"create_diagram": ("diagram", "create_diagram"),
|
|
36
|
-
# presentation
|
|
37
|
-
"create_pptx": ("presentation", "create_pptx"),
|
|
38
|
-
# model catalog and model tools
|
|
39
|
-
"ModelRuntime": ("model", "ModelRuntime"),
|
|
40
|
-
"ModelEndpoint": ("model", "ModelEndpoint"),
|
|
41
|
-
"ModelResult": ("model", "ModelResult"),
|
|
42
|
-
"ApiError": ("model", "ApiError"),
|
|
43
|
-
"ConfigurationError": ("model", "ConfigurationError"),
|
|
44
|
-
"LLMClient": ("model", "LLMClient"),
|
|
45
|
-
"VisionClient": ("model", "VisionClient"),
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
|
|
1
|
+
"""LICOS Dev SDK — file generation toolkit.
|
|
2
|
+
|
|
3
|
+
Modules with heavy native dependencies (weasyprint, graphviz, matplotlib)
|
|
4
|
+
are lazy-imported to avoid errors in minimal environments (e.g., node-base).
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def __getattr__(name: str):
|
|
9
|
+
"""Lazy import — only load modules when accessed."""
|
|
10
|
+
_map = {
|
|
11
|
+
# data
|
|
12
|
+
"create_json": ("data", "create_json"),
|
|
13
|
+
"create_xml": ("data", "create_xml"),
|
|
14
|
+
"create_yaml": ("data", "create_yaml"),
|
|
15
|
+
# archive
|
|
16
|
+
"create_zip": ("archive", "create_zip"),
|
|
17
|
+
"create_tar_gz": ("archive", "create_tar_gz"),
|
|
18
|
+
# image
|
|
19
|
+
"create_qrcode": ("image", "create_qrcode"),
|
|
20
|
+
"create_barcode": ("image", "create_barcode"),
|
|
21
|
+
"create_watermark": ("image", "create_watermark"),
|
|
22
|
+
# web
|
|
23
|
+
"create_html": ("web", "create_html"),
|
|
24
|
+
"create_markdown": ("web", "create_markdown"),
|
|
25
|
+
"markdown_to_html": ("web", "markdown_to_html"),
|
|
26
|
+
# document
|
|
27
|
+
"create_pdf": ("document", "create_pdf"),
|
|
28
|
+
"create_docx": ("document", "create_docx"),
|
|
29
|
+
# spreadsheet
|
|
30
|
+
"create_xlsx": ("spreadsheet", "create_xlsx"),
|
|
31
|
+
"create_csv": ("spreadsheet", "create_csv"),
|
|
32
|
+
# chart
|
|
33
|
+
"create_chart": ("chart", "create_chart"),
|
|
34
|
+
# diagram
|
|
35
|
+
"create_diagram": ("diagram", "create_diagram"),
|
|
36
|
+
# presentation
|
|
37
|
+
"create_pptx": ("presentation", "create_pptx"),
|
|
38
|
+
# model catalog and model tools
|
|
39
|
+
"ModelRuntime": ("model", "ModelRuntime"),
|
|
40
|
+
"ModelEndpoint": ("model", "ModelEndpoint"),
|
|
41
|
+
"ModelResult": ("model", "ModelResult"),
|
|
42
|
+
"ApiError": ("model", "ApiError"),
|
|
43
|
+
"ConfigurationError": ("model", "ConfigurationError"),
|
|
44
|
+
"LLMClient": ("model", "LLMClient"),
|
|
45
|
+
"VisionClient": ("model", "VisionClient"),
|
|
46
|
+
"VisionUnderstandingClient": ("model", "VisionUnderstandingClient"),
|
|
47
|
+
"ImageGenerationClient": ("model", "ImageGenerationClient"),
|
|
48
|
+
"VideoGenerationClient": ("model", "VideoGenerationClient"),
|
|
49
|
+
"SpeechRecognitionClient": ("model", "SpeechRecognitionClient"),
|
|
50
|
+
"ASRClient": ("model", "ASRClient"),
|
|
51
|
+
"fetch_model_catalogs": ("model", "fetch_model_catalogs"),
|
|
52
|
+
"resolve_llm_endpoint": ("model", "resolve_llm_endpoint"),
|
|
53
|
+
"resolve_vision_endpoint": ("model", "resolve_vision_endpoint"),
|
|
54
|
+
"resolve_image_generation_endpoint": ("model", "resolve_image_generation_endpoint"),
|
|
55
|
+
"resolve_video_generation_endpoint": ("model", "resolve_video_generation_endpoint"),
|
|
56
|
+
"resolve_speech_recognition_endpoint": ("model", "resolve_speech_recognition_endpoint"),
|
|
57
|
+
"invoke_llm": ("model", "invoke_llm"),
|
|
58
|
+
"generate_image": ("model", "generate_image"),
|
|
59
|
+
"generate_video": ("model", "generate_video"),
|
|
60
|
+
"recognize_speech": ("model", "recognize_speech"),
|
|
61
|
+
"understand_image": ("model", "understand_image"),
|
|
62
|
+
}
|
|
63
|
+
if name in _map:
|
|
64
|
+
mod_name, attr = _map[name]
|
|
65
|
+
import importlib
|
|
66
|
+
mod = importlib.import_module(f".{mod_name}", __name__)
|
|
67
|
+
return getattr(mod, attr)
|
|
68
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
__all__ = [
|
|
72
|
+
"create_json", "create_xml", "create_yaml",
|
|
73
|
+
"create_zip", "create_tar_gz",
|
|
74
|
+
"create_qrcode", "create_barcode", "create_watermark",
|
|
75
|
+
"create_html", "create_markdown", "markdown_to_html",
|
|
76
|
+
"create_pdf", "create_docx",
|
|
77
|
+
"create_xlsx", "create_csv",
|
|
78
|
+
"create_chart",
|
|
79
|
+
"create_diagram",
|
|
80
|
+
"create_pptx",
|
|
81
|
+
"ModelRuntime", "ModelEndpoint", "ModelResult",
|
|
82
|
+
"ApiError", "ConfigurationError",
|
|
83
|
+
"LLMClient", "VisionClient", "VisionUnderstandingClient", "ImageGenerationClient", "VideoGenerationClient",
|
|
84
|
+
"SpeechRecognitionClient", "ASRClient",
|
|
85
|
+
"fetch_model_catalogs", "resolve_llm_endpoint", "resolve_vision_endpoint",
|
|
86
|
+
"resolve_image_generation_endpoint", "resolve_video_generation_endpoint",
|
|
87
|
+
"resolve_speech_recognition_endpoint",
|
|
88
|
+
"invoke_llm", "generate_image", "generate_video", "recognize_speech", "understand_image",
|
|
89
|
+
]
|