gnetclisdk 1.0.56__tar.gz → 1.0.57__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: gnetclisdk
3
- Version: 1.0.56
3
+ Version: 1.0.57
4
4
  Summary: Client for Gnetcli GRPC-server
5
5
  Home-page: https://github.com/annetutil/gnetcli
6
6
  Author: Alexander Balezin
@@ -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: server.proto
5
- # Protobuf Python Version: 5.27.2
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
- 5,
15
- 27,
16
- 2,
17
- '',
18
- 'server.proto'
19
- )
20
10
  # @@protoc_insertion_point(imports)
21
11
 
22
12
  _sym_db = _symbol_database.Default()
@@ -31,20 +21,20 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cserver.proto\x
31
21
  _globals = globals()
32
22
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
23
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'server_pb2', _globals)
34
- if not _descriptor._USE_C_DESCRIPTORS:
35
- _globals['DESCRIPTOR']._loaded_options = None
24
+ if _descriptor._USE_C_DESCRIPTORS == False:
25
+ _globals['DESCRIPTOR']._options = None
36
26
  _globals['DESCRIPTOR']._serialized_options = b'Z5github.com/annetutil/gnetcli/pkg/server/proto;gnetcli'
37
- _globals['_GNETCLI'].methods_by_name['SetupHostParams']._loaded_options = None
27
+ _globals['_GNETCLI'].methods_by_name['SetupHostParams']._options = None
38
28
  _globals['_GNETCLI'].methods_by_name['SetupHostParams']._serialized_options = b'\202\323\344\223\002\036\"\031/api/v1/setup_host_params:\001*'
39
- _globals['_GNETCLI'].methods_by_name['Exec']._loaded_options = None
29
+ _globals['_GNETCLI'].methods_by_name['Exec']._options = None
40
30
  _globals['_GNETCLI'].methods_by_name['Exec']._serialized_options = b'\202\323\344\223\002\021\"\014/api/v1/exec:\001*'
41
- _globals['_GNETCLI'].methods_by_name['AddDevice']._loaded_options = None
31
+ _globals['_GNETCLI'].methods_by_name['AddDevice']._options = None
42
32
  _globals['_GNETCLI'].methods_by_name['AddDevice']._serialized_options = b'\202\323\344\223\002\027\"\022/api/v1/add_device:\001*'
43
- _globals['_GNETCLI'].methods_by_name['ExecNetconf']._loaded_options = None
33
+ _globals['_GNETCLI'].methods_by_name['ExecNetconf']._options = None
44
34
  _globals['_GNETCLI'].methods_by_name['ExecNetconf']._serialized_options = b'\202\323\344\223\002\031\"\024/api/v1/exec_netconf:\001*'
45
- _globals['_GNETCLI'].methods_by_name['Download']._loaded_options = None
35
+ _globals['_GNETCLI'].methods_by_name['Download']._options = None
46
36
  _globals['_GNETCLI'].methods_by_name['Download']._serialized_options = b'\202\323\344\223\002\026\"\021/api/v1/downloads:\001*'
47
- _globals['_GNETCLI'].methods_by_name['Upload']._loaded_options = None
37
+ _globals['_GNETCLI'].methods_by_name['Upload']._options = None
48
38
  _globals['_GNETCLI'].methods_by_name['Upload']._serialized_options = b'\202\323\344\223\002\023\"\016/api/v1/upload:\001*'
49
39
  _globals['_TRACEOPERATION']._serialized_start=1311
50
40
  _globals['_TRACEOPERATION']._serialized_end=1413
@@ -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 google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
7
6
  from . import server_pb2 as server__pb2
8
7
 
9
- GRPC_GENERATED_VERSION = '1.66.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 server_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 GnetcliStub(object):
30
10
  """Missing associated documentation comment in .proto file."""
@@ -39,42 +19,42 @@ class GnetcliStub(object):
39
19
  '/gnetcli.Gnetcli/SetupHostParams',
40
20
  request_serializer=server__pb2.HostParams.SerializeToString,
41
21
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
42
- _registered_method=True)
22
+ )
43
23
  self.Exec = channel.unary_unary(
44
24
  '/gnetcli.Gnetcli/Exec',
45
25
  request_serializer=server__pb2.CMD.SerializeToString,
46
26
  response_deserializer=server__pb2.CMDResult.FromString,
47
- _registered_method=True)
27
+ )
48
28
  self.ExecChat = channel.stream_stream(
49
29
  '/gnetcli.Gnetcli/ExecChat',
50
30
  request_serializer=server__pb2.CMD.SerializeToString,
51
31
  response_deserializer=server__pb2.CMDResult.FromString,
52
- _registered_method=True)
32
+ )
53
33
  self.AddDevice = channel.unary_unary(
54
34
  '/gnetcli.Gnetcli/AddDevice',
55
35
  request_serializer=server__pb2.Device.SerializeToString,
56
36
  response_deserializer=server__pb2.DeviceResult.FromString,
57
- _registered_method=True)
37
+ )
58
38
  self.ExecNetconf = channel.unary_unary(
59
39
  '/gnetcli.Gnetcli/ExecNetconf',
60
40
  request_serializer=server__pb2.CMDNetconf.SerializeToString,
61
41
  response_deserializer=server__pb2.CMDResult.FromString,
62
- _registered_method=True)
42
+ )
63
43
  self.ExecNetconfChat = channel.stream_stream(
64
44
  '/gnetcli.Gnetcli/ExecNetconfChat',
65
45
  request_serializer=server__pb2.CMDNetconf.SerializeToString,
66
46
  response_deserializer=server__pb2.CMDResult.FromString,
67
- _registered_method=True)
47
+ )
68
48
  self.Download = channel.unary_unary(
69
49
  '/gnetcli.Gnetcli/Download',
70
50
  request_serializer=server__pb2.FileDownloadRequest.SerializeToString,
71
51
  response_deserializer=server__pb2.FilesResult.FromString,
72
- _registered_method=True)
52
+ )
73
53
  self.Upload = channel.unary_unary(
74
54
  '/gnetcli.Gnetcli/Upload',
75
55
  request_serializer=server__pb2.FileUploadRequest.SerializeToString,
76
56
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
77
- _registered_method=True)
57
+ )
78
58
 
79
59
 
80
60
  class GnetcliServicer(object):
@@ -175,7 +155,6 @@ def add_GnetcliServicer_to_server(servicer, server):
175
155
  generic_handler = grpc.method_handlers_generic_handler(
176
156
  'gnetcli.Gnetcli', rpc_method_handlers)
177
157
  server.add_generic_rpc_handlers((generic_handler,))
178
- server.add_registered_method_handlers('gnetcli.Gnetcli', rpc_method_handlers)
179
158
 
180
159
 
181
160
  # This class is part of an EXPERIMENTAL API.
@@ -193,21 +172,11 @@ class Gnetcli(object):
193
172
  wait_for_ready=None,
194
173
  timeout=None,
195
174
  metadata=None):
196
- return grpc.experimental.unary_unary(
197
- request,
198
- target,
199
- '/gnetcli.Gnetcli/SetupHostParams',
175
+ return grpc.experimental.unary_unary(request, target, '/gnetcli.Gnetcli/SetupHostParams',
200
176
  server__pb2.HostParams.SerializeToString,
201
177
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
202
- options,
203
- channel_credentials,
204
- insecure,
205
- call_credentials,
206
- compression,
207
- wait_for_ready,
208
- timeout,
209
- metadata,
210
- _registered_method=True)
178
+ options, channel_credentials,
179
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
211
180
 
212
181
  @staticmethod
213
182
  def Exec(request,
@@ -220,21 +189,11 @@ class Gnetcli(object):
220
189
  wait_for_ready=None,
221
190
  timeout=None,
222
191
  metadata=None):
223
- return grpc.experimental.unary_unary(
224
- request,
225
- target,
226
- '/gnetcli.Gnetcli/Exec',
192
+ return grpc.experimental.unary_unary(request, target, '/gnetcli.Gnetcli/Exec',
227
193
  server__pb2.CMD.SerializeToString,
228
194
  server__pb2.CMDResult.FromString,
229
- options,
230
- channel_credentials,
231
- insecure,
232
- call_credentials,
233
- compression,
234
- wait_for_ready,
235
- timeout,
236
- metadata,
237
- _registered_method=True)
195
+ options, channel_credentials,
196
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
238
197
 
239
198
  @staticmethod
240
199
  def ExecChat(request_iterator,
@@ -247,21 +206,11 @@ class Gnetcli(object):
247
206
  wait_for_ready=None,
248
207
  timeout=None,
249
208
  metadata=None):
250
- return grpc.experimental.stream_stream(
251
- request_iterator,
252
- target,
253
- '/gnetcli.Gnetcli/ExecChat',
209
+ return grpc.experimental.stream_stream(request_iterator, target, '/gnetcli.Gnetcli/ExecChat',
254
210
  server__pb2.CMD.SerializeToString,
255
211
  server__pb2.CMDResult.FromString,
256
- options,
257
- channel_credentials,
258
- insecure,
259
- call_credentials,
260
- compression,
261
- wait_for_ready,
262
- timeout,
263
- metadata,
264
- _registered_method=True)
212
+ options, channel_credentials,
213
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
265
214
 
266
215
  @staticmethod
267
216
  def AddDevice(request,
@@ -274,21 +223,11 @@ class Gnetcli(object):
274
223
  wait_for_ready=None,
275
224
  timeout=None,
276
225
  metadata=None):
277
- return grpc.experimental.unary_unary(
278
- request,
279
- target,
280
- '/gnetcli.Gnetcli/AddDevice',
226
+ return grpc.experimental.unary_unary(request, target, '/gnetcli.Gnetcli/AddDevice',
281
227
  server__pb2.Device.SerializeToString,
282
228
  server__pb2.DeviceResult.FromString,
283
- options,
284
- channel_credentials,
285
- insecure,
286
- call_credentials,
287
- compression,
288
- wait_for_ready,
289
- timeout,
290
- metadata,
291
- _registered_method=True)
229
+ options, channel_credentials,
230
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
292
231
 
293
232
  @staticmethod
294
233
  def ExecNetconf(request,
@@ -301,21 +240,11 @@ class Gnetcli(object):
301
240
  wait_for_ready=None,
302
241
  timeout=None,
303
242
  metadata=None):
304
- return grpc.experimental.unary_unary(
305
- request,
306
- target,
307
- '/gnetcli.Gnetcli/ExecNetconf',
243
+ return grpc.experimental.unary_unary(request, target, '/gnetcli.Gnetcli/ExecNetconf',
308
244
  server__pb2.CMDNetconf.SerializeToString,
309
245
  server__pb2.CMDResult.FromString,
310
- options,
311
- channel_credentials,
312
- insecure,
313
- call_credentials,
314
- compression,
315
- wait_for_ready,
316
- timeout,
317
- metadata,
318
- _registered_method=True)
246
+ options, channel_credentials,
247
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
319
248
 
320
249
  @staticmethod
321
250
  def ExecNetconfChat(request_iterator,
@@ -328,21 +257,11 @@ class Gnetcli(object):
328
257
  wait_for_ready=None,
329
258
  timeout=None,
330
259
  metadata=None):
331
- return grpc.experimental.stream_stream(
332
- request_iterator,
333
- target,
334
- '/gnetcli.Gnetcli/ExecNetconfChat',
260
+ return grpc.experimental.stream_stream(request_iterator, target, '/gnetcli.Gnetcli/ExecNetconfChat',
335
261
  server__pb2.CMDNetconf.SerializeToString,
336
262
  server__pb2.CMDResult.FromString,
337
- options,
338
- channel_credentials,
339
- insecure,
340
- call_credentials,
341
- compression,
342
- wait_for_ready,
343
- timeout,
344
- metadata,
345
- _registered_method=True)
263
+ options, channel_credentials,
264
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
346
265
 
347
266
  @staticmethod
348
267
  def Download(request,
@@ -355,21 +274,11 @@ class Gnetcli(object):
355
274
  wait_for_ready=None,
356
275
  timeout=None,
357
276
  metadata=None):
358
- return grpc.experimental.unary_unary(
359
- request,
360
- target,
361
- '/gnetcli.Gnetcli/Download',
277
+ return grpc.experimental.unary_unary(request, target, '/gnetcli.Gnetcli/Download',
362
278
  server__pb2.FileDownloadRequest.SerializeToString,
363
279
  server__pb2.FilesResult.FromString,
364
- options,
365
- channel_credentials,
366
- insecure,
367
- call_credentials,
368
- compression,
369
- wait_for_ready,
370
- timeout,
371
- metadata,
372
- _registered_method=True)
280
+ options, channel_credentials,
281
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
373
282
 
374
283
  @staticmethod
375
284
  def Upload(request,
@@ -382,18 +291,8 @@ class Gnetcli(object):
382
291
  wait_for_ready=None,
383
292
  timeout=None,
384
293
  metadata=None):
385
- return grpc.experimental.unary_unary(
386
- request,
387
- target,
388
- '/gnetcli.Gnetcli/Upload',
294
+ return grpc.experimental.unary_unary(request, target, '/gnetcli.Gnetcli/Upload',
389
295
  server__pb2.FileUploadRequest.SerializeToString,
390
296
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
391
- options,
392
- channel_credentials,
393
- insecure,
394
- call_credentials,
395
- compression,
396
- wait_for_ready,
397
- timeout,
398
- metadata,
399
- _registered_method=True)
297
+ options, channel_credentials,
298
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: gnetclisdk
3
- Version: 1.0.56
3
+ Version: 1.0.57
4
4
  Summary: Client for Gnetcli GRPC-server
5
5
  Home-page: https://github.com/annetutil/gnetcli
6
6
  Author: Alexander Balezin
File without changes
File without changes
File without changes
File without changes
File without changes