canvas 0.71.0__py3-none-any.whl → 0.72.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.
- {canvas-0.71.0.dist-info → canvas-0.72.0.dist-info}/METADATA +6 -6
- {canvas-0.71.0.dist-info → canvas-0.72.0.dist-info}/RECORD +13 -13
- canvas_generated/messages/effects_pb2.py +3 -13
- canvas_generated/messages/effects_pb2_grpc.py +0 -20
- canvas_generated/messages/events_pb2.py +3 -13
- canvas_generated/messages/events_pb2.pyi +1 -2
- canvas_generated/messages/events_pb2_grpc.py +0 -20
- canvas_generated/messages/plugins_pb2.py +3 -13
- canvas_generated/messages/plugins_pb2_grpc.py +0 -20
- canvas_generated/services/plugin_runner_pb2.py +3 -13
- canvas_generated/services/plugin_runner_pb2_grpc.py +16 -77
- {canvas-0.71.0.dist-info → canvas-0.72.0.dist-info}/WHEEL +0 -0
- {canvas-0.71.0.dist-info → canvas-0.72.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: canvas
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.72.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
|
|
7
|
-
Requires-Python: <3.
|
|
7
|
+
Requires-Python: <3.13,>=3.11
|
|
8
8
|
Requires-Dist: cookiecutter
|
|
9
9
|
Requires-Dist: cron-converter<2,>=1.2.1
|
|
10
10
|
Requires-Dist: cryptography>=45.0.5
|
|
@@ -19,19 +19,19 @@ Requires-Dist: grpcio<2,>=1.60.1
|
|
|
19
19
|
Requires-Dist: ipython<9,>=8.21.0
|
|
20
20
|
Requires-Dist: jsonschema<5,>=4.21.1
|
|
21
21
|
Requires-Dist: pathspec>=0.12.1
|
|
22
|
-
Requires-Dist: protobuf<
|
|
22
|
+
Requires-Dist: protobuf<5,>=4.25.3
|
|
23
23
|
Requires-Dist: psycopg[binary,pool]<4,>=3.2.2
|
|
24
|
-
Requires-Dist: pydantic<3,>=2.
|
|
24
|
+
Requires-Dist: pydantic<3,>=2.6.1
|
|
25
25
|
Requires-Dist: pyjwt==2.10.1
|
|
26
26
|
Requires-Dist: python-dotenv<2,>=1.0.1
|
|
27
27
|
Requires-Dist: rapidfuzz<4,>=3.10.1
|
|
28
28
|
Requires-Dist: redis<6,>=5.0.4
|
|
29
29
|
Requires-Dist: requests
|
|
30
|
-
Requires-Dist: restrictedpython>=8.
|
|
30
|
+
Requires-Dist: restrictedpython>=8.0
|
|
31
31
|
Requires-Dist: sentry-sdk>=2.33.2
|
|
32
32
|
Requires-Dist: statsd<5,>=4.0.1
|
|
33
33
|
Requires-Dist: typer
|
|
34
|
-
Requires-Dist: typing-extensions<4.
|
|
34
|
+
Requires-Dist: typing-extensions<4.13,>=4.8
|
|
35
35
|
Requires-Dist: websocket-client<2,>=1.7.0
|
|
36
36
|
Provides-Extra: test-utils
|
|
37
37
|
Requires-Dist: pytest-canvas; extra == 'test-utils'
|
|
@@ -82,18 +82,18 @@ canvas_cli/utils/urls/urls.py,sha256=KwWTh5ERrEsZEvdBrZpZB71xtyWkDuglpXUbycWmBOo
|
|
|
82
82
|
canvas_cli/utils/validators/__init__.py,sha256=rBvSR2O1hWkNAnUBdcr-zUkmqT796_A61b9pnvEhwrM,113
|
|
83
83
|
canvas_cli/utils/validators/manifest_schema.py,sha256=XNw-sbFgxaXzffWnQd6zLg5V74odv7jGiEFENWKnluA,6057
|
|
84
84
|
canvas_cli/utils/validators/validators.py,sha256=lrUBQ0sF7seTe_pNGsNgASdr2BGp6g-Qui58V4H9qfQ,1598
|
|
85
|
-
canvas_generated/messages/effects_pb2.py,sha256=
|
|
85
|
+
canvas_generated/messages/effects_pb2.py,sha256=5w8BVLVq4bp2iM1zTP3i2sKOrJ9vUB8J6GpFEC6HKBU,15380
|
|
86
86
|
canvas_generated/messages/effects_pb2.pyi,sha256=V2fhAJ-nOWfF2qr2u39m07ZPoy_cOPQa9KnwLYfnwTk,27785
|
|
87
|
-
canvas_generated/messages/effects_pb2_grpc.py,sha256=
|
|
88
|
-
canvas_generated/messages/events_pb2.py,sha256=
|
|
89
|
-
canvas_generated/messages/events_pb2.pyi,sha256=
|
|
90
|
-
canvas_generated/messages/events_pb2_grpc.py,sha256=
|
|
91
|
-
canvas_generated/messages/plugins_pb2.py,sha256=
|
|
87
|
+
canvas_generated/messages/effects_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
88
|
+
canvas_generated/messages/events_pb2.py,sha256=eRBhiCpvz09N68I1YaLqWoHy_Ig201saSsgd6zTSwcU,56917
|
|
89
|
+
canvas_generated/messages/events_pb2.pyi,sha256=wjmytX-fquZEjq7bld_WF57kkSnoGlPy-CkGSvauPJU,102597
|
|
90
|
+
canvas_generated/messages/events_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
91
|
+
canvas_generated/messages/plugins_pb2.py,sha256=5Hs1MSJVWSbkdID3Iir9Vvq3AH2Abt7MyLv0qzuA2MY,1989
|
|
92
92
|
canvas_generated/messages/plugins_pb2.pyi,sha256=0vHABVzAzqthoUrxFeGOZ4OmGQTIfD3mW4DZtjtq-YI,1277
|
|
93
|
-
canvas_generated/messages/plugins_pb2_grpc.py,sha256=
|
|
94
|
-
canvas_generated/services/plugin_runner_pb2.py,sha256=
|
|
93
|
+
canvas_generated/messages/plugins_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
94
|
+
canvas_generated/services/plugin_runner_pb2.py,sha256=yXJbhjxCJsbUhM3iKF_ACeNNBpD423jCE3v4Wr8Alig,1727
|
|
95
95
|
canvas_generated/services/plugin_runner_pb2.pyi,sha256=1w-Pa4k7HtlmQAr7B6sgV64zdZplBKQKHN-S8bjwO3w,265
|
|
96
|
-
canvas_generated/services/plugin_runner_pb2_grpc.py,sha256=
|
|
96
|
+
canvas_generated/services/plugin_runner_pb2_grpc.py,sha256=jBu1qk1Ud6SWKE1p-LSgrT0qknOW-B-ywes1UZuvOK0,8065
|
|
97
97
|
canvas_sdk/__init__.py,sha256=3GEB9s-a9icf8c4JBEXbrsKYbagWNyn1TtJ50n1F3Z0,170
|
|
98
98
|
canvas_sdk/base.py,sha256=vHSb9aKhvKFkQ0ROpIMqQWfPxQG1B7iBk2kGcFWoKEU,4125
|
|
99
99
|
canvas_sdk/caching/__init__.py,sha256=YYXr5tEQlnwMgTXJbOG963tKSPiUOM4mUkX8wuiqp7U,17
|
|
@@ -357,7 +357,7 @@ canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/{{ cookie
|
|
|
357
357
|
canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__package_name }}/README.md,sha256=3QKoJQq3YmdplGnDOBMsLCJ3Ya1_aKjoz-QiWc4QfjA,291
|
|
358
358
|
canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__package_name }}/protocols/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
359
359
|
canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__package_name }}/protocols/my_protocol.py,sha256=fKLLcOIwvSWenW8-7tr8VqnF4Iox_5wU9V-Qw9UySsA,2381
|
|
360
|
-
canvas-0.
|
|
361
|
-
canvas-0.
|
|
362
|
-
canvas-0.
|
|
363
|
-
canvas-0.
|
|
360
|
+
canvas-0.72.0.dist-info/METADATA,sha256=VdmCUSm8anVpEHNl3_0NhNyxLvjQOlwYHOeXFLg1c-Y,4758
|
|
361
|
+
canvas-0.72.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
362
|
+
canvas-0.72.0.dist-info/entry_points.txt,sha256=0Vs_9GmTVUNniH6eDBlRPgofmADMV4BES6Ao26M4AbM,47
|
|
363
|
+
canvas-0.72.0.dist-info/RECORD,,
|
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
3
|
# source: canvas_generated/messages/effects.proto
|
|
5
|
-
# Protobuf Python Version:
|
|
4
|
+
# Protobuf Python Version: 4.25.1
|
|
6
5
|
"""Generated protocol buffer code."""
|
|
7
6
|
from google.protobuf import descriptor as _descriptor
|
|
8
7
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
8
|
from google.protobuf import symbol_database as _symbol_database
|
|
11
9
|
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'canvas_generated/messages/effects.proto'
|
|
19
|
-
)
|
|
20
10
|
# @@protoc_insertion_point(imports)
|
|
21
11
|
|
|
22
12
|
_sym_db = _symbol_database.Default()
|
|
@@ -29,8 +19,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'canvas_generated
|
|
|
29
19
|
_globals = globals()
|
|
30
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
21
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'canvas_generated.messages.effects_pb2', _globals)
|
|
32
|
-
if
|
|
33
|
-
DESCRIPTOR.
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
34
24
|
_globals['_EFFECTTYPE']._serialized_start=175
|
|
35
25
|
_globals['_EFFECTTYPE']._serialized_end=9811
|
|
36
26
|
_globals['_EFFECT']._serialized_start=51
|
|
@@ -1,24 +1,4 @@
|
|
|
1
1
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
2
|
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
3
|
import grpc
|
|
4
|
-
import warnings
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
GRPC_GENERATED_VERSION = '1.75.1'
|
|
8
|
-
GRPC_VERSION = grpc.__version__
|
|
9
|
-
_version_not_supported = False
|
|
10
|
-
|
|
11
|
-
try:
|
|
12
|
-
from grpc._utilities import first_version_is_lower
|
|
13
|
-
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
-
except ImportError:
|
|
15
|
-
_version_not_supported = True
|
|
16
|
-
|
|
17
|
-
if _version_not_supported:
|
|
18
|
-
raise RuntimeError(
|
|
19
|
-
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
-
+ f' but the generated code in canvas_generated/messages/effects_pb2_grpc.py depends on'
|
|
21
|
-
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
-
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
-
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
-
)
|
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
3
|
# source: canvas_generated/messages/events.proto
|
|
5
|
-
# Protobuf Python Version:
|
|
4
|
+
# Protobuf Python Version: 4.25.1
|
|
6
5
|
"""Generated protocol buffer code."""
|
|
7
6
|
from google.protobuf import descriptor as _descriptor
|
|
8
7
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
8
|
from google.protobuf import symbol_database as _symbol_database
|
|
11
9
|
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'canvas_generated/messages/events.proto'
|
|
19
|
-
)
|
|
20
10
|
# @@protoc_insertion_point(imports)
|
|
21
11
|
|
|
22
12
|
_sym_db = _symbol_database.Default()
|
|
@@ -30,8 +20,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&canvas_generated/
|
|
|
30
20
|
_globals = globals()
|
|
31
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
22
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'canvas_generated.messages.events_pb2', _globals)
|
|
33
|
-
if
|
|
34
|
-
DESCRIPTOR.
|
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
+
DESCRIPTOR._options = None
|
|
35
25
|
_globals['_EVENTTYPE']._serialized_start=256
|
|
36
26
|
_globals['_EVENTTYPE']._serialized_end=39918
|
|
37
27
|
_globals['_EVENT']._serialized_start=91
|
|
@@ -3,8 +3,7 @@ from google.protobuf.internal import containers as _containers
|
|
|
3
3
|
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
4
4
|
from google.protobuf import descriptor as _descriptor
|
|
5
5
|
from google.protobuf import message as _message
|
|
6
|
-
from
|
|
7
|
-
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
6
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
8
7
|
|
|
9
8
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
10
9
|
|
|
@@ -1,24 +1,4 @@
|
|
|
1
1
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
2
|
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
3
|
import grpc
|
|
4
|
-
import warnings
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
GRPC_GENERATED_VERSION = '1.75.1'
|
|
8
|
-
GRPC_VERSION = grpc.__version__
|
|
9
|
-
_version_not_supported = False
|
|
10
|
-
|
|
11
|
-
try:
|
|
12
|
-
from grpc._utilities import first_version_is_lower
|
|
13
|
-
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
-
except ImportError:
|
|
15
|
-
_version_not_supported = True
|
|
16
|
-
|
|
17
|
-
if _version_not_supported:
|
|
18
|
-
raise RuntimeError(
|
|
19
|
-
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
-
+ f' but the generated code in canvas_generated/messages/events_pb2_grpc.py depends on'
|
|
21
|
-
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
-
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
-
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
-
)
|
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
3
|
# source: canvas_generated/messages/plugins.proto
|
|
5
|
-
# Protobuf Python Version:
|
|
4
|
+
# Protobuf Python Version: 4.25.1
|
|
6
5
|
"""Generated protocol buffer code."""
|
|
7
6
|
from google.protobuf import descriptor as _descriptor
|
|
8
7
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
8
|
from google.protobuf import symbol_database as _symbol_database
|
|
11
9
|
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'canvas_generated/messages/plugins.proto'
|
|
19
|
-
)
|
|
20
10
|
# @@protoc_insertion_point(imports)
|
|
21
11
|
|
|
22
12
|
_sym_db = _symbol_database.Default()
|
|
@@ -29,8 +19,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'canvas_generated
|
|
|
29
19
|
_globals = globals()
|
|
30
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
21
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'canvas_generated.messages.plugins_pb2', _globals)
|
|
32
|
-
if
|
|
33
|
-
DESCRIPTOR.
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
34
24
|
_globals['_RELOADPLUGINSREQUEST']._serialized_start=43
|
|
35
25
|
_globals['_RELOADPLUGINSREQUEST']._serialized_end=65
|
|
36
26
|
_globals['_RELOADPLUGINSRESPONSE']._serialized_start=67
|
|
@@ -1,24 +1,4 @@
|
|
|
1
1
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
2
|
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
3
|
import grpc
|
|
4
|
-
import warnings
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
GRPC_GENERATED_VERSION = '1.75.1'
|
|
8
|
-
GRPC_VERSION = grpc.__version__
|
|
9
|
-
_version_not_supported = False
|
|
10
|
-
|
|
11
|
-
try:
|
|
12
|
-
from grpc._utilities import first_version_is_lower
|
|
13
|
-
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
-
except ImportError:
|
|
15
|
-
_version_not_supported = True
|
|
16
|
-
|
|
17
|
-
if _version_not_supported:
|
|
18
|
-
raise RuntimeError(
|
|
19
|
-
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
-
+ f' but the generated code in canvas_generated/messages/plugins_pb2_grpc.py depends on'
|
|
21
|
-
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
-
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
-
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
-
)
|
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
3
|
# source: canvas_generated/services/plugin_runner.proto
|
|
5
|
-
# Protobuf Python Version:
|
|
4
|
+
# Protobuf Python Version: 4.25.1
|
|
6
5
|
"""Generated protocol buffer code."""
|
|
7
6
|
from google.protobuf import descriptor as _descriptor
|
|
8
7
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
8
|
from google.protobuf import symbol_database as _symbol_database
|
|
11
9
|
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'canvas_generated/services/plugin_runner.proto'
|
|
19
|
-
)
|
|
20
10
|
# @@protoc_insertion_point(imports)
|
|
21
11
|
|
|
22
12
|
_sym_db = _symbol_database.Default()
|
|
@@ -31,8 +21,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-canvas_generated/
|
|
|
31
21
|
_globals = globals()
|
|
32
22
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
23
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'canvas_generated.services.plugin_runner_pb2', _globals)
|
|
34
|
-
if
|
|
35
|
-
DESCRIPTOR.
|
|
24
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
25
|
+
DESCRIPTOR._options = None
|
|
36
26
|
_globals['_PLUGINRUNNER']._serialized_start=139
|
|
37
27
|
_globals['_PLUGINRUNNER']._serialized_end=400
|
|
38
28
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,30 +1,10 @@
|
|
|
1
1
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
2
|
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
3
|
import grpc
|
|
4
|
-
import warnings
|
|
5
4
|
|
|
6
5
|
from canvas_generated.messages import events_pb2 as canvas__generated_dot_messages_dot_events__pb2
|
|
7
6
|
from canvas_generated.messages import plugins_pb2 as canvas__generated_dot_messages_dot_plugins__pb2
|
|
8
7
|
|
|
9
|
-
GRPC_GENERATED_VERSION = '1.75.1'
|
|
10
|
-
GRPC_VERSION = grpc.__version__
|
|
11
|
-
_version_not_supported = False
|
|
12
|
-
|
|
13
|
-
try:
|
|
14
|
-
from grpc._utilities import first_version_is_lower
|
|
15
|
-
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
16
|
-
except ImportError:
|
|
17
|
-
_version_not_supported = True
|
|
18
|
-
|
|
19
|
-
if _version_not_supported:
|
|
20
|
-
raise RuntimeError(
|
|
21
|
-
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
22
|
-
+ f' but the generated code in canvas_generated/services/plugin_runner_pb2_grpc.py depends on'
|
|
23
|
-
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
24
|
-
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
25
|
-
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
26
|
-
)
|
|
27
|
-
|
|
28
8
|
|
|
29
9
|
class PluginRunnerStub(object):
|
|
30
10
|
"""Missing associated documentation comment in .proto file."""
|
|
@@ -39,22 +19,22 @@ class PluginRunnerStub(object):
|
|
|
39
19
|
'/canvas.PluginRunner/HandleEvent',
|
|
40
20
|
request_serializer=canvas__generated_dot_messages_dot_events__pb2.Event.SerializeToString,
|
|
41
21
|
response_deserializer=canvas__generated_dot_messages_dot_events__pb2.EventResponse.FromString,
|
|
42
|
-
|
|
22
|
+
)
|
|
43
23
|
self.ReloadPlugins = channel.unary_stream(
|
|
44
24
|
'/canvas.PluginRunner/ReloadPlugins',
|
|
45
25
|
request_serializer=canvas__generated_dot_messages_dot_plugins__pb2.ReloadPluginsRequest.SerializeToString,
|
|
46
26
|
response_deserializer=canvas__generated_dot_messages_dot_plugins__pb2.ReloadPluginsResponse.FromString,
|
|
47
|
-
|
|
27
|
+
)
|
|
48
28
|
self.ReloadPlugin = channel.unary_stream(
|
|
49
29
|
'/canvas.PluginRunner/ReloadPlugin',
|
|
50
30
|
request_serializer=canvas__generated_dot_messages_dot_plugins__pb2.ReloadPluginRequest.SerializeToString,
|
|
51
31
|
response_deserializer=canvas__generated_dot_messages_dot_plugins__pb2.ReloadPluginResponse.FromString,
|
|
52
|
-
|
|
32
|
+
)
|
|
53
33
|
self.UnloadPlugin = channel.unary_stream(
|
|
54
34
|
'/canvas.PluginRunner/UnloadPlugin',
|
|
55
35
|
request_serializer=canvas__generated_dot_messages_dot_plugins__pb2.UnloadPluginRequest.SerializeToString,
|
|
56
36
|
response_deserializer=canvas__generated_dot_messages_dot_plugins__pb2.UnloadPluginResponse.FromString,
|
|
57
|
-
|
|
37
|
+
)
|
|
58
38
|
|
|
59
39
|
|
|
60
40
|
class PluginRunnerServicer(object):
|
|
@@ -111,7 +91,6 @@ def add_PluginRunnerServicer_to_server(servicer, server):
|
|
|
111
91
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
112
92
|
'canvas.PluginRunner', rpc_method_handlers)
|
|
113
93
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
114
|
-
server.add_registered_method_handlers('canvas.PluginRunner', rpc_method_handlers)
|
|
115
94
|
|
|
116
95
|
|
|
117
96
|
# This class is part of an EXPERIMENTAL API.
|
|
@@ -129,21 +108,11 @@ class PluginRunner(object):
|
|
|
129
108
|
wait_for_ready=None,
|
|
130
109
|
timeout=None,
|
|
131
110
|
metadata=None):
|
|
132
|
-
return grpc.experimental.unary_stream(
|
|
133
|
-
request,
|
|
134
|
-
target,
|
|
135
|
-
'/canvas.PluginRunner/HandleEvent',
|
|
111
|
+
return grpc.experimental.unary_stream(request, target, '/canvas.PluginRunner/HandleEvent',
|
|
136
112
|
canvas__generated_dot_messages_dot_events__pb2.Event.SerializeToString,
|
|
137
113
|
canvas__generated_dot_messages_dot_events__pb2.EventResponse.FromString,
|
|
138
|
-
options,
|
|
139
|
-
|
|
140
|
-
insecure,
|
|
141
|
-
call_credentials,
|
|
142
|
-
compression,
|
|
143
|
-
wait_for_ready,
|
|
144
|
-
timeout,
|
|
145
|
-
metadata,
|
|
146
|
-
_registered_method=True)
|
|
114
|
+
options, channel_credentials,
|
|
115
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
147
116
|
|
|
148
117
|
@staticmethod
|
|
149
118
|
def ReloadPlugins(request,
|
|
@@ -156,21 +125,11 @@ class PluginRunner(object):
|
|
|
156
125
|
wait_for_ready=None,
|
|
157
126
|
timeout=None,
|
|
158
127
|
metadata=None):
|
|
159
|
-
return grpc.experimental.unary_stream(
|
|
160
|
-
request,
|
|
161
|
-
target,
|
|
162
|
-
'/canvas.PluginRunner/ReloadPlugins',
|
|
128
|
+
return grpc.experimental.unary_stream(request, target, '/canvas.PluginRunner/ReloadPlugins',
|
|
163
129
|
canvas__generated_dot_messages_dot_plugins__pb2.ReloadPluginsRequest.SerializeToString,
|
|
164
130
|
canvas__generated_dot_messages_dot_plugins__pb2.ReloadPluginsResponse.FromString,
|
|
165
|
-
options,
|
|
166
|
-
|
|
167
|
-
insecure,
|
|
168
|
-
call_credentials,
|
|
169
|
-
compression,
|
|
170
|
-
wait_for_ready,
|
|
171
|
-
timeout,
|
|
172
|
-
metadata,
|
|
173
|
-
_registered_method=True)
|
|
131
|
+
options, channel_credentials,
|
|
132
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
174
133
|
|
|
175
134
|
@staticmethod
|
|
176
135
|
def ReloadPlugin(request,
|
|
@@ -183,21 +142,11 @@ class PluginRunner(object):
|
|
|
183
142
|
wait_for_ready=None,
|
|
184
143
|
timeout=None,
|
|
185
144
|
metadata=None):
|
|
186
|
-
return grpc.experimental.unary_stream(
|
|
187
|
-
request,
|
|
188
|
-
target,
|
|
189
|
-
'/canvas.PluginRunner/ReloadPlugin',
|
|
145
|
+
return grpc.experimental.unary_stream(request, target, '/canvas.PluginRunner/ReloadPlugin',
|
|
190
146
|
canvas__generated_dot_messages_dot_plugins__pb2.ReloadPluginRequest.SerializeToString,
|
|
191
147
|
canvas__generated_dot_messages_dot_plugins__pb2.ReloadPluginResponse.FromString,
|
|
192
|
-
options,
|
|
193
|
-
|
|
194
|
-
insecure,
|
|
195
|
-
call_credentials,
|
|
196
|
-
compression,
|
|
197
|
-
wait_for_ready,
|
|
198
|
-
timeout,
|
|
199
|
-
metadata,
|
|
200
|
-
_registered_method=True)
|
|
148
|
+
options, channel_credentials,
|
|
149
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
201
150
|
|
|
202
151
|
@staticmethod
|
|
203
152
|
def UnloadPlugin(request,
|
|
@@ -210,18 +159,8 @@ class PluginRunner(object):
|
|
|
210
159
|
wait_for_ready=None,
|
|
211
160
|
timeout=None,
|
|
212
161
|
metadata=None):
|
|
213
|
-
return grpc.experimental.unary_stream(
|
|
214
|
-
request,
|
|
215
|
-
target,
|
|
216
|
-
'/canvas.PluginRunner/UnloadPlugin',
|
|
162
|
+
return grpc.experimental.unary_stream(request, target, '/canvas.PluginRunner/UnloadPlugin',
|
|
217
163
|
canvas__generated_dot_messages_dot_plugins__pb2.UnloadPluginRequest.SerializeToString,
|
|
218
164
|
canvas__generated_dot_messages_dot_plugins__pb2.UnloadPluginResponse.FromString,
|
|
219
|
-
options,
|
|
220
|
-
|
|
221
|
-
insecure,
|
|
222
|
-
call_credentials,
|
|
223
|
-
compression,
|
|
224
|
-
wait_for_ready,
|
|
225
|
-
timeout,
|
|
226
|
-
metadata,
|
|
227
|
-
_registered_method=True)
|
|
165
|
+
options, channel_credentials,
|
|
166
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
File without changes
|
|
File without changes
|