sunholo 0.59.0__tar.gz → 0.59.1__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.
- {sunholo-0.59.0 → sunholo-0.59.1}/PKG-INFO +2 -2
- {sunholo-0.59.0 → sunholo-0.59.1}/setup.py +1 -1
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/cli/configs.py +17 -4
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/gcs/download_url.py +5 -4
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo.egg-info/PKG-INFO +2 -2
- {sunholo-0.59.0 → sunholo-0.59.1}/LICENSE.txt +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/MANIFEST.in +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/README.md +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/setup.cfg +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/chat_history.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/dispatch_to_qa.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/fastapi/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/fastapi/base.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/fastapi/qna_routes.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/flask/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/flask/base.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/flask/qna_routes.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/langserve.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/pubsub.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/route.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/special_commands.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/agents/test_chat_history.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/archive/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/archive/archive.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/auth/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/auth/run.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/bots/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/bots/discord.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/bots/webapp.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/chunker/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/chunker/data_to_embed_pubsub.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/chunker/doc_handling.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/chunker/images.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/chunker/loaders.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/chunker/message_data.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/chunker/pdfs.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/chunker/publish.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/chunker/splitter.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/cli/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/cli/cli.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/cli/cli_init.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/cli/deploy.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/components/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/components/llm.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/components/prompt.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/components/retriever.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/components/vectorstore.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/database/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/database/alloydb.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/database/database.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/database/lancedb.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/database/sql/sb/create_function.sql +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/database/sql/sb/create_function_time.sql +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/database/sql/sb/create_table.sql +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/database/sql/sb/delete_source_row.sql +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/database/sql/sb/return_sources.sql +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/database/sql/sb/setup.sql +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/database/static_dbs.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/database/uuid.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/embedder/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/embedder/embed_chunk.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/gcs/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/gcs/add_file.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/gcs/metadata.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/langfuse/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/langfuse/callback.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/langfuse/prompts.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/llamaindex/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/llamaindex/generate.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/llamaindex/import_files.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/logging.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/lookup/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/lookup/model_lookup.yaml +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/patches/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/patches/langchain/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/patches/langchain/lancedb.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/patches/langchain/vertexai.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/pubsub/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/pubsub/process_pubsub.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/pubsub/pubsub_manager.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/qna/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/qna/parsers.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/qna/retry.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/streaming/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/streaming/content_buffer.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/streaming/langserve.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/streaming/streaming.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/summarise/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/summarise/summarise.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/utils/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/utils/big_context.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/utils/config.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/utils/config_schema.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/utils/gcp.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/utils/parsers.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/vertex/__init__.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo/vertex/init_vertex.py +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo.egg-info/SOURCES.txt +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo.egg-info/dependency_links.txt +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo.egg-info/entry_points.txt +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo.egg-info/requires.txt +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/sunholo.egg-info/top_level.txt +0 -0
- {sunholo-0.59.0 → sunholo-0.59.1}/test/test_dispatch_to_qa.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.59.
|
|
3
|
+
Version: 0.59.1
|
|
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.1.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -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
|
|
|
@@ -77,18 +79,29 @@ 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
|
-
|
|
85
|
-
|
|
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)}")
|
|
91
|
+
validation_failed = True
|
|
86
92
|
elif kind in SCHEMAS:
|
|
87
|
-
|
|
88
|
-
|
|
93
|
+
try:
|
|
94
|
+
validate_config(config, SCHEMAS[kind])
|
|
95
|
+
except ValidationError as e:
|
|
96
|
+
print(f"FAIL: Validation failed for kind: {kind} - - {str(e)}")
|
|
97
|
+
validation_failed = True
|
|
89
98
|
else:
|
|
90
99
|
print(f"No schema available to validate configuration for kind: {kind}")
|
|
91
100
|
|
|
101
|
+
if validation_failed:
|
|
102
|
+
print("Validation failed for one or more configurations")
|
|
103
|
+
|
|
104
|
+
sys.exit(1)
|
|
92
105
|
|
|
93
106
|
|
|
94
107
|
def setup_list_configs_subparser(subparsers):
|
|
@@ -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.1
|
|
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.1.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|