sunholo 0.62.15__py3-none-any.whl → 0.62.17__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/cli.py +2 -0
- sunholo/cli/run_proxy.py +8 -2
- sunholo/database/database.py +2 -1
- {sunholo-0.62.15.dist-info → sunholo-0.62.17.dist-info}/METADATA +2 -2
- {sunholo-0.62.15.dist-info → sunholo-0.62.17.dist-info}/RECORD +9 -9
- {sunholo-0.62.15.dist-info → sunholo-0.62.17.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.62.15.dist-info → sunholo-0.62.17.dist-info}/WHEEL +0 -0
- {sunholo-0.62.15.dist-info → sunholo-0.62.17.dist-info}/entry_points.txt +0 -0
- {sunholo-0.62.15.dist-info → sunholo-0.62.17.dist-info}/top_level.txt +0 -0
sunholo/cli/cli.py
CHANGED
sunholo/cli/run_proxy.py
CHANGED
|
@@ -2,15 +2,21 @@ import subprocess
|
|
|
2
2
|
import os
|
|
3
3
|
import signal
|
|
4
4
|
import json
|
|
5
|
+
import socket
|
|
5
6
|
|
|
6
7
|
from .sun_rich import console
|
|
7
8
|
from rich.table import Table
|
|
8
9
|
from rich import print
|
|
9
10
|
|
|
10
|
-
PROXY_TRACKER_FILE = '.
|
|
11
|
+
PROXY_TRACKER_FILE = os.path.join(os.path.expanduser("~"), '.sunholo_proxy_tracker.json')
|
|
11
12
|
DEFAULT_PORT = 8080
|
|
12
13
|
|
|
13
14
|
|
|
15
|
+
def is_port_in_use(port):
|
|
16
|
+
"""Check if a given port is in use on the localhost."""
|
|
17
|
+
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
|
|
18
|
+
return s.connect_ex(('localhost', port)) == 0
|
|
19
|
+
|
|
14
20
|
def get_next_available_port(proxies, default_port):
|
|
15
21
|
"""
|
|
16
22
|
Get the next available port starting from the default port.
|
|
@@ -24,7 +30,7 @@ def get_next_available_port(proxies, default_port):
|
|
|
24
30
|
"""
|
|
25
31
|
used_ports = {info["port"] for info in proxies.values()}
|
|
26
32
|
port = default_port
|
|
27
|
-
while port in used_ports:
|
|
33
|
+
while port in used_ports or is_port_in_use(port):
|
|
28
34
|
port += 1
|
|
29
35
|
return port
|
|
30
36
|
|
sunholo/database/database.py
CHANGED
|
@@ -80,7 +80,8 @@ def setup_database(type, vector_name:str, verbose:bool=False):
|
|
|
80
80
|
execute_sql_from_file("database/sql/sb/create_table.sql", params, verbose=verbose, connection_env=connection_env)
|
|
81
81
|
execute_sql_from_file("database/sql/sb/create_function.sql", params, verbose=verbose, connection_env=connection_env)
|
|
82
82
|
|
|
83
|
-
if verbose:
|
|
83
|
+
if verbose:
|
|
84
|
+
print("Ran all setup SQL statements")
|
|
84
85
|
|
|
85
86
|
return True
|
|
86
87
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.62.
|
|
3
|
+
Version: 0.62.17
|
|
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.62.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.62.17.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -32,13 +32,13 @@ sunholo/chunker/publish.py,sha256=GNXV6IPdKM2GZUcjGXIERu49D0ITYtizsLIktKVtMjM,27
|
|
|
32
32
|
sunholo/chunker/splitter.py,sha256=FLkDhkePkg_zGQpFBK13Cznw575D-Rf9pcaCpc1HUxY,6726
|
|
33
33
|
sunholo/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
34
|
sunholo/cli/chat_vac.py,sha256=Ht8EsGTeubV_-4KEUAA1P5M545Lt_wMAZU8esR6rHyI,16419
|
|
35
|
-
sunholo/cli/cli.py,sha256=
|
|
35
|
+
sunholo/cli/cli.py,sha256=1-grjOE5sB5k0wrccsqCWSXB1vfrYNgdHBFH5F94pa0,3632
|
|
36
36
|
sunholo/cli/cli_init.py,sha256=JMZ9AX2cPDZ-_mv3adiv2ToFVNyRPtjk9Biszl1kiR0,2358
|
|
37
37
|
sunholo/cli/configs.py,sha256=QUM9DvKOdZmEQRM5uI3Nh887T0YDiSMr7O240zTLqws,4546
|
|
38
38
|
sunholo/cli/deploy.py,sha256=zxdwUsRTRMC8U5vyRv0JiKBLFn84Ug_Tc88-_h9hJSs,1609
|
|
39
39
|
sunholo/cli/embedder.py,sha256=5m_FaAqF6bnLJQj93HGySC-OOCXo2NCUVG_ZBjE1oUM,6937
|
|
40
40
|
sunholo/cli/merge_texts.py,sha256=U9vdMwKmcPoc6iPOWX5MKSxn49dNGbNzVLw8ui5PhEU,1823
|
|
41
|
-
sunholo/cli/run_proxy.py,sha256=
|
|
41
|
+
sunholo/cli/run_proxy.py,sha256=8mrZj0GPYO1q5e6cxej-PHdns5pGguWoDrX7RFg0FWo,11581
|
|
42
42
|
sunholo/cli/sun_rich.py,sha256=UpMqeJ0C8i0pkue1AHnnyyX0bFJ9zZeJ7HBR6yhuA8A,54
|
|
43
43
|
sunholo/components/__init__.py,sha256=IDoylb74zFKo6NIS3RQqUl0PDFBGVxM1dfUmO7OJ44U,176
|
|
44
44
|
sunholo/components/llm.py,sha256=T4we3tGmqUj4tPwxQr9M6AXv_BALqZV_dRSvINan-oU,10374
|
|
@@ -46,7 +46,7 @@ sunholo/components/retriever.py,sha256=jAgcmEM_D2Qfb3hYqHVZMZMLUEUqUbqmhD6G5czmE
|
|
|
46
46
|
sunholo/components/vectorstore.py,sha256=lB8vx_N6eBA44orNeVo1WRn0Q8GCIjvPPT9AfiPWBWE,5620
|
|
47
47
|
sunholo/database/__init__.py,sha256=Zz0Shcq-CtStf9rJGIYB_Ybzb8rY_Q9mfSj-nviM490,241
|
|
48
48
|
sunholo/database/alloydb.py,sha256=zvT50Df7r-jJPo5lEEWbjlXzVr0KuqN6WINgRtiSyxo,17014
|
|
49
|
-
sunholo/database/database.py,sha256=
|
|
49
|
+
sunholo/database/database.py,sha256=UDHkceiEvJmS3esQX2LYEjEMrHcogN_JHuJXoVWCH3M,7354
|
|
50
50
|
sunholo/database/lancedb.py,sha256=2rAbJVusMrm5TPtVTsUtmwn0z1iZ_wvbKhc6eyT6ClE,708
|
|
51
51
|
sunholo/database/static_dbs.py,sha256=aOyU3AJ-Dzz3qSNjbuN2293cfYw5PhkcQuQxdwPMJ4w,435
|
|
52
52
|
sunholo/database/uuid.py,sha256=GtUL_uq80u2xkozPF9kwNpvhBf03hbZR3xUhO3NomBM,237
|
|
@@ -101,9 +101,9 @@ sunholo/vertex/__init__.py,sha256=JvHcGFuv6R_nAhY2AdoqqhMpJ5ugeWPZ_svGhWrObBk,13
|
|
|
101
101
|
sunholo/vertex/init.py,sha256=JDMUaBRdednzbKF-5p33qqLit2LMsvgvWW-NRz0AqO0,1801
|
|
102
102
|
sunholo/vertex/memory_tools.py,sha256=8F1iTWnqEK9mX4W5RzCVKIjydIcNp6OFxjn_dtQ3GXo,5379
|
|
103
103
|
sunholo/vertex/safety.py,sha256=3meAX0HyGZYrH7rXPUAHxtI_3w_zoy_RX7Shtkoa660,1275
|
|
104
|
-
sunholo-0.62.
|
|
105
|
-
sunholo-0.62.
|
|
106
|
-
sunholo-0.62.
|
|
107
|
-
sunholo-0.62.
|
|
108
|
-
sunholo-0.62.
|
|
109
|
-
sunholo-0.62.
|
|
104
|
+
sunholo-0.62.17.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
105
|
+
sunholo-0.62.17.dist-info/METADATA,sha256=6SXkLQJWIi1y927EmV2uKqHTmgMQfG6c8xelbGYbu1U,8059
|
|
106
|
+
sunholo-0.62.17.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
107
|
+
sunholo-0.62.17.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
108
|
+
sunholo-0.62.17.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
109
|
+
sunholo-0.62.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|