sunholo 0.67.2__py3-none-any.whl → 0.67.4__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.
@@ -13,8 +13,7 @@
13
13
  # limitations under the License.
14
14
  try:
15
15
  from google.cloud import pubsub_v1
16
- from google.api_core.exceptions import NotFound
17
- from google.api_core.exceptions import AlreadyExists
16
+ from google.api_core.exceptions import AlreadyExists, PermissionDenied, NotFound
18
17
  from google.auth import default
19
18
  except ImportError:
20
19
  pubsub_v1 = None
@@ -67,6 +66,13 @@ class PubSubManager:
67
66
  log.info(f"Created Pub/Sub topic: {self.pubsub_topic}")
68
67
  if self.verbose:
69
68
  print(f"Created Pub/Sub topic: {self.pubsub_topic}")
69
+ except PermissionDenied:
70
+ # Obtain the current credentials being used
71
+ credentials, project_id = default()
72
+ log.error(f"Permission denied to get/create Pub/Sub topic {self.pubsub_topic} - project: {self.project_id} - credentials: {credentials.service_account_email}")
73
+ except Exception as e:
74
+ # Catch any other exceptions and log them
75
+ log.error(f"An unexpected error occurred while accessing Pub/Sub topic {self.pubsub_topic}: {e}")
70
76
 
71
77
  def subscription_exists(self, subscription_name:str):
72
78
 
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sunholo
3
- Version: 0.67.2
3
+ Version: 0.67.4
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.67.2.tar.gz
6
+ Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.67.4.tar.gz
7
7
  Author: Holosun ApS
8
8
  Author-email: multivac@sunholo.com
9
9
  License: Apache License, Version 2.0
@@ -79,7 +79,7 @@ sunholo/patches/langchain/lancedb.py,sha256=KstVpYtI2E1s6_l_kq6js8ruIPJduO6nnvAX
79
79
  sunholo/patches/langchain/vertexai.py,sha256=kX1IvC2D1kMgM3SaSzP9HEosbD6CUymLJd7w9eXo3eE,17677
80
80
  sunholo/pubsub/__init__.py,sha256=wgkrtlL3h8uzNpnlWSHdVMOq0l5Q3D7gkxF_Rp1A6Ro,94
81
81
  sunholo/pubsub/process_pubsub.py,sha256=64hvqMsxbBrf0WGJsprz_SXf9FpjeszAIsqUSBlJrA8,2780
82
- sunholo/pubsub/pubsub_manager.py,sha256=NjeChrorhIFmakAzwzVqGYQdG7Q8lJT6UvppiYlrFjI,6427
82
+ sunholo/pubsub/pubsub_manager.py,sha256=8Sax4Ajzsa81t7pOGwaErqp1lu8autbndAizMWa6vVA,6915
83
83
  sunholo/qna/__init__.py,sha256=F8q1uR_HreoSX0IfmKY1qoSwIgXhO2Q8kuDSxh9_-EE,28
84
84
  sunholo/qna/parsers.py,sha256=Wn2X47_yeE39oeqxxgDr7jgBT-N1anYpJtVBq-623O4,2146
85
85
  sunholo/qna/retry.py,sha256=gFgOf9AxrZMIO9OwOYu1EW7rhNhyfnw_o4XAsNLBOVQ,2021
@@ -105,9 +105,9 @@ sunholo/vertex/__init__.py,sha256=JvHcGFuv6R_nAhY2AdoqqhMpJ5ugeWPZ_svGhWrObBk,13
105
105
  sunholo/vertex/init.py,sha256=JDMUaBRdednzbKF-5p33qqLit2LMsvgvWW-NRz0AqO0,1801
106
106
  sunholo/vertex/memory_tools.py,sha256=8F1iTWnqEK9mX4W5RzCVKIjydIcNp6OFxjn_dtQ3GXo,5379
107
107
  sunholo/vertex/safety.py,sha256=3meAX0HyGZYrH7rXPUAHxtI_3w_zoy_RX7Shtkoa660,1275
108
- sunholo-0.67.2.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
109
- sunholo-0.67.2.dist-info/METADATA,sha256=G-TlF50LwSi1KvftHrX-teBH5e0RIAk8xFQtS0JGCDg,6155
110
- sunholo-0.67.2.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
111
- sunholo-0.67.2.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
112
- sunholo-0.67.2.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
113
- sunholo-0.67.2.dist-info/RECORD,,
108
+ sunholo-0.67.4.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
109
+ sunholo-0.67.4.dist-info/METADATA,sha256=2JNEVTKdzilikKNTSsSgaZPea-Uhe9dG2zgYhxXCFlY,6155
110
+ sunholo-0.67.4.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
111
+ sunholo-0.67.4.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
112
+ sunholo-0.67.4.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
113
+ sunholo-0.67.4.dist-info/RECORD,,