sunholo 0.59.1__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 CHANGED
@@ -12,8 +12,8 @@ def validate_config(config, schema):
12
12
  return True
13
13
  except ValidationError as err:
14
14
  error_path = " -> ".join(map(str, err.path))
15
- #print(f"ERROR: Validation error at '{error_path}': {err.message}")
16
- raise ValidationError(f"Validation error at '{error_path}': {err.message}")
15
+ print(f"ERROR: Validation error at '{error_path}': {err.message}")
16
+ return False
17
17
 
18
18
  def list_configs(args):
19
19
  """
@@ -84,16 +84,12 @@ def list_configs(args):
84
84
  print(f"Validating configuration for kind: {kind}")
85
85
  if args.kind == "vacConfig" and args.vac:
86
86
  print(f"Validating vacConfig for {args.vac}")
87
- try:
88
- validate_config(config[args.vac], VAC_SUBCONFIG_SCHEMA)
89
- except ValidationError as e:
90
- print(f"Validation failed for sub-kind: {args.vac} - {str(e)}")
87
+ if not validate_config(config[args.vac], VAC_SUBCONFIG_SCHEMA):
88
+ print(f"Validation failed for sub-kind: {args.vac}")
91
89
  validation_failed = True
92
90
  elif kind in SCHEMAS:
93
- try:
94
- validate_config(config, SCHEMAS[kind])
95
- except ValidationError as e:
96
- print(f"FAIL: Validation failed for kind: {kind} - - {str(e)}")
91
+ if not validate_config(config, SCHEMAS[kind]):
92
+ print(f"FAIL: Validation failed for kind: {kind}")
97
93
  validation_failed = True
98
94
  else:
99
95
  print(f"No schema available to validate configuration for kind: {kind}")
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sunholo
3
- Version: 0.59.1
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.1.tar.gz
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=8oiFwFHTHzXtEK4AW3CLVcfcwt6rV9UTpM0v0_RW2I0,4820
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
@@ -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.1.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
94
- sunholo-0.59.1.dist-info/METADATA,sha256=84L9QkQTPWbkcIAKuO6W__im6N66Da8UJ0400bYA_xA,7903
95
- sunholo-0.59.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
96
- sunholo-0.59.1.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
97
- sunholo-0.59.1.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
98
- sunholo-0.59.1.dist-info/RECORD,,
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,,