sunholo 0.59.0__py3-none-any.whl → 0.59.2__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.
- sunholo/cli/configs.py +11 -2
- sunholo/gcs/download_url.py +5 -4
- {sunholo-0.59.0.dist-info → sunholo-0.59.2.dist-info}/METADATA +2 -2
- {sunholo-0.59.0.dist-info → sunholo-0.59.2.dist-info}/RECORD +8 -8
- {sunholo-0.59.0.dist-info → sunholo-0.59.2.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.59.0.dist-info → sunholo-0.59.2.dist-info}/WHEEL +0 -0
- {sunholo-0.59.0.dist-info → sunholo-0.59.2.dist-info}/entry_points.txt +0 -0
- {sunholo-0.59.0.dist-info → sunholo-0.59.2.dist-info}/top_level.txt +0 -0
sunholo/cli/configs.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import sys
|
|
1
2
|
from ..utils.config import load_all_configs
|
|
2
3
|
from ..utils.config_schema import SCHEMAS, VAC_SUBCONFIG_SCHEMA
|
|
4
|
+
|
|
3
5
|
from jsonschema import validate, ValidationError
|
|
4
6
|
from pprint import pprint
|
|
5
7
|
|
|
@@ -10,8 +12,8 @@ def validate_config(config, schema):
|
|
|
10
12
|
return True
|
|
11
13
|
except ValidationError as err:
|
|
12
14
|
error_path = " -> ".join(map(str, err.path))
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
print(f"ERROR: Validation error at '{error_path}': {err.message}")
|
|
16
|
+
return False
|
|
15
17
|
|
|
16
18
|
def list_configs(args):
|
|
17
19
|
"""
|
|
@@ -77,18 +79,25 @@ def list_configs(args):
|
|
|
77
79
|
pprint(config)
|
|
78
80
|
|
|
79
81
|
if args.validate:
|
|
82
|
+
validation_failed = False
|
|
80
83
|
for kind, config in filtered_configs.items():
|
|
81
84
|
print(f"Validating configuration for kind: {kind}")
|
|
82
85
|
if args.kind == "vacConfig" and args.vac:
|
|
83
86
|
print(f"Validating vacConfig for {args.vac}")
|
|
84
87
|
if not validate_config(config[args.vac], VAC_SUBCONFIG_SCHEMA):
|
|
85
88
|
print(f"Validation failed for sub-kind: {args.vac}")
|
|
89
|
+
validation_failed = True
|
|
86
90
|
elif kind in SCHEMAS:
|
|
87
91
|
if not validate_config(config, SCHEMAS[kind]):
|
|
88
92
|
print(f"FAIL: Validation failed for kind: {kind}")
|
|
93
|
+
validation_failed = True
|
|
89
94
|
else:
|
|
90
95
|
print(f"No schema available to validate configuration for kind: {kind}")
|
|
91
96
|
|
|
97
|
+
if validation_failed:
|
|
98
|
+
print("Validation failed for one or more configurations")
|
|
99
|
+
|
|
100
|
+
sys.exit(1)
|
|
92
101
|
|
|
93
102
|
|
|
94
103
|
def setup_list_configs_subparser(subparsers):
|
sunholo/gcs/download_url.py
CHANGED
|
@@ -2,12 +2,13 @@ import os
|
|
|
2
2
|
from urllib.parse import quote
|
|
3
3
|
from datetime import datetime, timedelta
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
# needs to be in minimal to check gcp
|
|
6
|
+
import google.auth
|
|
7
|
+
from google.auth.transport import requests
|
|
8
|
+
from google.auth.exceptions import RefreshError
|
|
6
9
|
|
|
7
10
|
try:
|
|
8
|
-
from google.cloud import storage
|
|
9
|
-
from google.auth.transport import requests
|
|
10
|
-
from google.auth.exceptions import RefreshError
|
|
11
|
+
from google.cloud import storage
|
|
11
12
|
except ImportError:
|
|
12
13
|
storage = None
|
|
13
14
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.59.
|
|
3
|
+
Version: 0.59.2
|
|
4
4
|
Summary: Large Language Model DevOps - a package to help deploy LLMs to the Cloud.
|
|
5
5
|
Home-page: https://github.com/sunholo-data/sunholo-py
|
|
6
|
-
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.59.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.59.2.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -33,7 +33,7 @@ sunholo/chunker/splitter.py,sha256=ug_v-h0wos3b7OkhmedVQs5jtLuDdFDWypvsZVYgxbU,6
|
|
|
33
33
|
sunholo/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
34
|
sunholo/cli/cli.py,sha256=rcO1hMthy5nWC_5sOHqRm7ut70c9JfxFTSjFRBNYuYg,1248
|
|
35
35
|
sunholo/cli/cli_init.py,sha256=WReZuMQwDfkRUvssYT7TirUoG6SiT1dTDol8nLI8O70,3418
|
|
36
|
-
sunholo/cli/configs.py,sha256=
|
|
36
|
+
sunholo/cli/configs.py,sha256=jHCNz_rANlQI2ZCWnlgJu5QwQc-a_Koi9Hm3XHjHEpE,4608
|
|
37
37
|
sunholo/cli/deploy.py,sha256=zxdwUsRTRMC8U5vyRv0JiKBLFn84Ug_Tc88-_h9hJSs,1609
|
|
38
38
|
sunholo/components/__init__.py,sha256=RJGNEihwvRIiDScKis04RHJv4yZGI1UpXlOmuCptNZI,208
|
|
39
39
|
sunholo/components/llm.py,sha256=T4we3tGmqUj4tPwxQr9M6AXv_BALqZV_dRSvINan-oU,10374
|
|
@@ -56,7 +56,7 @@ sunholo/embedder/__init__.py,sha256=sI4N_CqgEVcrMDxXgxKp1FsfsB4FpjoXgPGkl4N_u4I,
|
|
|
56
56
|
sunholo/embedder/embed_chunk.py,sha256=XV1kdDUWw2QO-am5_Yl7GrYP9V_4i1XRNNFPhqUSnZQ,5851
|
|
57
57
|
sunholo/gcs/__init__.py,sha256=DtVw_AZwQn-IguR5BJuIi2XJeF_FQXizhJikzRNrXiE,50
|
|
58
58
|
sunholo/gcs/add_file.py,sha256=JmJIuz5Z1h7-eJ6s2eE3wc8Y4IAv3Jridq1xfQbD9_E,4711
|
|
59
|
-
sunholo/gcs/download_url.py,sha256=
|
|
59
|
+
sunholo/gcs/download_url.py,sha256=HJlRhjs2WGtWV5jk0fcOGj9QCXVW4NQJV5X9toucyO8,4800
|
|
60
60
|
sunholo/gcs/metadata.py,sha256=C9sMPsHsq1ETetdQCqB3EBs3Kws8b8QHS9L7ei_v5aw,891
|
|
61
61
|
sunholo/langfuse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
62
62
|
sunholo/langfuse/callback.py,sha256=G9xcZHpLvyzolU57ycItLaooMCtRuM37QJSWjiwQEd0,1776
|
|
@@ -90,9 +90,9 @@ sunholo/utils/gcp.py,sha256=B2G1YKjeD7X9dqO86Jrp2vPuFwZ223Xl5Tg09Ndw-oc,5760
|
|
|
90
90
|
sunholo/utils/parsers.py,sha256=OrHmASqIbI45atVOhiGodgLvnfrzkvVzyHnSvAXD89I,3841
|
|
91
91
|
sunholo/vertex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
92
92
|
sunholo/vertex/init_vertex.py,sha256=JDMUaBRdednzbKF-5p33qqLit2LMsvgvWW-NRz0AqO0,1801
|
|
93
|
-
sunholo-0.59.
|
|
94
|
-
sunholo-0.59.
|
|
95
|
-
sunholo-0.59.
|
|
96
|
-
sunholo-0.59.
|
|
97
|
-
sunholo-0.59.
|
|
98
|
-
sunholo-0.59.
|
|
93
|
+
sunholo-0.59.2.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
94
|
+
sunholo-0.59.2.dist-info/METADATA,sha256=YcmQZ5MGbmH8xVGiJJEqVuK0DEr8ak2BM3nsQl3gfWc,7903
|
|
95
|
+
sunholo-0.59.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
96
|
+
sunholo-0.59.2.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
97
|
+
sunholo-0.59.2.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
98
|
+
sunholo-0.59.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|