mtbpy 1.0.2__tar.gz → 2.0.0__tar.gz
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.
- {mtbpy-1.0.2 → mtbpy-2.0.0}/PKG-INFO +6 -5
- {mtbpy-1.0.2 → mtbpy-2.0.0}/mtbpy/mtb_command_rpc_pb2.py +13 -2
- {mtbpy-1.0.2 → mtbpy-2.0.0}/mtbpy/mtb_command_rpc_pb2_grpc.py +108 -27
- {mtbpy-1.0.2 → mtbpy-2.0.0}/mtbpy.egg-info/PKG-INFO +6 -5
- mtbpy-2.0.0/mtbpy.egg-info/requires.txt +2 -0
- {mtbpy-1.0.2 → mtbpy-2.0.0}/pyproject.toml +4 -4
- mtbpy-1.0.2/mtbpy.egg-info/requires.txt +0 -2
- {mtbpy-1.0.2 → mtbpy-2.0.0}/LICENSE.txt +0 -0
- {mtbpy-1.0.2 → mtbpy-2.0.0}/README.md +0 -0
- {mtbpy-1.0.2 → mtbpy-2.0.0}/mtbpy/__init__.py +0 -0
- {mtbpy-1.0.2 → mtbpy-2.0.0}/mtbpy/mtbpy.py +0 -0
- {mtbpy-1.0.2 → mtbpy-2.0.0}/mtbpy.egg-info/SOURCES.txt +0 -0
- {mtbpy-1.0.2 → mtbpy-2.0.0}/mtbpy.egg-info/dependency_links.txt +0 -0
- {mtbpy-1.0.2 → mtbpy-2.0.0}/mtbpy.egg-info/top_level.txt +0 -0
- {mtbpy-1.0.2 → mtbpy-2.0.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: mtbpy
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: Module for communicating with Minitab from Python scripts executed via the PYSC command.
|
|
5
5
|
Author-email: "Minitab, LLC" <techsupport@minitab.com>
|
|
6
6
|
License: MIT License
|
|
@@ -33,11 +33,12 @@ Classifier: Topic :: Scientific/Engineering
|
|
|
33
33
|
Classifier: License :: OSI Approved :: MIT License
|
|
34
34
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
35
35
|
Classifier: Operating System :: OS Independent
|
|
36
|
-
Requires-Python: >=3.
|
|
36
|
+
Requires-Python: >=3.10
|
|
37
37
|
Description-Content-Type: text/markdown
|
|
38
38
|
License-File: LICENSE.txt
|
|
39
|
-
Requires-Dist: protobuf>=
|
|
40
|
-
Requires-Dist: grpcio>=1.
|
|
39
|
+
Requires-Dist: protobuf>=7.35.1
|
|
40
|
+
Requires-Dist: grpcio>=1.84.0
|
|
41
|
+
Dynamic: license-file
|
|
41
42
|
|
|
42
43
|
# mtbpy
|
|
43
44
|
|
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
3
4
|
# source: mtbpy/mtb_command_rpc.proto
|
|
5
|
+
# Protobuf Python Version: 7.35.1
|
|
4
6
|
"""Generated protocol buffer code."""
|
|
5
7
|
from google.protobuf import descriptor as _descriptor
|
|
6
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
7
10
|
from google.protobuf import symbol_database as _symbol_database
|
|
8
11
|
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
7,
|
|
15
|
+
35,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'mtbpy/mtb_command_rpc.proto'
|
|
19
|
+
)
|
|
9
20
|
# @@protoc_insertion_point(imports)
|
|
10
21
|
|
|
11
22
|
_sym_db = _symbol_database.Default()
|
|
@@ -19,8 +30,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bmtbpy/mtb_comm
|
|
|
19
30
|
_globals = globals()
|
|
20
31
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
32
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mtbpy.mtb_command_rpc_pb2', _globals)
|
|
22
|
-
if _descriptor._USE_C_DESCRIPTORS
|
|
23
|
-
DESCRIPTOR.
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
DESCRIPTOR._loaded_options = None
|
|
24
35
|
_globals['_VARIABLETYPE']._serialized_start=723
|
|
25
36
|
_globals['_VARIABLETYPE']._serialized_end=808
|
|
26
37
|
_globals['_ADDMESSAGEREQUEST']._serialized_start=80
|
|
@@ -1,12 +1,32 @@
|
|
|
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
|
|
4
5
|
|
|
5
6
|
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
6
7
|
from mtbpy import mtb_command_rpc_pb2 as mtbpy_dot_mtb__command__rpc__pb2
|
|
7
8
|
|
|
9
|
+
GRPC_GENERATED_VERSION = '1.84.0'
|
|
10
|
+
GRPC_VERSION = grpc.__version__
|
|
11
|
+
_version_not_supported = False
|
|
8
12
|
|
|
9
|
-
|
|
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
|
+
+ ' but the generated code in mtbpy/mtb_command_rpc_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
|
+
|
|
29
|
+
class MtbCommandStub:
|
|
10
30
|
"""Missing associated documentation comment in .proto file."""
|
|
11
31
|
|
|
12
32
|
def __init__(self, channel):
|
|
@@ -19,35 +39,35 @@ class MtbCommandStub(object):
|
|
|
19
39
|
'/rpc.mtb_command.v1.MtbCommand/AddMessage',
|
|
20
40
|
request_serializer=mtbpy_dot_mtb__command__rpc__pb2.AddMessageRequest.SerializeToString,
|
|
21
41
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
22
|
-
)
|
|
42
|
+
_registered_method=True)
|
|
23
43
|
self.SetCommandNote = channel.unary_unary(
|
|
24
44
|
'/rpc.mtb_command.v1.MtbCommand/SetCommandNote',
|
|
25
45
|
request_serializer=mtbpy_dot_mtb__command__rpc__pb2.SetCommandNoteRequest.SerializeToString,
|
|
26
46
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
27
|
-
)
|
|
47
|
+
_registered_method=True)
|
|
28
48
|
self.SetCommandTitle = channel.unary_unary(
|
|
29
49
|
'/rpc.mtb_command.v1.MtbCommand/SetCommandTitle',
|
|
30
50
|
request_serializer=mtbpy_dot_mtb__command__rpc__pb2.SetCommandTitleRequest.SerializeToString,
|
|
31
51
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
32
|
-
)
|
|
52
|
+
_registered_method=True)
|
|
33
53
|
self.AddImage = channel.unary_unary(
|
|
34
54
|
'/rpc.mtb_command.v1.MtbCommand/AddImage',
|
|
35
55
|
request_serializer=mtbpy_dot_mtb__command__rpc__pb2.AddImageRequest.SerializeToString,
|
|
36
56
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
37
|
-
)
|
|
57
|
+
_registered_method=True)
|
|
38
58
|
self.AddTable = channel.unary_unary(
|
|
39
59
|
'/rpc.mtb_command.v1.MtbCommand/AddTable',
|
|
40
60
|
request_serializer=mtbpy_dot_mtb__command__rpc__pb2.AddTableRequest.SerializeToString,
|
|
41
61
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
42
|
-
)
|
|
62
|
+
_registered_method=True)
|
|
43
63
|
self.GetVariable = channel.unary_unary(
|
|
44
64
|
'/rpc.mtb_command.v1.MtbCommand/GetVariable',
|
|
45
65
|
request_serializer=mtbpy_dot_mtb__command__rpc__pb2.VariableRequest.SerializeToString,
|
|
46
66
|
response_deserializer=mtbpy_dot_mtb__command__rpc__pb2.VariableResponse.FromString,
|
|
47
|
-
)
|
|
67
|
+
_registered_method=True)
|
|
48
68
|
|
|
49
69
|
|
|
50
|
-
class MtbCommandServicer
|
|
70
|
+
class MtbCommandServicer:
|
|
51
71
|
"""Missing associated documentation comment in .proto file."""
|
|
52
72
|
|
|
53
73
|
def AddMessage(self, request, context):
|
|
@@ -123,10 +143,11 @@ def add_MtbCommandServicer_to_server(servicer, server):
|
|
|
123
143
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
124
144
|
'rpc.mtb_command.v1.MtbCommand', rpc_method_handlers)
|
|
125
145
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
146
|
+
server.add_registered_method_handlers('rpc.mtb_command.v1.MtbCommand', rpc_method_handlers)
|
|
126
147
|
|
|
127
148
|
|
|
128
149
|
# This class is part of an EXPERIMENTAL API.
|
|
129
|
-
class MtbCommand
|
|
150
|
+
class MtbCommand:
|
|
130
151
|
"""Missing associated documentation comment in .proto file."""
|
|
131
152
|
|
|
132
153
|
@staticmethod
|
|
@@ -140,11 +161,21 @@ class MtbCommand(object):
|
|
|
140
161
|
wait_for_ready=None,
|
|
141
162
|
timeout=None,
|
|
142
163
|
metadata=None):
|
|
143
|
-
return grpc.experimental.unary_unary(
|
|
164
|
+
return grpc.experimental.unary_unary(
|
|
165
|
+
request,
|
|
166
|
+
target,
|
|
167
|
+
'/rpc.mtb_command.v1.MtbCommand/AddMessage',
|
|
144
168
|
mtbpy_dot_mtb__command__rpc__pb2.AddMessageRequest.SerializeToString,
|
|
145
169
|
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
146
|
-
options,
|
|
147
|
-
|
|
170
|
+
options,
|
|
171
|
+
channel_credentials,
|
|
172
|
+
insecure,
|
|
173
|
+
call_credentials,
|
|
174
|
+
compression,
|
|
175
|
+
wait_for_ready,
|
|
176
|
+
timeout,
|
|
177
|
+
metadata,
|
|
178
|
+
_registered_method=True)
|
|
148
179
|
|
|
149
180
|
@staticmethod
|
|
150
181
|
def SetCommandNote(request,
|
|
@@ -157,11 +188,21 @@ class MtbCommand(object):
|
|
|
157
188
|
wait_for_ready=None,
|
|
158
189
|
timeout=None,
|
|
159
190
|
metadata=None):
|
|
160
|
-
return grpc.experimental.unary_unary(
|
|
191
|
+
return grpc.experimental.unary_unary(
|
|
192
|
+
request,
|
|
193
|
+
target,
|
|
194
|
+
'/rpc.mtb_command.v1.MtbCommand/SetCommandNote',
|
|
161
195
|
mtbpy_dot_mtb__command__rpc__pb2.SetCommandNoteRequest.SerializeToString,
|
|
162
196
|
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
163
|
-
options,
|
|
164
|
-
|
|
197
|
+
options,
|
|
198
|
+
channel_credentials,
|
|
199
|
+
insecure,
|
|
200
|
+
call_credentials,
|
|
201
|
+
compression,
|
|
202
|
+
wait_for_ready,
|
|
203
|
+
timeout,
|
|
204
|
+
metadata,
|
|
205
|
+
_registered_method=True)
|
|
165
206
|
|
|
166
207
|
@staticmethod
|
|
167
208
|
def SetCommandTitle(request,
|
|
@@ -174,11 +215,21 @@ class MtbCommand(object):
|
|
|
174
215
|
wait_for_ready=None,
|
|
175
216
|
timeout=None,
|
|
176
217
|
metadata=None):
|
|
177
|
-
return grpc.experimental.unary_unary(
|
|
218
|
+
return grpc.experimental.unary_unary(
|
|
219
|
+
request,
|
|
220
|
+
target,
|
|
221
|
+
'/rpc.mtb_command.v1.MtbCommand/SetCommandTitle',
|
|
178
222
|
mtbpy_dot_mtb__command__rpc__pb2.SetCommandTitleRequest.SerializeToString,
|
|
179
223
|
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
180
|
-
options,
|
|
181
|
-
|
|
224
|
+
options,
|
|
225
|
+
channel_credentials,
|
|
226
|
+
insecure,
|
|
227
|
+
call_credentials,
|
|
228
|
+
compression,
|
|
229
|
+
wait_for_ready,
|
|
230
|
+
timeout,
|
|
231
|
+
metadata,
|
|
232
|
+
_registered_method=True)
|
|
182
233
|
|
|
183
234
|
@staticmethod
|
|
184
235
|
def AddImage(request,
|
|
@@ -191,11 +242,21 @@ class MtbCommand(object):
|
|
|
191
242
|
wait_for_ready=None,
|
|
192
243
|
timeout=None,
|
|
193
244
|
metadata=None):
|
|
194
|
-
return grpc.experimental.unary_unary(
|
|
245
|
+
return grpc.experimental.unary_unary(
|
|
246
|
+
request,
|
|
247
|
+
target,
|
|
248
|
+
'/rpc.mtb_command.v1.MtbCommand/AddImage',
|
|
195
249
|
mtbpy_dot_mtb__command__rpc__pb2.AddImageRequest.SerializeToString,
|
|
196
250
|
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
197
|
-
options,
|
|
198
|
-
|
|
251
|
+
options,
|
|
252
|
+
channel_credentials,
|
|
253
|
+
insecure,
|
|
254
|
+
call_credentials,
|
|
255
|
+
compression,
|
|
256
|
+
wait_for_ready,
|
|
257
|
+
timeout,
|
|
258
|
+
metadata,
|
|
259
|
+
_registered_method=True)
|
|
199
260
|
|
|
200
261
|
@staticmethod
|
|
201
262
|
def AddTable(request,
|
|
@@ -208,11 +269,21 @@ class MtbCommand(object):
|
|
|
208
269
|
wait_for_ready=None,
|
|
209
270
|
timeout=None,
|
|
210
271
|
metadata=None):
|
|
211
|
-
return grpc.experimental.unary_unary(
|
|
272
|
+
return grpc.experimental.unary_unary(
|
|
273
|
+
request,
|
|
274
|
+
target,
|
|
275
|
+
'/rpc.mtb_command.v1.MtbCommand/AddTable',
|
|
212
276
|
mtbpy_dot_mtb__command__rpc__pb2.AddTableRequest.SerializeToString,
|
|
213
277
|
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
214
|
-
options,
|
|
215
|
-
|
|
278
|
+
options,
|
|
279
|
+
channel_credentials,
|
|
280
|
+
insecure,
|
|
281
|
+
call_credentials,
|
|
282
|
+
compression,
|
|
283
|
+
wait_for_ready,
|
|
284
|
+
timeout,
|
|
285
|
+
metadata,
|
|
286
|
+
_registered_method=True)
|
|
216
287
|
|
|
217
288
|
@staticmethod
|
|
218
289
|
def GetVariable(request,
|
|
@@ -225,8 +296,18 @@ class MtbCommand(object):
|
|
|
225
296
|
wait_for_ready=None,
|
|
226
297
|
timeout=None,
|
|
227
298
|
metadata=None):
|
|
228
|
-
return grpc.experimental.unary_unary(
|
|
299
|
+
return grpc.experimental.unary_unary(
|
|
300
|
+
request,
|
|
301
|
+
target,
|
|
302
|
+
'/rpc.mtb_command.v1.MtbCommand/GetVariable',
|
|
229
303
|
mtbpy_dot_mtb__command__rpc__pb2.VariableRequest.SerializeToString,
|
|
230
304
|
mtbpy_dot_mtb__command__rpc__pb2.VariableResponse.FromString,
|
|
231
|
-
options,
|
|
232
|
-
|
|
305
|
+
options,
|
|
306
|
+
channel_credentials,
|
|
307
|
+
insecure,
|
|
308
|
+
call_credentials,
|
|
309
|
+
compression,
|
|
310
|
+
wait_for_ready,
|
|
311
|
+
timeout,
|
|
312
|
+
metadata,
|
|
313
|
+
_registered_method=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: mtbpy
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: Module for communicating with Minitab from Python scripts executed via the PYSC command.
|
|
5
5
|
Author-email: "Minitab, LLC" <techsupport@minitab.com>
|
|
6
6
|
License: MIT License
|
|
@@ -33,11 +33,12 @@ Classifier: Topic :: Scientific/Engineering
|
|
|
33
33
|
Classifier: License :: OSI Approved :: MIT License
|
|
34
34
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
35
35
|
Classifier: Operating System :: OS Independent
|
|
36
|
-
Requires-Python: >=3.
|
|
36
|
+
Requires-Python: >=3.10
|
|
37
37
|
Description-Content-Type: text/markdown
|
|
38
38
|
License-File: LICENSE.txt
|
|
39
|
-
Requires-Dist: protobuf>=
|
|
40
|
-
Requires-Dist: grpcio>=1.
|
|
39
|
+
Requires-Dist: protobuf>=7.35.1
|
|
40
|
+
Requires-Dist: grpcio>=1.84.0
|
|
41
|
+
Dynamic: license-file
|
|
41
42
|
|
|
42
43
|
# mtbpy
|
|
43
44
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mtbpy"
|
|
3
|
-
version = "
|
|
3
|
+
version = "2.0.0"
|
|
4
4
|
|
|
5
5
|
description = "Module for communicating with Minitab from Python scripts executed via the PYSC command."
|
|
6
6
|
|
|
@@ -21,11 +21,11 @@ classifiers = [
|
|
|
21
21
|
"Operating System :: OS Independent"
|
|
22
22
|
]
|
|
23
23
|
|
|
24
|
-
requires-python = ">= 3.
|
|
24
|
+
requires-python = ">= 3.10"
|
|
25
25
|
|
|
26
26
|
dependencies = [
|
|
27
|
-
"protobuf >=
|
|
28
|
-
"grpcio >= 1.
|
|
27
|
+
"protobuf >= 7.35.1",
|
|
28
|
+
"grpcio >= 1.84.0"
|
|
29
29
|
]
|
|
30
30
|
|
|
31
31
|
[project.urls]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|