canvas 0.50.0__py3-none-any.whl → 0.51.0__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.50.0
3
+ Version: 0.51.0
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
@@ -78,7 +78,7 @@ canvas_cli/templates/plugins/application/{{ cookiecutter.__project_slug }}/appli
78
78
  canvas_cli/templates/plugins/application/{{ cookiecutter.__project_slug }}/applications/my_application.py,sha256=rTUUycVOZEj5B4CoBqWMl9T4xPIyTqxsWGzXfAd6huY,584
79
79
  canvas_cli/templates/plugins/application/{{ cookiecutter.__project_slug }}/assets/python-logo.png,sha256=QAipNLQVwVK_pRO-PpsF3kISrkFUmifyxsjUGzokpNo,20637
80
80
  canvas_cli/templates/plugins/default/cookiecutter.json,sha256=dWEB3wJ8U4bko8jX26PgLLg_jgWlafLTNqsGnY1PUcg,124
81
- canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/CANVAS_MANIFEST.json,sha256=9N0u5hN0GqjPvUh_B3YHtvyntEvxUGbInbQeprU0TS0,787
81
+ canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/CANVAS_MANIFEST.json,sha256=3a5PsKPZcENxRd0FYG9AnXNOKlpzP-hQua4HohIL3v0,638
82
82
  canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/README.md,sha256=3QKoJQq3YmdplGnDOBMsLCJ3Ya1_aKjoz-QiWc4QfjA,291
83
83
  canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/protocols/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
84
84
  canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/protocols/my_protocol.py,sha256=fKLLcOIwvSWenW8-7tr8VqnF4Iox_5wU9V-Qw9UySsA,2381
@@ -90,7 +90,7 @@ canvas_cli/utils/print/print.py,sha256=p3Z47LphrV1-lI3RbU_0P8dtUgs9EJjZLDwv-hbwL
90
90
  canvas_cli/utils/urls/__init__.py,sha256=08hlrQhQ1pKBjlIRaC0j53IkgK723jfK8-j3djvR0ko,81
91
91
  canvas_cli/utils/urls/urls.py,sha256=KwWTh5ERrEsZEvdBrZpZB71xtyWkDuglpXUbycWmBOo,798
92
92
  canvas_cli/utils/validators/__init__.py,sha256=rBvSR2O1hWkNAnUBdcr-zUkmqT796_A61b9pnvEhwrM,113
93
- canvas_cli/utils/validators/manifest_schema.py,sha256=HEXid9ZwLSChijVRRzVllSmEhZhr9ekx5Fu9CeKg0yE,6019
93
+ canvas_cli/utils/validators/manifest_schema.py,sha256=z4SZ6YY0vJpDu_xZRgdPH9-vS2_dR6287Sh7tPI5_qk,5940
94
94
  canvas_cli/utils/validators/validators.py,sha256=lrUBQ0sF7seTe_pNGsNgASdr2BGp6g-Qui58V4H9qfQ,1598
95
95
  canvas_generated/messages/effects_pb2.py,sha256=JQRaE5Emrk6VD-prboZ9-_YV8QlNqLQk5xzZBkwZquc,13530
96
96
  canvas_generated/messages/effects_pb2.pyi,sha256=GNCeXPwM4L4WXrkovufbgBxUmaVYdjGkP8KHhlgNFXM,24128
@@ -301,14 +301,14 @@ plugin_runner/generate_allowed_imports.py,sha256=LQuVxL_j5n0Sj-KgR4Q8D9mj0xfuDqz
301
301
  plugin_runner/installation.py,sha256=LLjtnzPk-w4go3UbXnBItJTKz1ajR_5kGQbFXTaWTFU,7693
302
302
  plugin_runner/load_all_plugins.py,sha256=4T2gW2YljhIx4xfwf1c0F_8oIbE1ubsLj0ShkHRtlVY,5847
303
303
  plugin_runner/plugin_runner.py,sha256=PqtvyUHOSvIHRW97zX_NKEjszJ1GVmETXxkZhzkZoe0,21975
304
- plugin_runner/sandbox.py,sha256=1DeNfphz96-upDoC3B2WP0HQRv3hyxwb2E1zquOG4eM,29212
304
+ plugin_runner/sandbox.py,sha256=Stu_DBJNViFrwn44LuZOopXNEtt7w7YVWFcWi_P95kQ,29368
305
305
  protobufs/canvas_generated/messages/effects.proto,sha256=zTCelFeZ2ajsQPadiWFPOfqqpEB2ekSiLrdqmSd6tbY,9316
306
306
  protobufs/canvas_generated/messages/events.proto,sha256=XBMsexTQb_4ZnvRF_u4ghEfKpuHN7eU6CJJmHGM-ThU,51507
307
307
  protobufs/canvas_generated/messages/plugins.proto,sha256=oNainUPWFYQjgCX7bJEPI9_VnHC5VZduzOqgR4Q7dNM,109
308
308
  protobufs/canvas_generated/services/plugin_runner.proto,sha256=doadBKn5k4xAtOgR-q_pEvW4yzxpUaHNOowMG6CL5GY,304
309
309
  pubsub/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
310
310
  pubsub/pubsub.py,sha256=PHIvJ5SD3M-jQSYeGGSj1FuG6CvP6BQffAoGax9Uudk,1423
311
- canvas-0.50.0.dist-info/METADATA,sha256=Gsg_aENd-dV2VcGZyYtA1Er5xfNmARMPhJL-OgzZBn8,4645
312
- canvas-0.50.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
313
- canvas-0.50.0.dist-info/entry_points.txt,sha256=0Vs_9GmTVUNniH6eDBlRPgofmADMV4BES6Ao26M4AbM,47
314
- canvas-0.50.0.dist-info/RECORD,,
311
+ canvas-0.51.0.dist-info/METADATA,sha256=tldZBuG1DdHgxdl4w1JrmMCf3YVcjuZn6qhacznQTnU,4645
312
+ canvas-0.51.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
313
+ canvas-0.51.0.dist-info/entry_points.txt,sha256=0Vs_9GmTVUNniH6eDBlRPgofmADMV4BES6Ao26M4AbM,47
314
+ canvas-0.51.0.dist-info/RECORD,,
@@ -7,12 +7,7 @@
7
7
  "protocols": [
8
8
  {
9
9
  "class": "{{ cookiecutter.__project_slug }}.protocols.my_protocol:Protocol",
10
- "description": "A protocol that does xyz...",
11
- "data_access": {
12
- "event": "",
13
- "read": [],
14
- "write": []
15
- }
10
+ "description": "A protocol that does xyz..."
16
11
  }
17
12
  ],
18
13
  "commands": [],
@@ -104,11 +104,10 @@ manifest_schema = {
104
104
  "read": {"type": "array", "items": {"type": "string"}},
105
105
  "write": {"type": "array", "items": {"type": "string"}},
106
106
  },
107
- "required": ["event", "read", "write"],
108
107
  "additionalProperties": False,
109
108
  },
110
109
  },
111
- "required": ["class", "description", "data_access"],
110
+ "required": ["class", "description"],
112
111
  "additionalProperties": False,
113
112
  },
114
113
  },
plugin_runner/sandbox.py CHANGED
@@ -358,6 +358,10 @@ class Sandbox:
358
358
  """Allow type annotations."""
359
359
  return self.node_contents_visit(node)
360
360
 
361
+ def visit_Constant(self, node: ast.Constant) -> ast.Constant:
362
+ """Allow constants."""
363
+ return self.node_contents_visit(node)
364
+
361
365
  def visit_Match(self, node: ast.Match) -> ast.Match:
362
366
  """Allow `match`."""
363
367
  return self.node_contents_visit(node)