sunholo 0.81.2__py3-none-any.whl → 0.81.3__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/gcs/download_url.py +6 -2
- {sunholo-0.81.2.dist-info → sunholo-0.81.3.dist-info}/METADATA +2 -2
- {sunholo-0.81.2.dist-info → sunholo-0.81.3.dist-info}/RECORD +7 -7
- {sunholo-0.81.2.dist-info → sunholo-0.81.3.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.81.2.dist-info → sunholo-0.81.3.dist-info}/WHEEL +0 -0
- {sunholo-0.81.2.dist-info → sunholo-0.81.3.dist-info}/entry_points.txt +0 -0
- {sunholo-0.81.2.dist-info → sunholo-0.81.3.dist-info}/top_level.txt +0 -0
sunholo/gcs/download_url.py
CHANGED
|
@@ -110,6 +110,9 @@ def sign_gcs_url(bucket_name:str, object_name:str, expiry_secs:int = 86400) -> O
|
|
|
110
110
|
|
|
111
111
|
expires = datetime.now() + timedelta(seconds=expiry_secs)
|
|
112
112
|
|
|
113
|
+
if object_name.startswith("gs://"):
|
|
114
|
+
object_name = object_name.replace(f"gs://{bucket_name}/","")
|
|
115
|
+
|
|
113
116
|
try:
|
|
114
117
|
bucket = get_bucket(bucket_name)
|
|
115
118
|
blob = bucket.blob(object_name)
|
|
@@ -136,9 +139,10 @@ def sign_gcs_url(bucket_name:str, object_name:str, expiry_secs:int = 86400) -> O
|
|
|
136
139
|
def construct_download_link(source_uri: str) -> Tuple[str, str, bool]:
|
|
137
140
|
"""Creates a viewable Cloud Storage web browser link from a gs:// URI."""
|
|
138
141
|
if not source_uri.startswith("gs://"):
|
|
139
|
-
return source_uri, source_uri, False # Return the URI
|
|
140
|
-
|
|
142
|
+
return source_uri, source_uri, False # Return the URI if it doesn't start with gs://
|
|
143
|
+
|
|
141
144
|
bucket_name, object_name = parse_gs_uri(source_uri)
|
|
145
|
+
log.info(f"Source URL: {source_uri} parsed to {bucket_name=} - {object_name=}")
|
|
142
146
|
|
|
143
147
|
signed_url = sign_gcs_url(bucket_name, object_name)
|
|
144
148
|
if signed_url:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.81.
|
|
3
|
+
Version: 0.81.3
|
|
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.81.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.81.3.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -80,7 +80,7 @@ sunholo/embedder/embed_chunk.py,sha256=MCbTePWjUbIRVDFFhHJ94BvOZvIom62-mTr0PmfQy
|
|
|
80
80
|
sunholo/gcs/__init__.py,sha256=SZvbsMFDko40sIRHTHppA37IijvJTae54vrhooEF5-4,90
|
|
81
81
|
sunholo/gcs/add_file.py,sha256=wkBQBfnjUbItnRNGiG9oBr7Jf2QfLpZf2nA5zT435ss,7107
|
|
82
82
|
sunholo/gcs/download_folder.py,sha256=ijJTnS595JqZhBH8iHFErQilMbkuKgL-bnTCMLGuvlA,1614
|
|
83
|
-
sunholo/gcs/download_url.py,sha256=
|
|
83
|
+
sunholo/gcs/download_url.py,sha256=q1NiJSvEhdNrmU5ZJ-sBCMC_J5CxzrajY8LRgdPOV_M,6130
|
|
84
84
|
sunholo/gcs/metadata.py,sha256=oQLcXi4brsZ74aegWyC1JZmhlaEV270HS5_UWtAYYWE,898
|
|
85
85
|
sunholo/invoke/__init__.py,sha256=bELcqIjzKvaupcIN5OQmDgGx_8jARtH9T6PCe8UgcvE,99
|
|
86
86
|
sunholo/invoke/direct_vac_func.py,sha256=wvrYDZNLoLeO_uQiqRdGUlhwjhLr05dVNBST9TxwwBA,4478
|
|
@@ -134,9 +134,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
|
|
|
134
134
|
sunholo/vertex/memory_tools.py,sha256=pgSahVDh7GPEulu3nl-w0jb5lTClb4TCnVxPnMokNZY,7533
|
|
135
135
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
|
136
136
|
sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
|
|
137
|
-
sunholo-0.81.
|
|
138
|
-
sunholo-0.81.
|
|
139
|
-
sunholo-0.81.
|
|
140
|
-
sunholo-0.81.
|
|
141
|
-
sunholo-0.81.
|
|
142
|
-
sunholo-0.81.
|
|
137
|
+
sunholo-0.81.3.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
138
|
+
sunholo-0.81.3.dist-info/METADATA,sha256=RHSnyk7UJS0lcicygM-UGvIz10GGA-7OyA220QmeFkA,7348
|
|
139
|
+
sunholo-0.81.3.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
|
140
|
+
sunholo-0.81.3.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
141
|
+
sunholo-0.81.3.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
142
|
+
sunholo-0.81.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|