canvas 0.44.1__py3-none-any.whl → 0.44.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.

Potentially problematic release.


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

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: canvas
3
- Version: 0.44.1
3
+ Version: 0.44.3
4
4
  Summary: SDK to customize event-driven actions in your Canvas instance
5
5
  Author-email: Canvas Team <engineering@canvasmedical.com>
6
6
  License-Expression: MIT
@@ -214,7 +214,7 @@ canvas_sdk/templates/__init__.py,sha256=LtUmLDsGSTq249T6sA7PUzkl2OfCAyvtIOGPNHr6
214
214
  canvas_sdk/templates/utils.py,sha256=_AIYcGQD3ePWzQpH7ZirkV_ATtIHlzf-T_03mHoeIWI,1460
215
215
  canvas_sdk/utils/__init__.py,sha256=PADveJMf-BtOapK5Cczy-nOuZzVh-HT2H6sfJW_SK9U,198
216
216
  canvas_sdk/utils/db.py,sha256=wOZORBfyBVxQkay5vyEtQ4i0KVCfASFGREmecHMR8DE,409
217
- canvas_sdk/utils/http.py,sha256=YluFiz3WOaDKpTjt-b_XdwOiM1winEkSZ2g3aZxxu3E,10542
217
+ canvas_sdk/utils/http.py,sha256=BkHmLdTP-m33W0Ufp_NkQU_L0uxbkJzzilk1JNbmYlA,10691
218
218
  canvas_sdk/utils/metrics.py,sha256=ojCbXgjLSy1pEavHgRs8j4OVNdAUMa1nLqZdkA0uCQQ,5987
219
219
  canvas_sdk/utils/plugins.py,sha256=xxJUeVJBzfQWhlD1kO7HlFWxDAl01kkvbsf07Z08dOM,1551
220
220
  canvas_sdk/v1/__init__.py,sha256=YYXr5tEQlnwMgTXJbOG963tKSPiUOM4mUkX8wuiqp7U,17
@@ -293,14 +293,14 @@ plugin_runner/exceptions.py,sha256=YnRZiQVzbU3HrVlmEXLje_np99009YnhTRVHHyBCtqc,4
293
293
  plugin_runner/installation.py,sha256=LLjtnzPk-w4go3UbXnBItJTKz1ajR_5kGQbFXTaWTFU,7693
294
294
  plugin_runner/load_all_plugins.py,sha256=4T2gW2YljhIx4xfwf1c0F_8oIbE1ubsLj0ShkHRtlVY,5847
295
295
  plugin_runner/plugin_runner.py,sha256=Z7ySPJSY4AMGRR0PtdXA_I3z8rxlDpjssuMspHIc79U,21655
296
- plugin_runner/sandbox.py,sha256=vxfPKkz3A31g_QAD6eqa-CFt7z6xTp4FHu6RBrxoNz8,28589
296
+ plugin_runner/sandbox.py,sha256=B6b8AfmazA-nhXh6Z3s8-9yg0EpD1gbiToCVafCC3yc,28628
297
297
  protobufs/canvas_generated/messages/effects.proto,sha256=L5QGPfnmiefjD7qsGzKRbHAAyAstQmVvMrndwg1lumQ,8807
298
298
  protobufs/canvas_generated/messages/events.proto,sha256=DSxbxKp7BTZpI4M14Sm7-XpHdUnN3bC3RapRqZbxgiQ,48751
299
299
  protobufs/canvas_generated/messages/plugins.proto,sha256=oNainUPWFYQjgCX7bJEPI9_VnHC5VZduzOqgR4Q7dNM,109
300
300
  protobufs/canvas_generated/services/plugin_runner.proto,sha256=doadBKn5k4xAtOgR-q_pEvW4yzxpUaHNOowMG6CL5GY,304
301
301
  pubsub/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
302
302
  pubsub/pubsub.py,sha256=PHIvJ5SD3M-jQSYeGGSj1FuG6CvP6BQffAoGax9Uudk,1423
303
- canvas-0.44.1.dist-info/METADATA,sha256=aZwZM-cpatcS9QQ_LA1cNVBY0f5IRPO9BWMRB6TcPeY,4424
304
- canvas-0.44.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
305
- canvas-0.44.1.dist-info/entry_points.txt,sha256=0Vs_9GmTVUNniH6eDBlRPgofmADMV4BES6Ao26M4AbM,47
306
- canvas-0.44.1.dist-info/RECORD,,
303
+ canvas-0.44.3.dist-info/METADATA,sha256=H0_lRz3g2L965YjCc3akgG8N67cmV58OnP8qTYF4sJk,4424
304
+ canvas-0.44.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
305
+ canvas-0.44.3.dist-info/entry_points.txt,sha256=0Vs_9GmTVUNniH6eDBlRPgofmADMV4BES6Ao26M4AbM,47
306
+ canvas-0.44.3.dist-info/RECORD,,
canvas_sdk/utils/http.py CHANGED
@@ -295,13 +295,18 @@ class PharmacyHttp:
295
295
 
296
296
  def __init__(self) -> None:
297
297
  self._http_client = JsonOnlyHttp(
298
- base_url=os.getenv("PHARMACY_ENDPOINT", "https://pharmacy.canvasmedical.com")
298
+ base_url=os.getenv(
299
+ "PHARMACY_SERVICE_ENDPOINT", "https://pharmacy-2017071.canvasmedical.com"
300
+ )
299
301
  )
300
302
 
301
303
  self._http_client._session.headers.update(
302
304
  {"Authorization": os.getenv("PRE_SHARED_KEY", "")}
303
305
  )
304
306
 
307
+ # Disable SSL verification for this session
308
+ self._http_client._session.verify = False
309
+
305
310
  def search_pharmacies(
306
311
  self, search_term: str, latitude: str | None = None, longitude: str | None = None
307
312
  ) -> list[dict]:
plugin_runner/sandbox.py CHANGED
@@ -617,6 +617,7 @@ class Sandbox:
617
617
  "reversed": builtins.reversed,
618
618
  "staticmethod": builtins.staticmethod,
619
619
  "super": builtins.super,
620
+ "vars": builtins.vars,
620
621
  },
621
622
  "__is_plugin__": True,
622
623
  "__metaclass__": type,