flwr-nightly 1.15.0.dev20250116__py3-none-any.whl → 1.15.0.dev20250118__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.
Files changed (43) hide show
  1. flwr/client/app.py +16 -36
  2. flwr/client/grpc_client/connection.py +0 -6
  3. flwr/client/grpc_rere_client/connection.py +10 -0
  4. flwr/client/rest_client/connection.py +10 -0
  5. flwr/client/supernode/app.py +5 -5
  6. flwr/common/grpc.py +7 -0
  7. flwr/proto/clientappio_pb2.py +13 -3
  8. flwr/proto/clientappio_pb2_grpc.py +63 -12
  9. flwr/proto/error_pb2.py +13 -3
  10. flwr/proto/error_pb2_grpc.py +20 -0
  11. flwr/proto/exec_pb2.py +15 -5
  12. flwr/proto/exec_pb2_grpc.py +105 -24
  13. flwr/proto/fab_pb2.py +13 -3
  14. flwr/proto/fab_pb2_grpc.py +20 -0
  15. flwr/proto/fleet_pb2.py +15 -5
  16. flwr/proto/fleet_pb2_grpc.py +147 -36
  17. flwr/proto/grpcadapter_pb2.py +14 -4
  18. flwr/proto/grpcadapter_pb2_grpc.py +35 -4
  19. flwr/proto/log_pb2.py +13 -3
  20. flwr/proto/log_pb2_grpc.py +20 -0
  21. flwr/proto/message_pb2.py +15 -5
  22. flwr/proto/message_pb2_grpc.py +20 -0
  23. flwr/proto/node_pb2.py +13 -3
  24. flwr/proto/node_pb2_grpc.py +20 -0
  25. flwr/proto/recordset_pb2.py +18 -8
  26. flwr/proto/recordset_pb2_grpc.py +20 -0
  27. flwr/proto/run_pb2.py +16 -6
  28. flwr/proto/run_pb2_grpc.py +20 -0
  29. flwr/proto/serverappio_pb2.py +13 -3
  30. flwr/proto/serverappio_pb2_grpc.py +175 -44
  31. flwr/proto/simulationio_pb2.py +13 -3
  32. flwr/proto/simulationio_pb2_grpc.py +105 -24
  33. flwr/proto/task_pb2.py +13 -3
  34. flwr/proto/task_pb2_grpc.py +20 -0
  35. flwr/proto/transport_pb2.py +20 -10
  36. flwr/proto/transport_pb2_grpc.py +35 -4
  37. flwr/server/app.py +13 -2
  38. flwr/server/serverapp/app.py +1 -0
  39. {flwr_nightly-1.15.0.dev20250116.dist-info → flwr_nightly-1.15.0.dev20250118.dist-info}/METADATA +4 -4
  40. {flwr_nightly-1.15.0.dev20250116.dist-info → flwr_nightly-1.15.0.dev20250118.dist-info}/RECORD +43 -43
  41. {flwr_nightly-1.15.0.dev20250116.dist-info → flwr_nightly-1.15.0.dev20250118.dist-info}/LICENSE +0 -0
  42. {flwr_nightly-1.15.0.dev20250116.dist-info → flwr_nightly-1.15.0.dev20250118.dist-info}/WHEEL +0 -0
  43. {flwr_nightly-1.15.0.dev20250116.dist-info → flwr_nightly-1.15.0.dev20250118.dist-info}/entry_points.txt +0 -0
@@ -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 flwr.proto import fab_pb2 as flwr_dot_proto_dot_fab__pb2
6
7
  from flwr.proto import log_pb2 as flwr_dot_proto_dot_log__pb2
7
8
  from flwr.proto import run_pb2 as flwr_dot_proto_dot_run__pb2
8
9
  from flwr.proto import serverappio_pb2 as flwr_dot_proto_dot_serverappio__pb2
9
10
 
11
+ GRPC_GENERATED_VERSION = '1.69.0'
12
+ GRPC_VERSION = grpc.__version__
13
+ _version_not_supported = False
14
+
15
+ try:
16
+ from grpc._utilities import first_version_is_lower
17
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
18
+ except ImportError:
19
+ _version_not_supported = True
20
+
21
+ if _version_not_supported:
22
+ raise RuntimeError(
23
+ f'The grpc package installed is at version {GRPC_VERSION},'
24
+ + f' but the generated code in flwr/proto/serverappio_pb2_grpc.py depends on'
25
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
26
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
27
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
28
+ )
29
+
10
30
 
11
31
  class ServerAppIoStub(object):
12
32
  """Missing associated documentation comment in .proto file."""
@@ -21,57 +41,57 @@ class ServerAppIoStub(object):
21
41
  '/flwr.proto.ServerAppIo/CreateRun',
22
42
  request_serializer=flwr_dot_proto_dot_run__pb2.CreateRunRequest.SerializeToString,
23
43
  response_deserializer=flwr_dot_proto_dot_run__pb2.CreateRunResponse.FromString,
24
- )
44
+ _registered_method=True)
25
45
  self.GetNodes = channel.unary_unary(
26
46
  '/flwr.proto.ServerAppIo/GetNodes',
27
47
  request_serializer=flwr_dot_proto_dot_serverappio__pb2.GetNodesRequest.SerializeToString,
28
48
  response_deserializer=flwr_dot_proto_dot_serverappio__pb2.GetNodesResponse.FromString,
29
- )
49
+ _registered_method=True)
30
50
  self.PushTaskIns = channel.unary_unary(
31
51
  '/flwr.proto.ServerAppIo/PushTaskIns',
32
52
  request_serializer=flwr_dot_proto_dot_serverappio__pb2.PushTaskInsRequest.SerializeToString,
33
53
  response_deserializer=flwr_dot_proto_dot_serverappio__pb2.PushTaskInsResponse.FromString,
34
- )
54
+ _registered_method=True)
35
55
  self.PullTaskRes = channel.unary_unary(
36
56
  '/flwr.proto.ServerAppIo/PullTaskRes',
37
57
  request_serializer=flwr_dot_proto_dot_serverappio__pb2.PullTaskResRequest.SerializeToString,
38
58
  response_deserializer=flwr_dot_proto_dot_serverappio__pb2.PullTaskResResponse.FromString,
39
- )
59
+ _registered_method=True)
40
60
  self.GetRun = channel.unary_unary(
41
61
  '/flwr.proto.ServerAppIo/GetRun',
42
62
  request_serializer=flwr_dot_proto_dot_run__pb2.GetRunRequest.SerializeToString,
43
63
  response_deserializer=flwr_dot_proto_dot_run__pb2.GetRunResponse.FromString,
44
- )
64
+ _registered_method=True)
45
65
  self.GetFab = channel.unary_unary(
46
66
  '/flwr.proto.ServerAppIo/GetFab',
47
67
  request_serializer=flwr_dot_proto_dot_fab__pb2.GetFabRequest.SerializeToString,
48
68
  response_deserializer=flwr_dot_proto_dot_fab__pb2.GetFabResponse.FromString,
49
- )
69
+ _registered_method=True)
50
70
  self.PullServerAppInputs = channel.unary_unary(
51
71
  '/flwr.proto.ServerAppIo/PullServerAppInputs',
52
72
  request_serializer=flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsRequest.SerializeToString,
53
73
  response_deserializer=flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsResponse.FromString,
54
- )
74
+ _registered_method=True)
55
75
  self.PushServerAppOutputs = channel.unary_unary(
56
76
  '/flwr.proto.ServerAppIo/PushServerAppOutputs',
57
77
  request_serializer=flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsRequest.SerializeToString,
58
78
  response_deserializer=flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsResponse.FromString,
59
- )
79
+ _registered_method=True)
60
80
  self.UpdateRunStatus = channel.unary_unary(
61
81
  '/flwr.proto.ServerAppIo/UpdateRunStatus',
62
82
  request_serializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.SerializeToString,
63
83
  response_deserializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusResponse.FromString,
64
- )
84
+ _registered_method=True)
65
85
  self.GetRunStatus = channel.unary_unary(
66
86
  '/flwr.proto.ServerAppIo/GetRunStatus',
67
87
  request_serializer=flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.SerializeToString,
68
88
  response_deserializer=flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.FromString,
69
- )
89
+ _registered_method=True)
70
90
  self.PushLogs = channel.unary_unary(
71
91
  '/flwr.proto.ServerAppIo/PushLogs',
72
92
  request_serializer=flwr_dot_proto_dot_log__pb2.PushLogsRequest.SerializeToString,
73
93
  response_deserializer=flwr_dot_proto_dot_log__pb2.PushLogsResponse.FromString,
74
- )
94
+ _registered_method=True)
75
95
 
76
96
 
77
97
  class ServerAppIoServicer(object):
@@ -216,6 +236,7 @@ def add_ServerAppIoServicer_to_server(servicer, server):
216
236
  generic_handler = grpc.method_handlers_generic_handler(
217
237
  'flwr.proto.ServerAppIo', rpc_method_handlers)
218
238
  server.add_generic_rpc_handlers((generic_handler,))
239
+ server.add_registered_method_handlers('flwr.proto.ServerAppIo', rpc_method_handlers)
219
240
 
220
241
 
221
242
  # This class is part of an EXPERIMENTAL API.
@@ -233,11 +254,21 @@ class ServerAppIo(object):
233
254
  wait_for_ready=None,
234
255
  timeout=None,
235
256
  metadata=None):
236
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/CreateRun',
257
+ return grpc.experimental.unary_unary(
258
+ request,
259
+ target,
260
+ '/flwr.proto.ServerAppIo/CreateRun',
237
261
  flwr_dot_proto_dot_run__pb2.CreateRunRequest.SerializeToString,
238
262
  flwr_dot_proto_dot_run__pb2.CreateRunResponse.FromString,
239
- options, channel_credentials,
240
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
263
+ options,
264
+ channel_credentials,
265
+ insecure,
266
+ call_credentials,
267
+ compression,
268
+ wait_for_ready,
269
+ timeout,
270
+ metadata,
271
+ _registered_method=True)
241
272
 
242
273
  @staticmethod
243
274
  def GetNodes(request,
@@ -250,11 +281,21 @@ class ServerAppIo(object):
250
281
  wait_for_ready=None,
251
282
  timeout=None,
252
283
  metadata=None):
253
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/GetNodes',
284
+ return grpc.experimental.unary_unary(
285
+ request,
286
+ target,
287
+ '/flwr.proto.ServerAppIo/GetNodes',
254
288
  flwr_dot_proto_dot_serverappio__pb2.GetNodesRequest.SerializeToString,
255
289
  flwr_dot_proto_dot_serverappio__pb2.GetNodesResponse.FromString,
256
- options, channel_credentials,
257
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
290
+ options,
291
+ channel_credentials,
292
+ insecure,
293
+ call_credentials,
294
+ compression,
295
+ wait_for_ready,
296
+ timeout,
297
+ metadata,
298
+ _registered_method=True)
258
299
 
259
300
  @staticmethod
260
301
  def PushTaskIns(request,
@@ -267,11 +308,21 @@ class ServerAppIo(object):
267
308
  wait_for_ready=None,
268
309
  timeout=None,
269
310
  metadata=None):
270
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PushTaskIns',
311
+ return grpc.experimental.unary_unary(
312
+ request,
313
+ target,
314
+ '/flwr.proto.ServerAppIo/PushTaskIns',
271
315
  flwr_dot_proto_dot_serverappio__pb2.PushTaskInsRequest.SerializeToString,
272
316
  flwr_dot_proto_dot_serverappio__pb2.PushTaskInsResponse.FromString,
273
- options, channel_credentials,
274
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
317
+ options,
318
+ channel_credentials,
319
+ insecure,
320
+ call_credentials,
321
+ compression,
322
+ wait_for_ready,
323
+ timeout,
324
+ metadata,
325
+ _registered_method=True)
275
326
 
276
327
  @staticmethod
277
328
  def PullTaskRes(request,
@@ -284,11 +335,21 @@ class ServerAppIo(object):
284
335
  wait_for_ready=None,
285
336
  timeout=None,
286
337
  metadata=None):
287
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PullTaskRes',
338
+ return grpc.experimental.unary_unary(
339
+ request,
340
+ target,
341
+ '/flwr.proto.ServerAppIo/PullTaskRes',
288
342
  flwr_dot_proto_dot_serverappio__pb2.PullTaskResRequest.SerializeToString,
289
343
  flwr_dot_proto_dot_serverappio__pb2.PullTaskResResponse.FromString,
290
- options, channel_credentials,
291
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
344
+ options,
345
+ channel_credentials,
346
+ insecure,
347
+ call_credentials,
348
+ compression,
349
+ wait_for_ready,
350
+ timeout,
351
+ metadata,
352
+ _registered_method=True)
292
353
 
293
354
  @staticmethod
294
355
  def GetRun(request,
@@ -301,11 +362,21 @@ class ServerAppIo(object):
301
362
  wait_for_ready=None,
302
363
  timeout=None,
303
364
  metadata=None):
304
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/GetRun',
365
+ return grpc.experimental.unary_unary(
366
+ request,
367
+ target,
368
+ '/flwr.proto.ServerAppIo/GetRun',
305
369
  flwr_dot_proto_dot_run__pb2.GetRunRequest.SerializeToString,
306
370
  flwr_dot_proto_dot_run__pb2.GetRunResponse.FromString,
307
- options, channel_credentials,
308
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
371
+ options,
372
+ channel_credentials,
373
+ insecure,
374
+ call_credentials,
375
+ compression,
376
+ wait_for_ready,
377
+ timeout,
378
+ metadata,
379
+ _registered_method=True)
309
380
 
310
381
  @staticmethod
311
382
  def GetFab(request,
@@ -318,11 +389,21 @@ class ServerAppIo(object):
318
389
  wait_for_ready=None,
319
390
  timeout=None,
320
391
  metadata=None):
321
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/GetFab',
392
+ return grpc.experimental.unary_unary(
393
+ request,
394
+ target,
395
+ '/flwr.proto.ServerAppIo/GetFab',
322
396
  flwr_dot_proto_dot_fab__pb2.GetFabRequest.SerializeToString,
323
397
  flwr_dot_proto_dot_fab__pb2.GetFabResponse.FromString,
324
- options, channel_credentials,
325
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
398
+ options,
399
+ channel_credentials,
400
+ insecure,
401
+ call_credentials,
402
+ compression,
403
+ wait_for_ready,
404
+ timeout,
405
+ metadata,
406
+ _registered_method=True)
326
407
 
327
408
  @staticmethod
328
409
  def PullServerAppInputs(request,
@@ -335,11 +416,21 @@ class ServerAppIo(object):
335
416
  wait_for_ready=None,
336
417
  timeout=None,
337
418
  metadata=None):
338
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PullServerAppInputs',
419
+ return grpc.experimental.unary_unary(
420
+ request,
421
+ target,
422
+ '/flwr.proto.ServerAppIo/PullServerAppInputs',
339
423
  flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsRequest.SerializeToString,
340
424
  flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsResponse.FromString,
341
- options, channel_credentials,
342
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
425
+ options,
426
+ channel_credentials,
427
+ insecure,
428
+ call_credentials,
429
+ compression,
430
+ wait_for_ready,
431
+ timeout,
432
+ metadata,
433
+ _registered_method=True)
343
434
 
344
435
  @staticmethod
345
436
  def PushServerAppOutputs(request,
@@ -352,11 +443,21 @@ class ServerAppIo(object):
352
443
  wait_for_ready=None,
353
444
  timeout=None,
354
445
  metadata=None):
355
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PushServerAppOutputs',
446
+ return grpc.experimental.unary_unary(
447
+ request,
448
+ target,
449
+ '/flwr.proto.ServerAppIo/PushServerAppOutputs',
356
450
  flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsRequest.SerializeToString,
357
451
  flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsResponse.FromString,
358
- options, channel_credentials,
359
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
452
+ options,
453
+ channel_credentials,
454
+ insecure,
455
+ call_credentials,
456
+ compression,
457
+ wait_for_ready,
458
+ timeout,
459
+ metadata,
460
+ _registered_method=True)
360
461
 
361
462
  @staticmethod
362
463
  def UpdateRunStatus(request,
@@ -369,11 +470,21 @@ class ServerAppIo(object):
369
470
  wait_for_ready=None,
370
471
  timeout=None,
371
472
  metadata=None):
372
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/UpdateRunStatus',
473
+ return grpc.experimental.unary_unary(
474
+ request,
475
+ target,
476
+ '/flwr.proto.ServerAppIo/UpdateRunStatus',
373
477
  flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.SerializeToString,
374
478
  flwr_dot_proto_dot_run__pb2.UpdateRunStatusResponse.FromString,
375
- options, channel_credentials,
376
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
479
+ options,
480
+ channel_credentials,
481
+ insecure,
482
+ call_credentials,
483
+ compression,
484
+ wait_for_ready,
485
+ timeout,
486
+ metadata,
487
+ _registered_method=True)
377
488
 
378
489
  @staticmethod
379
490
  def GetRunStatus(request,
@@ -386,11 +497,21 @@ class ServerAppIo(object):
386
497
  wait_for_ready=None,
387
498
  timeout=None,
388
499
  metadata=None):
389
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/GetRunStatus',
500
+ return grpc.experimental.unary_unary(
501
+ request,
502
+ target,
503
+ '/flwr.proto.ServerAppIo/GetRunStatus',
390
504
  flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.SerializeToString,
391
505
  flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.FromString,
392
- options, channel_credentials,
393
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
506
+ options,
507
+ channel_credentials,
508
+ insecure,
509
+ call_credentials,
510
+ compression,
511
+ wait_for_ready,
512
+ timeout,
513
+ metadata,
514
+ _registered_method=True)
394
515
 
395
516
  @staticmethod
396
517
  def PushLogs(request,
@@ -403,8 +524,18 @@ class ServerAppIo(object):
403
524
  wait_for_ready=None,
404
525
  timeout=None,
405
526
  metadata=None):
406
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PushLogs',
527
+ return grpc.experimental.unary_unary(
528
+ request,
529
+ target,
530
+ '/flwr.proto.ServerAppIo/PushLogs',
407
531
  flwr_dot_proto_dot_log__pb2.PushLogsRequest.SerializeToString,
408
532
  flwr_dot_proto_dot_log__pb2.PushLogsResponse.FromString,
409
- options, channel_credentials,
410
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
533
+ options,
534
+ channel_credentials,
535
+ insecure,
536
+ call_credentials,
537
+ compression,
538
+ wait_for_ready,
539
+ timeout,
540
+ metadata,
541
+ _registered_method=True)
@@ -1,12 +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: flwr/proto/simulationio.proto
4
- # Protobuf Python Version: 4.25.0
5
+ # Protobuf Python Version: 5.29.0
5
6
  """Generated protocol buffer code."""
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
8
10
  from google.protobuf import symbol_database as _symbol_database
9
11
  from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 0,
17
+ '',
18
+ 'flwr/proto/simulationio.proto'
19
+ )
10
20
  # @@protoc_insertion_point(imports)
11
21
 
12
22
  _sym_db = _symbol_database.Default()
@@ -23,8 +33,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lwr/proto/
23
33
  _globals = globals()
24
34
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
25
35
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.simulationio_pb2', _globals)
26
- if _descriptor._USE_C_DESCRIPTORS == False:
27
- DESCRIPTOR._options = None
36
+ if not _descriptor._USE_C_DESCRIPTORS:
37
+ DESCRIPTOR._loaded_options = None
28
38
  _globals['_PULLSIMULATIONINPUTSREQUEST']._serialized_start=137
29
39
  _globals['_PULLSIMULATIONINPUTSREQUEST']._serialized_end=166
30
40
  _globals['_PULLSIMULATIONINPUTSRESPONSE']._serialized_start=169
@@ -1,11 +1,31 @@
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 flwr.proto import log_pb2 as flwr_dot_proto_dot_log__pb2
6
7
  from flwr.proto import run_pb2 as flwr_dot_proto_dot_run__pb2
7
8
  from flwr.proto import simulationio_pb2 as flwr_dot_proto_dot_simulationio__pb2
8
9
 
10
+ GRPC_GENERATED_VERSION = '1.69.0'
11
+ GRPC_VERSION = grpc.__version__
12
+ _version_not_supported = False
13
+
14
+ try:
15
+ from grpc._utilities import first_version_is_lower
16
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
17
+ except ImportError:
18
+ _version_not_supported = True
19
+
20
+ if _version_not_supported:
21
+ raise RuntimeError(
22
+ f'The grpc package installed is at version {GRPC_VERSION},'
23
+ + f' but the generated code in flwr/proto/simulationio_pb2_grpc.py depends on'
24
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
25
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
26
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
27
+ )
28
+
9
29
 
10
30
  class SimulationIoStub(object):
11
31
  """Missing associated documentation comment in .proto file."""
@@ -20,32 +40,32 @@ class SimulationIoStub(object):
20
40
  '/flwr.proto.SimulationIo/PullSimulationInputs',
21
41
  request_serializer=flwr_dot_proto_dot_simulationio__pb2.PullSimulationInputsRequest.SerializeToString,
22
42
  response_deserializer=flwr_dot_proto_dot_simulationio__pb2.PullSimulationInputsResponse.FromString,
23
- )
43
+ _registered_method=True)
24
44
  self.PushSimulationOutputs = channel.unary_unary(
25
45
  '/flwr.proto.SimulationIo/PushSimulationOutputs',
26
46
  request_serializer=flwr_dot_proto_dot_simulationio__pb2.PushSimulationOutputsRequest.SerializeToString,
27
47
  response_deserializer=flwr_dot_proto_dot_simulationio__pb2.PushSimulationOutputsResponse.FromString,
28
- )
48
+ _registered_method=True)
29
49
  self.UpdateRunStatus = channel.unary_unary(
30
50
  '/flwr.proto.SimulationIo/UpdateRunStatus',
31
51
  request_serializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.SerializeToString,
32
52
  response_deserializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusResponse.FromString,
33
- )
53
+ _registered_method=True)
34
54
  self.PushLogs = channel.unary_unary(
35
55
  '/flwr.proto.SimulationIo/PushLogs',
36
56
  request_serializer=flwr_dot_proto_dot_log__pb2.PushLogsRequest.SerializeToString,
37
57
  response_deserializer=flwr_dot_proto_dot_log__pb2.PushLogsResponse.FromString,
38
- )
58
+ _registered_method=True)
39
59
  self.GetFederationOptions = channel.unary_unary(
40
60
  '/flwr.proto.SimulationIo/GetFederationOptions',
41
61
  request_serializer=flwr_dot_proto_dot_run__pb2.GetFederationOptionsRequest.SerializeToString,
42
62
  response_deserializer=flwr_dot_proto_dot_run__pb2.GetFederationOptionsResponse.FromString,
43
- )
63
+ _registered_method=True)
44
64
  self.GetRunStatus = channel.unary_unary(
45
65
  '/flwr.proto.SimulationIo/GetRunStatus',
46
66
  request_serializer=flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.SerializeToString,
47
67
  response_deserializer=flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.FromString,
48
- )
68
+ _registered_method=True)
49
69
 
50
70
 
51
71
  class SimulationIoServicer(object):
@@ -130,6 +150,7 @@ def add_SimulationIoServicer_to_server(servicer, server):
130
150
  generic_handler = grpc.method_handlers_generic_handler(
131
151
  'flwr.proto.SimulationIo', rpc_method_handlers)
132
152
  server.add_generic_rpc_handlers((generic_handler,))
153
+ server.add_registered_method_handlers('flwr.proto.SimulationIo', rpc_method_handlers)
133
154
 
134
155
 
135
156
  # This class is part of an EXPERIMENTAL API.
@@ -147,11 +168,21 @@ class SimulationIo(object):
147
168
  wait_for_ready=None,
148
169
  timeout=None,
149
170
  metadata=None):
150
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.SimulationIo/PullSimulationInputs',
171
+ return grpc.experimental.unary_unary(
172
+ request,
173
+ target,
174
+ '/flwr.proto.SimulationIo/PullSimulationInputs',
151
175
  flwr_dot_proto_dot_simulationio__pb2.PullSimulationInputsRequest.SerializeToString,
152
176
  flwr_dot_proto_dot_simulationio__pb2.PullSimulationInputsResponse.FromString,
153
- options, channel_credentials,
154
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
177
+ options,
178
+ channel_credentials,
179
+ insecure,
180
+ call_credentials,
181
+ compression,
182
+ wait_for_ready,
183
+ timeout,
184
+ metadata,
185
+ _registered_method=True)
155
186
 
156
187
  @staticmethod
157
188
  def PushSimulationOutputs(request,
@@ -164,11 +195,21 @@ class SimulationIo(object):
164
195
  wait_for_ready=None,
165
196
  timeout=None,
166
197
  metadata=None):
167
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.SimulationIo/PushSimulationOutputs',
198
+ return grpc.experimental.unary_unary(
199
+ request,
200
+ target,
201
+ '/flwr.proto.SimulationIo/PushSimulationOutputs',
168
202
  flwr_dot_proto_dot_simulationio__pb2.PushSimulationOutputsRequest.SerializeToString,
169
203
  flwr_dot_proto_dot_simulationio__pb2.PushSimulationOutputsResponse.FromString,
170
- options, channel_credentials,
171
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
204
+ options,
205
+ channel_credentials,
206
+ insecure,
207
+ call_credentials,
208
+ compression,
209
+ wait_for_ready,
210
+ timeout,
211
+ metadata,
212
+ _registered_method=True)
172
213
 
173
214
  @staticmethod
174
215
  def UpdateRunStatus(request,
@@ -181,11 +222,21 @@ class SimulationIo(object):
181
222
  wait_for_ready=None,
182
223
  timeout=None,
183
224
  metadata=None):
184
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.SimulationIo/UpdateRunStatus',
225
+ return grpc.experimental.unary_unary(
226
+ request,
227
+ target,
228
+ '/flwr.proto.SimulationIo/UpdateRunStatus',
185
229
  flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.SerializeToString,
186
230
  flwr_dot_proto_dot_run__pb2.UpdateRunStatusResponse.FromString,
187
- options, channel_credentials,
188
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
231
+ options,
232
+ channel_credentials,
233
+ insecure,
234
+ call_credentials,
235
+ compression,
236
+ wait_for_ready,
237
+ timeout,
238
+ metadata,
239
+ _registered_method=True)
189
240
 
190
241
  @staticmethod
191
242
  def PushLogs(request,
@@ -198,11 +249,21 @@ class SimulationIo(object):
198
249
  wait_for_ready=None,
199
250
  timeout=None,
200
251
  metadata=None):
201
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.SimulationIo/PushLogs',
252
+ return grpc.experimental.unary_unary(
253
+ request,
254
+ target,
255
+ '/flwr.proto.SimulationIo/PushLogs',
202
256
  flwr_dot_proto_dot_log__pb2.PushLogsRequest.SerializeToString,
203
257
  flwr_dot_proto_dot_log__pb2.PushLogsResponse.FromString,
204
- options, channel_credentials,
205
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
258
+ options,
259
+ channel_credentials,
260
+ insecure,
261
+ call_credentials,
262
+ compression,
263
+ wait_for_ready,
264
+ timeout,
265
+ metadata,
266
+ _registered_method=True)
206
267
 
207
268
  @staticmethod
208
269
  def GetFederationOptions(request,
@@ -215,11 +276,21 @@ class SimulationIo(object):
215
276
  wait_for_ready=None,
216
277
  timeout=None,
217
278
  metadata=None):
218
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.SimulationIo/GetFederationOptions',
279
+ return grpc.experimental.unary_unary(
280
+ request,
281
+ target,
282
+ '/flwr.proto.SimulationIo/GetFederationOptions',
219
283
  flwr_dot_proto_dot_run__pb2.GetFederationOptionsRequest.SerializeToString,
220
284
  flwr_dot_proto_dot_run__pb2.GetFederationOptionsResponse.FromString,
221
- options, channel_credentials,
222
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
285
+ options,
286
+ channel_credentials,
287
+ insecure,
288
+ call_credentials,
289
+ compression,
290
+ wait_for_ready,
291
+ timeout,
292
+ metadata,
293
+ _registered_method=True)
223
294
 
224
295
  @staticmethod
225
296
  def GetRunStatus(request,
@@ -232,8 +303,18 @@ class SimulationIo(object):
232
303
  wait_for_ready=None,
233
304
  timeout=None,
234
305
  metadata=None):
235
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.SimulationIo/GetRunStatus',
306
+ return grpc.experimental.unary_unary(
307
+ request,
308
+ target,
309
+ '/flwr.proto.SimulationIo/GetRunStatus',
236
310
  flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.SerializeToString,
237
311
  flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.FromString,
238
- options, channel_credentials,
239
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
312
+ options,
313
+ channel_credentials,
314
+ insecure,
315
+ call_credentials,
316
+ compression,
317
+ wait_for_ready,
318
+ timeout,
319
+ metadata,
320
+ _registered_method=True)
flwr/proto/task_pb2.py CHANGED
@@ -1,12 +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: flwr/proto/task.proto
4
- # Protobuf Python Version: 4.25.0
5
+ # Protobuf Python Version: 5.29.0
5
6
  """Generated protocol buffer code."""
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
8
10
  from google.protobuf import symbol_database as _symbol_database
9
11
  from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 0,
17
+ '',
18
+ 'flwr/proto/task.proto'
19
+ )
10
20
  # @@protoc_insertion_point(imports)
11
21
 
12
22
  _sym_db = _symbol_database.Default()
@@ -22,8 +32,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x66lwr/proto/
22
32
  _globals = globals()
23
33
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
24
34
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.task_pb2', _globals)
25
- if _descriptor._USE_C_DESCRIPTORS == False:
26
- DESCRIPTOR._options = None
35
+ if not _descriptor._USE_C_DESCRIPTORS:
36
+ DESCRIPTOR._loaded_options = None
27
37
  _globals['_TASK']._serialized_start=113
28
38
  _globals['_TASK']._serialized_end=378
29
39
  _globals['_TASKINS']._serialized_start=380