flwr-nightly 1.26.0.dev20260201__py3-none-any.whl → 1.26.0.dev20260203__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.
- flwr/cli/federation/ls.py +4 -1
- flwr/cli/utils.py +2 -0
- flwr/common/typing.py +1 -0
- flwr/proto/clientappio_pb2.py +2 -2
- flwr/proto/clientappio_pb2_grpc.py +56 -56
- flwr/proto/clientappio_pb2_grpc.pyi +52 -52
- flwr/proto/federation_pb2.py +2 -2
- flwr/proto/federation_pb2.pyi +16 -4
- flwr/proto/run_pb2.py +5 -13
- flwr/proto/run_pb2.pyi +0 -57
- flwr/proto/serverappio_pb2.py +2 -2
- flwr/proto/serverappio_pb2_grpc.py +56 -100
- flwr/proto/serverappio_pb2_grpc.pyi +52 -72
- flwr/proto/simulationio_pb2.py +2 -2
- flwr/proto/simulationio_pb2_grpc.py +7 -51
- flwr/proto/simulationio_pb2_grpc.pyi +24 -44
- flwr/server/superlink/serverappio/serverappio_servicer.py +0 -18
- flwr/server/superlink/simulation/simulationio_servicer.py +0 -19
- flwr/supercore/constant.py +1 -0
- flwr/supercore/object_store/sql_object_store.py +22 -18
- flwr/superlink/federation/federation_manager.py +2 -2
- flwr/superlink/federation/noop_federation_manager.py +5 -4
- flwr/superlink/servicer/control/control_servicer.py +5 -3
- flwr/supernode/runtime/run_clientapp.py +12 -12
- flwr/supernode/servicer/clientappio/clientappio_servicer.py +4 -4
- {flwr_nightly-1.26.0.dev20260201.dist-info → flwr_nightly-1.26.0.dev20260203.dist-info}/METADATA +4 -4
- {flwr_nightly-1.26.0.dev20260201.dist-info → flwr_nightly-1.26.0.dev20260203.dist-info}/RECORD +29 -29
- {flwr_nightly-1.26.0.dev20260201.dist-info → flwr_nightly-1.26.0.dev20260203.dist-info}/WHEEL +0 -0
- {flwr_nightly-1.26.0.dev20260201.dist-info → flwr_nightly-1.26.0.dev20260203.dist-info}/entry_points.txt +0 -0
|
@@ -60,6 +60,16 @@ class ServerAppIoStub(object):
|
|
|
60
60
|
request_serializer=flwr_dot_proto_dot_heartbeat__pb2.SendAppHeartbeatRequest.SerializeToString,
|
|
61
61
|
response_deserializer=flwr_dot_proto_dot_heartbeat__pb2.SendAppHeartbeatResponse.FromString,
|
|
62
62
|
_registered_method=True)
|
|
63
|
+
self.PullAppInputs = channel.unary_unary(
|
|
64
|
+
'/flwr.proto.ServerAppIo/PullAppInputs',
|
|
65
|
+
request_serializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsRequest.SerializeToString,
|
|
66
|
+
response_deserializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsResponse.FromString,
|
|
67
|
+
_registered_method=True)
|
|
68
|
+
self.PushAppOutputs = channel.unary_unary(
|
|
69
|
+
'/flwr.proto.ServerAppIo/PushAppOutputs',
|
|
70
|
+
request_serializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.SerializeToString,
|
|
71
|
+
response_deserializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.FromString,
|
|
72
|
+
_registered_method=True)
|
|
63
73
|
self.PushObject = channel.unary_unary(
|
|
64
74
|
'/flwr.proto.ServerAppIo/PushObject',
|
|
65
75
|
request_serializer=flwr_dot_proto_dot_message__pb2.PushObjectRequest.SerializeToString,
|
|
@@ -75,21 +85,6 @@ class ServerAppIoStub(object):
|
|
|
75
85
|
request_serializer=flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedRequest.SerializeToString,
|
|
76
86
|
response_deserializer=flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedResponse.FromString,
|
|
77
87
|
_registered_method=True)
|
|
78
|
-
self.PullAppInputs = channel.unary_unary(
|
|
79
|
-
'/flwr.proto.ServerAppIo/PullAppInputs',
|
|
80
|
-
request_serializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsRequest.SerializeToString,
|
|
81
|
-
response_deserializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsResponse.FromString,
|
|
82
|
-
_registered_method=True)
|
|
83
|
-
self.PushAppOutputs = channel.unary_unary(
|
|
84
|
-
'/flwr.proto.ServerAppIo/PushAppOutputs',
|
|
85
|
-
request_serializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.SerializeToString,
|
|
86
|
-
response_deserializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.FromString,
|
|
87
|
-
_registered_method=True)
|
|
88
|
-
self.GetRunStatus = channel.unary_unary(
|
|
89
|
-
'/flwr.proto.ServerAppIo/GetRunStatus',
|
|
90
|
-
request_serializer=flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.SerializeToString,
|
|
91
|
-
response_deserializer=flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.FromString,
|
|
92
|
-
_registered_method=True)
|
|
93
88
|
self.UpdateRunStatus = channel.unary_unary(
|
|
94
89
|
'/flwr.proto.ServerAppIo/UpdateRunStatus',
|
|
95
90
|
request_serializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.SerializeToString,
|
|
@@ -161,58 +156,51 @@ class ServerAppIoServicer(object):
|
|
|
161
156
|
context.set_details('Method not implemented!')
|
|
162
157
|
raise NotImplementedError('Method not implemented!')
|
|
163
158
|
|
|
164
|
-
def
|
|
165
|
-
"""
|
|
166
|
-
Specific endpoints shared by ServerAppIo and ClientAppIo
|
|
167
|
-
///////////////////////////////////////////////////////////////////////////
|
|
168
|
-
|
|
169
|
-
Push Object
|
|
170
|
-
"""
|
|
171
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
172
|
-
context.set_details('Method not implemented!')
|
|
173
|
-
raise NotImplementedError('Method not implemented!')
|
|
174
|
-
|
|
175
|
-
def PullObject(self, request, context):
|
|
176
|
-
"""Pull Object
|
|
159
|
+
def PullAppInputs(self, request, context):
|
|
160
|
+
"""Pull app inputs
|
|
177
161
|
"""
|
|
178
162
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
179
163
|
context.set_details('Method not implemented!')
|
|
180
164
|
raise NotImplementedError('Method not implemented!')
|
|
181
165
|
|
|
182
|
-
def
|
|
183
|
-
"""
|
|
166
|
+
def PushAppOutputs(self, request, context):
|
|
167
|
+
"""Push app outputs
|
|
184
168
|
"""
|
|
185
169
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
186
170
|
context.set_details('Method not implemented!')
|
|
187
171
|
raise NotImplementedError('Method not implemented!')
|
|
188
172
|
|
|
189
|
-
def
|
|
173
|
+
def PushObject(self, request, context):
|
|
190
174
|
"""///////////////////////////////////////////////////////////////////////////
|
|
191
|
-
Specific endpoints shared by ServerAppIo and
|
|
175
|
+
Specific endpoints shared by ServerAppIo and ClientAppIo
|
|
192
176
|
///////////////////////////////////////////////////////////////////////////
|
|
193
177
|
|
|
194
|
-
|
|
178
|
+
Push Object
|
|
195
179
|
"""
|
|
196
180
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
197
181
|
context.set_details('Method not implemented!')
|
|
198
182
|
raise NotImplementedError('Method not implemented!')
|
|
199
183
|
|
|
200
|
-
def
|
|
201
|
-
"""
|
|
184
|
+
def PullObject(self, request, context):
|
|
185
|
+
"""Pull Object
|
|
202
186
|
"""
|
|
203
187
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
204
188
|
context.set_details('Method not implemented!')
|
|
205
189
|
raise NotImplementedError('Method not implemented!')
|
|
206
190
|
|
|
207
|
-
def
|
|
208
|
-
"""
|
|
191
|
+
def ConfirmMessageReceived(self, request, context):
|
|
192
|
+
"""Confirm Message Received
|
|
209
193
|
"""
|
|
210
194
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
211
195
|
context.set_details('Method not implemented!')
|
|
212
196
|
raise NotImplementedError('Method not implemented!')
|
|
213
197
|
|
|
214
198
|
def UpdateRunStatus(self, request, context):
|
|
215
|
-
"""
|
|
199
|
+
"""///////////////////////////////////////////////////////////////////////////
|
|
200
|
+
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
201
|
+
///////////////////////////////////////////////////////////////////////////
|
|
202
|
+
|
|
203
|
+
Update the status of a given run
|
|
216
204
|
"""
|
|
217
205
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
218
206
|
context.set_details('Method not implemented!')
|
|
@@ -280,6 +268,16 @@ def add_ServerAppIoServicer_to_server(servicer, server):
|
|
|
280
268
|
request_deserializer=flwr_dot_proto_dot_heartbeat__pb2.SendAppHeartbeatRequest.FromString,
|
|
281
269
|
response_serializer=flwr_dot_proto_dot_heartbeat__pb2.SendAppHeartbeatResponse.SerializeToString,
|
|
282
270
|
),
|
|
271
|
+
'PullAppInputs': grpc.unary_unary_rpc_method_handler(
|
|
272
|
+
servicer.PullAppInputs,
|
|
273
|
+
request_deserializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsRequest.FromString,
|
|
274
|
+
response_serializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsResponse.SerializeToString,
|
|
275
|
+
),
|
|
276
|
+
'PushAppOutputs': grpc.unary_unary_rpc_method_handler(
|
|
277
|
+
servicer.PushAppOutputs,
|
|
278
|
+
request_deserializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.FromString,
|
|
279
|
+
response_serializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.SerializeToString,
|
|
280
|
+
),
|
|
283
281
|
'PushObject': grpc.unary_unary_rpc_method_handler(
|
|
284
282
|
servicer.PushObject,
|
|
285
283
|
request_deserializer=flwr_dot_proto_dot_message__pb2.PushObjectRequest.FromString,
|
|
@@ -295,21 +293,6 @@ def add_ServerAppIoServicer_to_server(servicer, server):
|
|
|
295
293
|
request_deserializer=flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedRequest.FromString,
|
|
296
294
|
response_serializer=flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedResponse.SerializeToString,
|
|
297
295
|
),
|
|
298
|
-
'PullAppInputs': grpc.unary_unary_rpc_method_handler(
|
|
299
|
-
servicer.PullAppInputs,
|
|
300
|
-
request_deserializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsRequest.FromString,
|
|
301
|
-
response_serializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsResponse.SerializeToString,
|
|
302
|
-
),
|
|
303
|
-
'PushAppOutputs': grpc.unary_unary_rpc_method_handler(
|
|
304
|
-
servicer.PushAppOutputs,
|
|
305
|
-
request_deserializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.FromString,
|
|
306
|
-
response_serializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.SerializeToString,
|
|
307
|
-
),
|
|
308
|
-
'GetRunStatus': grpc.unary_unary_rpc_method_handler(
|
|
309
|
-
servicer.GetRunStatus,
|
|
310
|
-
request_deserializer=flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.FromString,
|
|
311
|
-
response_serializer=flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.SerializeToString,
|
|
312
|
-
),
|
|
313
296
|
'UpdateRunStatus': grpc.unary_unary_rpc_method_handler(
|
|
314
297
|
servicer.UpdateRunStatus,
|
|
315
298
|
request_deserializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.FromString,
|
|
@@ -460,34 +443,7 @@ class ServerAppIo(object):
|
|
|
460
443
|
_registered_method=True)
|
|
461
444
|
|
|
462
445
|
@staticmethod
|
|
463
|
-
def
|
|
464
|
-
target,
|
|
465
|
-
options=(),
|
|
466
|
-
channel_credentials=None,
|
|
467
|
-
call_credentials=None,
|
|
468
|
-
insecure=False,
|
|
469
|
-
compression=None,
|
|
470
|
-
wait_for_ready=None,
|
|
471
|
-
timeout=None,
|
|
472
|
-
metadata=None):
|
|
473
|
-
return grpc.experimental.unary_unary(
|
|
474
|
-
request,
|
|
475
|
-
target,
|
|
476
|
-
'/flwr.proto.ServerAppIo/PushObject',
|
|
477
|
-
flwr_dot_proto_dot_message__pb2.PushObjectRequest.SerializeToString,
|
|
478
|
-
flwr_dot_proto_dot_message__pb2.PushObjectResponse.FromString,
|
|
479
|
-
options,
|
|
480
|
-
channel_credentials,
|
|
481
|
-
insecure,
|
|
482
|
-
call_credentials,
|
|
483
|
-
compression,
|
|
484
|
-
wait_for_ready,
|
|
485
|
-
timeout,
|
|
486
|
-
metadata,
|
|
487
|
-
_registered_method=True)
|
|
488
|
-
|
|
489
|
-
@staticmethod
|
|
490
|
-
def PullObject(request,
|
|
446
|
+
def PullAppInputs(request,
|
|
491
447
|
target,
|
|
492
448
|
options=(),
|
|
493
449
|
channel_credentials=None,
|
|
@@ -500,9 +456,9 @@ class ServerAppIo(object):
|
|
|
500
456
|
return grpc.experimental.unary_unary(
|
|
501
457
|
request,
|
|
502
458
|
target,
|
|
503
|
-
'/flwr.proto.ServerAppIo/
|
|
504
|
-
|
|
505
|
-
|
|
459
|
+
'/flwr.proto.ServerAppIo/PullAppInputs',
|
|
460
|
+
flwr_dot_proto_dot_appio__pb2.PullAppInputsRequest.SerializeToString,
|
|
461
|
+
flwr_dot_proto_dot_appio__pb2.PullAppInputsResponse.FromString,
|
|
506
462
|
options,
|
|
507
463
|
channel_credentials,
|
|
508
464
|
insecure,
|
|
@@ -514,7 +470,7 @@ class ServerAppIo(object):
|
|
|
514
470
|
_registered_method=True)
|
|
515
471
|
|
|
516
472
|
@staticmethod
|
|
517
|
-
def
|
|
473
|
+
def PushAppOutputs(request,
|
|
518
474
|
target,
|
|
519
475
|
options=(),
|
|
520
476
|
channel_credentials=None,
|
|
@@ -527,9 +483,9 @@ class ServerAppIo(object):
|
|
|
527
483
|
return grpc.experimental.unary_unary(
|
|
528
484
|
request,
|
|
529
485
|
target,
|
|
530
|
-
'/flwr.proto.ServerAppIo/
|
|
531
|
-
|
|
532
|
-
|
|
486
|
+
'/flwr.proto.ServerAppIo/PushAppOutputs',
|
|
487
|
+
flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.SerializeToString,
|
|
488
|
+
flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.FromString,
|
|
533
489
|
options,
|
|
534
490
|
channel_credentials,
|
|
535
491
|
insecure,
|
|
@@ -541,7 +497,7 @@ class ServerAppIo(object):
|
|
|
541
497
|
_registered_method=True)
|
|
542
498
|
|
|
543
499
|
@staticmethod
|
|
544
|
-
def
|
|
500
|
+
def PushObject(request,
|
|
545
501
|
target,
|
|
546
502
|
options=(),
|
|
547
503
|
channel_credentials=None,
|
|
@@ -554,9 +510,9 @@ class ServerAppIo(object):
|
|
|
554
510
|
return grpc.experimental.unary_unary(
|
|
555
511
|
request,
|
|
556
512
|
target,
|
|
557
|
-
'/flwr.proto.ServerAppIo/
|
|
558
|
-
|
|
559
|
-
|
|
513
|
+
'/flwr.proto.ServerAppIo/PushObject',
|
|
514
|
+
flwr_dot_proto_dot_message__pb2.PushObjectRequest.SerializeToString,
|
|
515
|
+
flwr_dot_proto_dot_message__pb2.PushObjectResponse.FromString,
|
|
560
516
|
options,
|
|
561
517
|
channel_credentials,
|
|
562
518
|
insecure,
|
|
@@ -568,7 +524,7 @@ class ServerAppIo(object):
|
|
|
568
524
|
_registered_method=True)
|
|
569
525
|
|
|
570
526
|
@staticmethod
|
|
571
|
-
def
|
|
527
|
+
def PullObject(request,
|
|
572
528
|
target,
|
|
573
529
|
options=(),
|
|
574
530
|
channel_credentials=None,
|
|
@@ -581,9 +537,9 @@ class ServerAppIo(object):
|
|
|
581
537
|
return grpc.experimental.unary_unary(
|
|
582
538
|
request,
|
|
583
539
|
target,
|
|
584
|
-
'/flwr.proto.ServerAppIo/
|
|
585
|
-
|
|
586
|
-
|
|
540
|
+
'/flwr.proto.ServerAppIo/PullObject',
|
|
541
|
+
flwr_dot_proto_dot_message__pb2.PullObjectRequest.SerializeToString,
|
|
542
|
+
flwr_dot_proto_dot_message__pb2.PullObjectResponse.FromString,
|
|
587
543
|
options,
|
|
588
544
|
channel_credentials,
|
|
589
545
|
insecure,
|
|
@@ -595,7 +551,7 @@ class ServerAppIo(object):
|
|
|
595
551
|
_registered_method=True)
|
|
596
552
|
|
|
597
553
|
@staticmethod
|
|
598
|
-
def
|
|
554
|
+
def ConfirmMessageReceived(request,
|
|
599
555
|
target,
|
|
600
556
|
options=(),
|
|
601
557
|
channel_credentials=None,
|
|
@@ -608,9 +564,9 @@ class ServerAppIo(object):
|
|
|
608
564
|
return grpc.experimental.unary_unary(
|
|
609
565
|
request,
|
|
610
566
|
target,
|
|
611
|
-
'/flwr.proto.ServerAppIo/
|
|
612
|
-
|
|
613
|
-
|
|
567
|
+
'/flwr.proto.ServerAppIo/ConfirmMessageReceived',
|
|
568
|
+
flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedRequest.SerializeToString,
|
|
569
|
+
flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedResponse.FromString,
|
|
614
570
|
options,
|
|
615
571
|
channel_credentials,
|
|
616
572
|
insecure,
|
|
@@ -73,6 +73,18 @@ class ServerAppIoStub:
|
|
|
73
73
|
]
|
|
74
74
|
"""App heartbeat"""
|
|
75
75
|
|
|
76
|
+
PullAppInputs: grpc.UnaryUnaryMultiCallable[
|
|
77
|
+
flwr.proto.appio_pb2.PullAppInputsRequest,
|
|
78
|
+
flwr.proto.appio_pb2.PullAppInputsResponse,
|
|
79
|
+
]
|
|
80
|
+
"""Pull app inputs"""
|
|
81
|
+
|
|
82
|
+
PushAppOutputs: grpc.UnaryUnaryMultiCallable[
|
|
83
|
+
flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
84
|
+
flwr.proto.appio_pb2.PushAppOutputsResponse,
|
|
85
|
+
]
|
|
86
|
+
"""Push app outputs"""
|
|
87
|
+
|
|
76
88
|
PushObject: grpc.UnaryUnaryMultiCallable[
|
|
77
89
|
flwr.proto.message_pb2.PushObjectRequest,
|
|
78
90
|
flwr.proto.message_pb2.PushObjectResponse,
|
|
@@ -96,35 +108,17 @@ class ServerAppIoStub:
|
|
|
96
108
|
]
|
|
97
109
|
"""Confirm Message Received"""
|
|
98
110
|
|
|
99
|
-
|
|
100
|
-
flwr.proto.
|
|
101
|
-
flwr.proto.
|
|
111
|
+
UpdateRunStatus: grpc.UnaryUnaryMultiCallable[
|
|
112
|
+
flwr.proto.run_pb2.UpdateRunStatusRequest,
|
|
113
|
+
flwr.proto.run_pb2.UpdateRunStatusResponse,
|
|
102
114
|
]
|
|
103
115
|
"""///////////////////////////////////////////////////////////////////////////
|
|
104
116
|
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
105
117
|
///////////////////////////////////////////////////////////////////////////
|
|
106
118
|
|
|
107
|
-
|
|
119
|
+
Update the status of a given run
|
|
108
120
|
"""
|
|
109
121
|
|
|
110
|
-
PushAppOutputs: grpc.UnaryUnaryMultiCallable[
|
|
111
|
-
flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
112
|
-
flwr.proto.appio_pb2.PushAppOutputsResponse,
|
|
113
|
-
]
|
|
114
|
-
"""Push ServerApp outputs"""
|
|
115
|
-
|
|
116
|
-
GetRunStatus: grpc.UnaryUnaryMultiCallable[
|
|
117
|
-
flwr.proto.run_pb2.GetRunStatusRequest,
|
|
118
|
-
flwr.proto.run_pb2.GetRunStatusResponse,
|
|
119
|
-
]
|
|
120
|
-
"""Get the status of a given run"""
|
|
121
|
-
|
|
122
|
-
UpdateRunStatus: grpc.UnaryUnaryMultiCallable[
|
|
123
|
-
flwr.proto.run_pb2.UpdateRunStatusRequest,
|
|
124
|
-
flwr.proto.run_pb2.UpdateRunStatusResponse,
|
|
125
|
-
]
|
|
126
|
-
"""Update the status of a given run"""
|
|
127
|
-
|
|
128
122
|
PushLogs: grpc.UnaryUnaryMultiCallable[
|
|
129
123
|
flwr.proto.log_pb2.PushLogsRequest,
|
|
130
124
|
flwr.proto.log_pb2.PushLogsResponse,
|
|
@@ -195,6 +189,18 @@ class ServerAppIoAsyncStub:
|
|
|
195
189
|
]
|
|
196
190
|
"""App heartbeat"""
|
|
197
191
|
|
|
192
|
+
PullAppInputs: grpc.aio.UnaryUnaryMultiCallable[
|
|
193
|
+
flwr.proto.appio_pb2.PullAppInputsRequest,
|
|
194
|
+
flwr.proto.appio_pb2.PullAppInputsResponse,
|
|
195
|
+
]
|
|
196
|
+
"""Pull app inputs"""
|
|
197
|
+
|
|
198
|
+
PushAppOutputs: grpc.aio.UnaryUnaryMultiCallable[
|
|
199
|
+
flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
200
|
+
flwr.proto.appio_pb2.PushAppOutputsResponse,
|
|
201
|
+
]
|
|
202
|
+
"""Push app outputs"""
|
|
203
|
+
|
|
198
204
|
PushObject: grpc.aio.UnaryUnaryMultiCallable[
|
|
199
205
|
flwr.proto.message_pb2.PushObjectRequest,
|
|
200
206
|
flwr.proto.message_pb2.PushObjectResponse,
|
|
@@ -218,35 +224,17 @@ class ServerAppIoAsyncStub:
|
|
|
218
224
|
]
|
|
219
225
|
"""Confirm Message Received"""
|
|
220
226
|
|
|
221
|
-
|
|
222
|
-
flwr.proto.
|
|
223
|
-
flwr.proto.
|
|
227
|
+
UpdateRunStatus: grpc.aio.UnaryUnaryMultiCallable[
|
|
228
|
+
flwr.proto.run_pb2.UpdateRunStatusRequest,
|
|
229
|
+
flwr.proto.run_pb2.UpdateRunStatusResponse,
|
|
224
230
|
]
|
|
225
231
|
"""///////////////////////////////////////////////////////////////////////////
|
|
226
232
|
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
227
233
|
///////////////////////////////////////////////////////////////////////////
|
|
228
234
|
|
|
229
|
-
|
|
235
|
+
Update the status of a given run
|
|
230
236
|
"""
|
|
231
237
|
|
|
232
|
-
PushAppOutputs: grpc.aio.UnaryUnaryMultiCallable[
|
|
233
|
-
flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
234
|
-
flwr.proto.appio_pb2.PushAppOutputsResponse,
|
|
235
|
-
]
|
|
236
|
-
"""Push ServerApp outputs"""
|
|
237
|
-
|
|
238
|
-
GetRunStatus: grpc.aio.UnaryUnaryMultiCallable[
|
|
239
|
-
flwr.proto.run_pb2.GetRunStatusRequest,
|
|
240
|
-
flwr.proto.run_pb2.GetRunStatusResponse,
|
|
241
|
-
]
|
|
242
|
-
"""Get the status of a given run"""
|
|
243
|
-
|
|
244
|
-
UpdateRunStatus: grpc.aio.UnaryUnaryMultiCallable[
|
|
245
|
-
flwr.proto.run_pb2.UpdateRunStatusRequest,
|
|
246
|
-
flwr.proto.run_pb2.UpdateRunStatusResponse,
|
|
247
|
-
]
|
|
248
|
-
"""Update the status of a given run"""
|
|
249
|
-
|
|
250
238
|
PushLogs: grpc.aio.UnaryUnaryMultiCallable[
|
|
251
239
|
flwr.proto.log_pb2.PushLogsRequest,
|
|
252
240
|
flwr.proto.log_pb2.PushLogsResponse,
|
|
@@ -325,6 +313,22 @@ class ServerAppIoServicer(metaclass=abc.ABCMeta):
|
|
|
325
313
|
) -> typing.Union[flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse, collections.abc.Awaitable[flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse]]:
|
|
326
314
|
"""App heartbeat"""
|
|
327
315
|
|
|
316
|
+
@abc.abstractmethod
|
|
317
|
+
def PullAppInputs(
|
|
318
|
+
self,
|
|
319
|
+
request: flwr.proto.appio_pb2.PullAppInputsRequest,
|
|
320
|
+
context: _ServicerContext,
|
|
321
|
+
) -> typing.Union[flwr.proto.appio_pb2.PullAppInputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PullAppInputsResponse]]:
|
|
322
|
+
"""Pull app inputs"""
|
|
323
|
+
|
|
324
|
+
@abc.abstractmethod
|
|
325
|
+
def PushAppOutputs(
|
|
326
|
+
self,
|
|
327
|
+
request: flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
328
|
+
context: _ServicerContext,
|
|
329
|
+
) -> typing.Union[flwr.proto.appio_pb2.PushAppOutputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PushAppOutputsResponse]]:
|
|
330
|
+
"""Push app outputs"""
|
|
331
|
+
|
|
328
332
|
@abc.abstractmethod
|
|
329
333
|
def PushObject(
|
|
330
334
|
self,
|
|
@@ -355,42 +359,18 @@ class ServerAppIoServicer(metaclass=abc.ABCMeta):
|
|
|
355
359
|
"""Confirm Message Received"""
|
|
356
360
|
|
|
357
361
|
@abc.abstractmethod
|
|
358
|
-
def
|
|
362
|
+
def UpdateRunStatus(
|
|
359
363
|
self,
|
|
360
|
-
request: flwr.proto.
|
|
364
|
+
request: flwr.proto.run_pb2.UpdateRunStatusRequest,
|
|
361
365
|
context: _ServicerContext,
|
|
362
|
-
) -> typing.Union[flwr.proto.
|
|
366
|
+
) -> typing.Union[flwr.proto.run_pb2.UpdateRunStatusResponse, collections.abc.Awaitable[flwr.proto.run_pb2.UpdateRunStatusResponse]]:
|
|
363
367
|
"""///////////////////////////////////////////////////////////////////////////
|
|
364
368
|
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
365
369
|
///////////////////////////////////////////////////////////////////////////
|
|
366
370
|
|
|
367
|
-
|
|
371
|
+
Update the status of a given run
|
|
368
372
|
"""
|
|
369
373
|
|
|
370
|
-
@abc.abstractmethod
|
|
371
|
-
def PushAppOutputs(
|
|
372
|
-
self,
|
|
373
|
-
request: flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
374
|
-
context: _ServicerContext,
|
|
375
|
-
) -> typing.Union[flwr.proto.appio_pb2.PushAppOutputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PushAppOutputsResponse]]:
|
|
376
|
-
"""Push ServerApp outputs"""
|
|
377
|
-
|
|
378
|
-
@abc.abstractmethod
|
|
379
|
-
def GetRunStatus(
|
|
380
|
-
self,
|
|
381
|
-
request: flwr.proto.run_pb2.GetRunStatusRequest,
|
|
382
|
-
context: _ServicerContext,
|
|
383
|
-
) -> typing.Union[flwr.proto.run_pb2.GetRunStatusResponse, collections.abc.Awaitable[flwr.proto.run_pb2.GetRunStatusResponse]]:
|
|
384
|
-
"""Get the status of a given run"""
|
|
385
|
-
|
|
386
|
-
@abc.abstractmethod
|
|
387
|
-
def UpdateRunStatus(
|
|
388
|
-
self,
|
|
389
|
-
request: flwr.proto.run_pb2.UpdateRunStatusRequest,
|
|
390
|
-
context: _ServicerContext,
|
|
391
|
-
) -> typing.Union[flwr.proto.run_pb2.UpdateRunStatusResponse, collections.abc.Awaitable[flwr.proto.run_pb2.UpdateRunStatusResponse]]:
|
|
392
|
-
"""Update the status of a given run"""
|
|
393
|
-
|
|
394
374
|
@abc.abstractmethod
|
|
395
375
|
def PushLogs(
|
|
396
376
|
self,
|
flwr/proto/simulationio_pb2.py
CHANGED
|
@@ -28,7 +28,7 @@ from flwr.proto import run_pb2 as flwr_dot_proto_dot_run__pb2
|
|
|
28
28
|
from flwr.proto import appio_pb2 as flwr_dot_proto_dot_appio__pb2
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lwr/proto/simulationio.proto\x12\nflwr.proto\x1a\x1a\x66lwr/proto/heartbeat.proto\x1a\x14\x66lwr/proto/log.proto\x1a\x14\x66lwr/proto/run.proto\x1a\x16\x66lwr/proto/appio.proto2\
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lwr/proto/simulationio.proto\x12\nflwr.proto\x1a\x1a\x66lwr/proto/heartbeat.proto\x1a\x14\x66lwr/proto/log.proto\x1a\x14\x66lwr/proto/run.proto\x1a\x16\x66lwr/proto/appio.proto2\xaf\x06\n\x0cSimulationIo\x12_\n\x10ListAppsToLaunch\x12#.flwr.proto.ListAppsToLaunchRequest\x1a$.flwr.proto.ListAppsToLaunchResponse\"\x00\x12S\n\x0cRequestToken\x12\x1f.flwr.proto.RequestTokenRequest\x1a .flwr.proto.RequestTokenResponse\"\x00\x12\x41\n\x06GetRun\x12\x19.flwr.proto.GetRunRequest\x1a\x1a.flwr.proto.GetRunResponse\"\x00\x12_\n\x10SendAppHeartbeat\x12#.flwr.proto.SendAppHeartbeatRequest\x1a$.flwr.proto.SendAppHeartbeatResponse\"\x00\x12V\n\rPullAppInputs\x12 .flwr.proto.PullAppInputsRequest\x1a!.flwr.proto.PullAppInputsResponse\"\x00\x12Y\n\x0ePushAppOutputs\x12!.flwr.proto.PushAppOutputsRequest\x1a\".flwr.proto.PushAppOutputsResponse\"\x00\x12\\\n\x0fUpdateRunStatus\x12\".flwr.proto.UpdateRunStatusRequest\x1a#.flwr.proto.UpdateRunStatusResponse\"\x00\x12G\n\x08PushLogs\x12\x1b.flwr.proto.PushLogsRequest\x1a\x1c.flwr.proto.PushLogsResponse\"\x00\x12k\n\x14GetFederationOptions\x12\'.flwr.proto.GetFederationOptionsRequest\x1a(.flwr.proto.GetFederationOptionsResponse\"\x00\x62\x06proto3')
|
|
32
32
|
|
|
33
33
|
_globals = globals()
|
|
34
34
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -36,5 +36,5 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.simulationio_pb2
|
|
|
36
36
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
37
|
DESCRIPTOR._loaded_options = None
|
|
38
38
|
_globals['_SIMULATIONIO']._serialized_start=142
|
|
39
|
-
_globals['_SIMULATIONIO']._serialized_end=
|
|
39
|
+
_globals['_SIMULATIONIO']._serialized_end=957
|
|
40
40
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -67,11 +67,6 @@ class SimulationIoStub(object):
|
|
|
67
67
|
request_serializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.SerializeToString,
|
|
68
68
|
response_deserializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.FromString,
|
|
69
69
|
_registered_method=True)
|
|
70
|
-
self.GetRunStatus = channel.unary_unary(
|
|
71
|
-
'/flwr.proto.SimulationIo/GetRunStatus',
|
|
72
|
-
request_serializer=flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.SerializeToString,
|
|
73
|
-
response_deserializer=flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.FromString,
|
|
74
|
-
_registered_method=True)
|
|
75
70
|
self.UpdateRunStatus = channel.unary_unary(
|
|
76
71
|
'/flwr.proto.SimulationIo/UpdateRunStatus',
|
|
77
72
|
request_serializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.SerializeToString,
|
|
@@ -129,32 +124,25 @@ class SimulationIoServicer(object):
|
|
|
129
124
|
raise NotImplementedError('Method not implemented!')
|
|
130
125
|
|
|
131
126
|
def PullAppInputs(self, request, context):
|
|
132
|
-
"""
|
|
133
|
-
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
134
|
-
///////////////////////////////////////////////////////////////////////////
|
|
135
|
-
|
|
136
|
-
Pull Simulation inputs
|
|
127
|
+
"""Pull app inputs
|
|
137
128
|
"""
|
|
138
129
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
139
130
|
context.set_details('Method not implemented!')
|
|
140
131
|
raise NotImplementedError('Method not implemented!')
|
|
141
132
|
|
|
142
133
|
def PushAppOutputs(self, request, context):
|
|
143
|
-
"""Push
|
|
144
|
-
"""
|
|
145
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
146
|
-
context.set_details('Method not implemented!')
|
|
147
|
-
raise NotImplementedError('Method not implemented!')
|
|
148
|
-
|
|
149
|
-
def GetRunStatus(self, request, context):
|
|
150
|
-
"""Get Run Status
|
|
134
|
+
"""Push app outputs
|
|
151
135
|
"""
|
|
152
136
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
153
137
|
context.set_details('Method not implemented!')
|
|
154
138
|
raise NotImplementedError('Method not implemented!')
|
|
155
139
|
|
|
156
140
|
def UpdateRunStatus(self, request, context):
|
|
157
|
-
"""
|
|
141
|
+
"""///////////////////////////////////////////////////////////////////////////
|
|
142
|
+
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
143
|
+
///////////////////////////////////////////////////////////////////////////
|
|
144
|
+
|
|
145
|
+
Update the status of a given run
|
|
158
146
|
"""
|
|
159
147
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
160
148
|
context.set_details('Method not implemented!')
|
|
@@ -211,11 +199,6 @@ def add_SimulationIoServicer_to_server(servicer, server):
|
|
|
211
199
|
request_deserializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.FromString,
|
|
212
200
|
response_serializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.SerializeToString,
|
|
213
201
|
),
|
|
214
|
-
'GetRunStatus': grpc.unary_unary_rpc_method_handler(
|
|
215
|
-
servicer.GetRunStatus,
|
|
216
|
-
request_deserializer=flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.FromString,
|
|
217
|
-
response_serializer=flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.SerializeToString,
|
|
218
|
-
),
|
|
219
202
|
'UpdateRunStatus': grpc.unary_unary_rpc_method_handler(
|
|
220
203
|
servicer.UpdateRunStatus,
|
|
221
204
|
request_deserializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.FromString,
|
|
@@ -404,33 +387,6 @@ class SimulationIo(object):
|
|
|
404
387
|
metadata,
|
|
405
388
|
_registered_method=True)
|
|
406
389
|
|
|
407
|
-
@staticmethod
|
|
408
|
-
def GetRunStatus(request,
|
|
409
|
-
target,
|
|
410
|
-
options=(),
|
|
411
|
-
channel_credentials=None,
|
|
412
|
-
call_credentials=None,
|
|
413
|
-
insecure=False,
|
|
414
|
-
compression=None,
|
|
415
|
-
wait_for_ready=None,
|
|
416
|
-
timeout=None,
|
|
417
|
-
metadata=None):
|
|
418
|
-
return grpc.experimental.unary_unary(
|
|
419
|
-
request,
|
|
420
|
-
target,
|
|
421
|
-
'/flwr.proto.SimulationIo/GetRunStatus',
|
|
422
|
-
flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.SerializeToString,
|
|
423
|
-
flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.FromString,
|
|
424
|
-
options,
|
|
425
|
-
channel_credentials,
|
|
426
|
-
insecure,
|
|
427
|
-
call_credentials,
|
|
428
|
-
compression,
|
|
429
|
-
wait_for_ready,
|
|
430
|
-
timeout,
|
|
431
|
-
metadata,
|
|
432
|
-
_registered_method=True)
|
|
433
|
-
|
|
434
390
|
@staticmethod
|
|
435
391
|
def UpdateRunStatus(request,
|
|
436
392
|
target,
|