oocana 0.16.5__py3-none-any.whl → 0.16.6__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.
oocana/context.py CHANGED
@@ -136,7 +136,7 @@ class Context:
136
136
  "api_key": os.getenv("OOMOL_LLM_API_KEY", ""),
137
137
  "models": os.getenv("OOMOL_LLM_MODELS", "").split(","),
138
138
  }
139
-
139
+
140
140
  @property
141
141
  def host_info(self) -> HostInfo:
142
142
  """this is a dict contains the host information
@@ -145,7 +145,17 @@ class Context:
145
145
  "gpu_vendor": os.getenv("OOMOL_HOST_GPU_VENDOR", "unknown"),
146
146
  "gpu_renderer": os.getenv("OOMOL_HOST_GPU_RENDERER", "unknown"),
147
147
  }
148
-
148
+
149
+ @property
150
+ def host_endpoint(self) -> str | None:
151
+ """A host endpoint that allows containers to access services running on the host system.
152
+
153
+ Returns:
154
+ str: The host endpoint if available.
155
+ None: If the application is running in a cloud environment where no host endpoint is defined.
156
+ """
157
+ return os.getenv("OO_HOST_ENDPOINT", None)
158
+
149
159
  @property
150
160
  def is_done(self) -> bool:
151
161
  return self.__is_done
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oocana
3
- Version: 0.16.5
3
+ Version: 0.16.6
4
4
  Summary: python implement of oocana to give a context for oocana block
5
5
  License: MIT
6
6
  Requires-Python: >=3.9
@@ -1,8 +1,8 @@
1
- oocana-0.16.5.dist-info/METADATA,sha256=YHY9ozLT5p_kcR2WKJnZLX908HaWBUje-xGUyoBZCfw,221
2
- oocana-0.16.5.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
- oocana-0.16.5.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
1
+ oocana-0.16.6.dist-info/METADATA,sha256=KveWTqPJWZn9CclgQxpwJ5bJr5AhXLWWwbksOeZKvS4,221
2
+ oocana-0.16.6.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ oocana-0.16.6.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
4
  oocana/__init__.py,sha256=zMrQ1asZoRE91-BShf1v2ibdThaMc07YtZt5iNbbxsg,281
5
- oocana/context.py,sha256=9hVS9jSpetgwVgg-hBWlYRL8qpSr-uN5kSBvTV8KTNw,13151
5
+ oocana/context.py,sha256=a8sap8qfXWGlu3JrUgj-rgQ5AdKp8yPuiF5IZCLZQQ0,13542
6
6
  oocana/data.py,sha256=0KpJyckz_X5JbrncBRFbOaU00CxcDx2UYHk6xuH1Poc,2890
7
7
  oocana/handle_data.py,sha256=p0iEvdsVV3BqcelM8rvq0a_VPI52SeahaGCszfhZ0TI,1927
8
8
  oocana/mainframe.py,sha256=Jixk9PjvJh7PnYwPGqOR5viwcOHWfaPhEiQFNHxHCxw,5219
@@ -10,4 +10,4 @@ oocana/preview.py,sha256=sAKcVUFmOMvrzYLrvqAxd26SppSvK1qJqRTHdAS-KDc,1959
10
10
  oocana/schema.py,sha256=8LwMaW4eXa3EmKxR4kzyTOpZiClMRMMsMA6f9CXodW4,4332
11
11
  oocana/service.py,sha256=dPCcScQfMBlEjIodFnKU17-HlbBzrQbQK6CNRw7SmOE,2442
12
12
  oocana/throtter.py,sha256=xTldm2OZ5uYPiyC6Aatug4FJAoMylPjtXftxHvSr_50,1104
13
- oocana-0.16.5.dist-info/RECORD,,
13
+ oocana-0.16.6.dist-info/RECORD,,