sapiopycommons 2025.2.20a443__py3-none-any.whl → 2025.2.20a444__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.

Potentially problematic release.


This version of sapiopycommons might be problematic. Click here for more details.

@@ -208,7 +208,7 @@ class AiHelper:
208
208
  self.eln_man = ElnManager(self.user)
209
209
  self.dt_man = DataTypeManager(self.user)
210
210
 
211
- def call_endpoint(self, url: str, payload: Any, tab_prefix: str = "") -> Response:
211
+ def call_post_endpoint(self, url: str, payload: Any, tab_prefix: str = "") -> Response:
212
212
  """
213
213
  Call a tool endpoint. Constructs the tool headers and checks the response for errors for the caller.
214
214
 
@@ -222,6 +222,20 @@ class AiHelper:
222
222
  response.raise_for_status()
223
223
  return response
224
224
 
225
+ def call_get_endpoint(self, url: str, params: Any, tab_prefix: str = "") -> Response:
226
+ """
227
+ Call a tool endpoint. Constructs the tool headers and checks the response for errors for the caller.
228
+
229
+ :param url: The URL of the endpoint to call.
230
+ :param params: The query parameters to send to the endpoint.
231
+ :param tab_prefix: The prefix to use for the tab name that will be created by the tool.
232
+ :return: The Response object returned by the endpoint.
233
+ """
234
+ headers = create_tot_headers(self.user.url, self.user.username, self.user.password, self.exp_id, tab_prefix)
235
+ response = requests.get(url, params=params, headers=headers)
236
+ response.raise_for_status()
237
+ return response
238
+
225
239
  @property
226
240
  def protocol(self) -> ElnExperimentProtocol:
227
241
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sapiopycommons
3
- Version: 2025.2.20a443
3
+ Version: 2025.2.20a444
4
4
  Summary: Official Sapio Python API Utilities Package
5
5
  Project-URL: Homepage, https://github.com/sapiosciences
6
6
  Author-email: Jonathan Steck <jsteck@sapiosciences.com>, Yechen Qiao <yqiao@sapiosciences.com>
@@ -1,6 +1,6 @@
1
1
  sapiopycommons/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  sapiopycommons/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- sapiopycommons/ai/tool_of_tools.py,sha256=SlicwK03u3xcUXCJXwycyfmFxj7dZL0qII6ERSHtno4,40226
3
+ sapiopycommons/ai/tool_of_tools.py,sha256=iy1Hgr1DkaMZ443JynUxZFo8VJA6V6vd7R5oEwNGOIk,40983
4
4
  sapiopycommons/callbacks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  sapiopycommons/callbacks/callback_util.py,sha256=68lPK8GtE6zd8C0fQaMLxT57PtU-6HnO37Zk-u56Mrs,129933
6
6
  sapiopycommons/callbacks/field_builder.py,sha256=p2XacN99MuKk3ite8GAqstUMpixqugul2CsC4gB83-o,38620
@@ -58,7 +58,7 @@ sapiopycommons/webhook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
58
58
  sapiopycommons/webhook/webhook_context.py,sha256=D793uLsb1691SalaPnBUk3rOSxn_hYLhdvkaIxjNXss,1909
59
59
  sapiopycommons/webhook/webhook_handlers.py,sha256=L0HetSm43NvA5KyW3xbLpGFh2DbAaeZJVtXIEl2fvV8,39689
60
60
  sapiopycommons/webhook/webservice_handlers.py,sha256=Y5dHx_UFWFuSqaoPL6Re-fsKYRuxvCWZ8bj6KSZ3jfM,14285
61
- sapiopycommons-2025.2.20a443.dist-info/METADATA,sha256=c8AWeg4g5tywBd_vxdNmcu-FWp7l6PAvdoydtCTE4cQ,3143
62
- sapiopycommons-2025.2.20a443.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
63
- sapiopycommons-2025.2.20a443.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
64
- sapiopycommons-2025.2.20a443.dist-info/RECORD,,
61
+ sapiopycommons-2025.2.20a444.dist-info/METADATA,sha256=X6G7jM0WYEoYCvzkn_boiU4vWWlDGmnZSflU9RaZ5w4,3143
62
+ sapiopycommons-2025.2.20a444.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
63
+ sapiopycommons-2025.2.20a444.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
64
+ sapiopycommons-2025.2.20a444.dist-info/RECORD,,