flwr-nightly 1.26.0.dev20260201__py3-none-any.whl → 1.26.0.dev20260202__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/proto/clientappio_pb2.py +2 -2
- flwr/proto/clientappio_pb2_grpc.py +56 -56
- flwr/proto/clientappio_pb2_grpc.pyi +52 -52
- flwr/proto/serverappio_pb2.py +1 -1
- flwr/proto/serverappio_pb2_grpc.py +56 -56
- flwr/proto/serverappio_pb2_grpc.pyi +52 -52
- flwr/proto/simulationio_pb2_grpc.py +7 -7
- flwr/proto/simulationio_pb2_grpc.pyi +24 -24
- 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.dev20260202.dist-info}/METADATA +4 -4
- {flwr_nightly-1.26.0.dev20260201.dist-info → flwr_nightly-1.26.0.dev20260202.dist-info}/RECORD +14 -14
- {flwr_nightly-1.26.0.dev20260201.dist-info → flwr_nightly-1.26.0.dev20260202.dist-info}/WHEEL +0 -0
- {flwr_nightly-1.26.0.dev20260201.dist-info → flwr_nightly-1.26.0.dev20260202.dist-info}/entry_points.txt +0 -0
flwr/proto/clientappio_pb2.py
CHANGED
|
@@ -28,7 +28,7 @@ from flwr.proto import message_pb2 as flwr_dot_proto_dot_message__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\x1c\x66lwr/proto/clientappio.proto\x12\nflwr.proto\x1a\x1a\x66lwr/proto/heartbeat.proto\x1a\x14\x66lwr/proto/run.proto\x1a\x18\x66lwr/proto/message.proto\x1a\x16\x66lwr/proto/appio.proto2\
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lwr/proto/clientappio.proto\x12\nflwr.proto\x1a\x1a\x66lwr/proto/heartbeat.proto\x1a\x14\x66lwr/proto/run.proto\x1a\x18\x66lwr/proto/message.proto\x1a\x16\x66lwr/proto/appio.proto2\xdf\x07\n\x0b\x43lientAppIo\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\x12M\n\nPushObject\x12\x1d.flwr.proto.PushObjectRequest\x1a\x1e.flwr.proto.PushObjectResponse\"\x00\x12M\n\nPullObject\x12\x1d.flwr.proto.PullObjectRequest\x1a\x1e.flwr.proto.PullObjectResponse\"\x00\x12q\n\x16\x43onfirmMessageReceived\x12).flwr.proto.ConfirmMessageReceivedRequest\x1a*.flwr.proto.ConfirmMessageReceivedResponse\"\x00\x12X\n\x0bPushMessage\x12\".flwr.proto.PushAppMessagesRequest\x1a#.flwr.proto.PushAppMessagesResponse\"\x00\x12X\n\x0bPullMessage\x12\".flwr.proto.PullAppMessagesRequest\x1a#.flwr.proto.PullAppMessagesResponse\"\x00\x62\x06proto3')
|
|
32
32
|
|
|
33
33
|
_globals = globals()
|
|
34
34
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -36,5 +36,5 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.clientappio_pb2'
|
|
|
36
36
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
37
|
DESCRIPTOR._loaded_options = None
|
|
38
38
|
_globals['_CLIENTAPPIO']._serialized_start=145
|
|
39
|
-
_globals['_CLIENTAPPIO']._serialized_end=
|
|
39
|
+
_globals['_CLIENTAPPIO']._serialized_end=1136
|
|
40
40
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -57,6 +57,16 @@ class ClientAppIoStub(object):
|
|
|
57
57
|
request_serializer=flwr_dot_proto_dot_heartbeat__pb2.SendAppHeartbeatRequest.SerializeToString,
|
|
58
58
|
response_deserializer=flwr_dot_proto_dot_heartbeat__pb2.SendAppHeartbeatResponse.FromString,
|
|
59
59
|
_registered_method=True)
|
|
60
|
+
self.PullAppInputs = channel.unary_unary(
|
|
61
|
+
'/flwr.proto.ClientAppIo/PullAppInputs',
|
|
62
|
+
request_serializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsRequest.SerializeToString,
|
|
63
|
+
response_deserializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsResponse.FromString,
|
|
64
|
+
_registered_method=True)
|
|
65
|
+
self.PushAppOutputs = channel.unary_unary(
|
|
66
|
+
'/flwr.proto.ClientAppIo/PushAppOutputs',
|
|
67
|
+
request_serializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.SerializeToString,
|
|
68
|
+
response_deserializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.FromString,
|
|
69
|
+
_registered_method=True)
|
|
60
70
|
self.PushObject = channel.unary_unary(
|
|
61
71
|
'/flwr.proto.ClientAppIo/PushObject',
|
|
62
72
|
request_serializer=flwr_dot_proto_dot_message__pb2.PushObjectRequest.SerializeToString,
|
|
@@ -72,16 +82,6 @@ class ClientAppIoStub(object):
|
|
|
72
82
|
request_serializer=flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedRequest.SerializeToString,
|
|
73
83
|
response_deserializer=flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedResponse.FromString,
|
|
74
84
|
_registered_method=True)
|
|
75
|
-
self.PullClientAppInputs = channel.unary_unary(
|
|
76
|
-
'/flwr.proto.ClientAppIo/PullClientAppInputs',
|
|
77
|
-
request_serializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsRequest.SerializeToString,
|
|
78
|
-
response_deserializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsResponse.FromString,
|
|
79
|
-
_registered_method=True)
|
|
80
|
-
self.PushClientAppOutputs = channel.unary_unary(
|
|
81
|
-
'/flwr.proto.ClientAppIo/PushClientAppOutputs',
|
|
82
|
-
request_serializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.SerializeToString,
|
|
83
|
-
response_deserializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.FromString,
|
|
84
|
-
_registered_method=True)
|
|
85
85
|
self.PushMessage = channel.unary_unary(
|
|
86
86
|
'/flwr.proto.ClientAppIo/PushMessage',
|
|
87
87
|
request_serializer=flwr_dot_proto_dot_appio__pb2.PushAppMessagesRequest.SerializeToString,
|
|
@@ -133,6 +133,20 @@ class ClientAppIoServicer(object):
|
|
|
133
133
|
context.set_details('Method not implemented!')
|
|
134
134
|
raise NotImplementedError('Method not implemented!')
|
|
135
135
|
|
|
136
|
+
def PullAppInputs(self, request, context):
|
|
137
|
+
"""Pull app inputs
|
|
138
|
+
"""
|
|
139
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
140
|
+
context.set_details('Method not implemented!')
|
|
141
|
+
raise NotImplementedError('Method not implemented!')
|
|
142
|
+
|
|
143
|
+
def PushAppOutputs(self, request, context):
|
|
144
|
+
"""Push app outputs
|
|
145
|
+
"""
|
|
146
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
147
|
+
context.set_details('Method not implemented!')
|
|
148
|
+
raise NotImplementedError('Method not implemented!')
|
|
149
|
+
|
|
136
150
|
def PushObject(self, request, context):
|
|
137
151
|
"""///////////////////////////////////////////////////////////////////////////
|
|
138
152
|
Specific endpoints shared by ServerAppIo and ClientAppIo
|
|
@@ -158,26 +172,12 @@ class ClientAppIoServicer(object):
|
|
|
158
172
|
context.set_details('Method not implemented!')
|
|
159
173
|
raise NotImplementedError('Method not implemented!')
|
|
160
174
|
|
|
161
|
-
def
|
|
175
|
+
def PushMessage(self, request, context):
|
|
162
176
|
"""///////////////////////////////////////////////////////////////////////////
|
|
163
177
|
Specific endpoints for ClientAppIo
|
|
164
178
|
///////////////////////////////////////////////////////////////////////////
|
|
165
179
|
|
|
166
|
-
|
|
167
|
-
"""
|
|
168
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
169
|
-
context.set_details('Method not implemented!')
|
|
170
|
-
raise NotImplementedError('Method not implemented!')
|
|
171
|
-
|
|
172
|
-
def PushClientAppOutputs(self, request, context):
|
|
173
|
-
"""Push client app outputs
|
|
174
|
-
"""
|
|
175
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
176
|
-
context.set_details('Method not implemented!')
|
|
177
|
-
raise NotImplementedError('Method not implemented!')
|
|
178
|
-
|
|
179
|
-
def PushMessage(self, request, context):
|
|
180
|
-
"""Push Message
|
|
180
|
+
Push Message
|
|
181
181
|
"""
|
|
182
182
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
183
183
|
context.set_details('Method not implemented!')
|
|
@@ -213,6 +213,16 @@ def add_ClientAppIoServicer_to_server(servicer, server):
|
|
|
213
213
|
request_deserializer=flwr_dot_proto_dot_heartbeat__pb2.SendAppHeartbeatRequest.FromString,
|
|
214
214
|
response_serializer=flwr_dot_proto_dot_heartbeat__pb2.SendAppHeartbeatResponse.SerializeToString,
|
|
215
215
|
),
|
|
216
|
+
'PullAppInputs': grpc.unary_unary_rpc_method_handler(
|
|
217
|
+
servicer.PullAppInputs,
|
|
218
|
+
request_deserializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsRequest.FromString,
|
|
219
|
+
response_serializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsResponse.SerializeToString,
|
|
220
|
+
),
|
|
221
|
+
'PushAppOutputs': grpc.unary_unary_rpc_method_handler(
|
|
222
|
+
servicer.PushAppOutputs,
|
|
223
|
+
request_deserializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.FromString,
|
|
224
|
+
response_serializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.SerializeToString,
|
|
225
|
+
),
|
|
216
226
|
'PushObject': grpc.unary_unary_rpc_method_handler(
|
|
217
227
|
servicer.PushObject,
|
|
218
228
|
request_deserializer=flwr_dot_proto_dot_message__pb2.PushObjectRequest.FromString,
|
|
@@ -228,16 +238,6 @@ def add_ClientAppIoServicer_to_server(servicer, server):
|
|
|
228
238
|
request_deserializer=flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedRequest.FromString,
|
|
229
239
|
response_serializer=flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedResponse.SerializeToString,
|
|
230
240
|
),
|
|
231
|
-
'PullClientAppInputs': grpc.unary_unary_rpc_method_handler(
|
|
232
|
-
servicer.PullClientAppInputs,
|
|
233
|
-
request_deserializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsRequest.FromString,
|
|
234
|
-
response_serializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsResponse.SerializeToString,
|
|
235
|
-
),
|
|
236
|
-
'PushClientAppOutputs': grpc.unary_unary_rpc_method_handler(
|
|
237
|
-
servicer.PushClientAppOutputs,
|
|
238
|
-
request_deserializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.FromString,
|
|
239
|
-
response_serializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.SerializeToString,
|
|
240
|
-
),
|
|
241
241
|
'PushMessage': grpc.unary_unary_rpc_method_handler(
|
|
242
242
|
servicer.PushMessage,
|
|
243
243
|
request_deserializer=flwr_dot_proto_dot_appio__pb2.PushAppMessagesRequest.FromString,
|
|
@@ -368,7 +368,7 @@ class ClientAppIo(object):
|
|
|
368
368
|
_registered_method=True)
|
|
369
369
|
|
|
370
370
|
@staticmethod
|
|
371
|
-
def
|
|
371
|
+
def PullAppInputs(request,
|
|
372
372
|
target,
|
|
373
373
|
options=(),
|
|
374
374
|
channel_credentials=None,
|
|
@@ -381,9 +381,9 @@ class ClientAppIo(object):
|
|
|
381
381
|
return grpc.experimental.unary_unary(
|
|
382
382
|
request,
|
|
383
383
|
target,
|
|
384
|
-
'/flwr.proto.ClientAppIo/
|
|
385
|
-
|
|
386
|
-
|
|
384
|
+
'/flwr.proto.ClientAppIo/PullAppInputs',
|
|
385
|
+
flwr_dot_proto_dot_appio__pb2.PullAppInputsRequest.SerializeToString,
|
|
386
|
+
flwr_dot_proto_dot_appio__pb2.PullAppInputsResponse.FromString,
|
|
387
387
|
options,
|
|
388
388
|
channel_credentials,
|
|
389
389
|
insecure,
|
|
@@ -395,7 +395,7 @@ class ClientAppIo(object):
|
|
|
395
395
|
_registered_method=True)
|
|
396
396
|
|
|
397
397
|
@staticmethod
|
|
398
|
-
def
|
|
398
|
+
def PushAppOutputs(request,
|
|
399
399
|
target,
|
|
400
400
|
options=(),
|
|
401
401
|
channel_credentials=None,
|
|
@@ -408,9 +408,9 @@ class ClientAppIo(object):
|
|
|
408
408
|
return grpc.experimental.unary_unary(
|
|
409
409
|
request,
|
|
410
410
|
target,
|
|
411
|
-
'/flwr.proto.ClientAppIo/
|
|
412
|
-
|
|
413
|
-
|
|
411
|
+
'/flwr.proto.ClientAppIo/PushAppOutputs',
|
|
412
|
+
flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.SerializeToString,
|
|
413
|
+
flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.FromString,
|
|
414
414
|
options,
|
|
415
415
|
channel_credentials,
|
|
416
416
|
insecure,
|
|
@@ -422,7 +422,7 @@ class ClientAppIo(object):
|
|
|
422
422
|
_registered_method=True)
|
|
423
423
|
|
|
424
424
|
@staticmethod
|
|
425
|
-
def
|
|
425
|
+
def PushObject(request,
|
|
426
426
|
target,
|
|
427
427
|
options=(),
|
|
428
428
|
channel_credentials=None,
|
|
@@ -435,9 +435,9 @@ class ClientAppIo(object):
|
|
|
435
435
|
return grpc.experimental.unary_unary(
|
|
436
436
|
request,
|
|
437
437
|
target,
|
|
438
|
-
'/flwr.proto.ClientAppIo/
|
|
439
|
-
flwr_dot_proto_dot_message__pb2.
|
|
440
|
-
flwr_dot_proto_dot_message__pb2.
|
|
438
|
+
'/flwr.proto.ClientAppIo/PushObject',
|
|
439
|
+
flwr_dot_proto_dot_message__pb2.PushObjectRequest.SerializeToString,
|
|
440
|
+
flwr_dot_proto_dot_message__pb2.PushObjectResponse.FromString,
|
|
441
441
|
options,
|
|
442
442
|
channel_credentials,
|
|
443
443
|
insecure,
|
|
@@ -449,7 +449,7 @@ class ClientAppIo(object):
|
|
|
449
449
|
_registered_method=True)
|
|
450
450
|
|
|
451
451
|
@staticmethod
|
|
452
|
-
def
|
|
452
|
+
def PullObject(request,
|
|
453
453
|
target,
|
|
454
454
|
options=(),
|
|
455
455
|
channel_credentials=None,
|
|
@@ -462,9 +462,9 @@ class ClientAppIo(object):
|
|
|
462
462
|
return grpc.experimental.unary_unary(
|
|
463
463
|
request,
|
|
464
464
|
target,
|
|
465
|
-
'/flwr.proto.ClientAppIo/
|
|
466
|
-
|
|
467
|
-
|
|
465
|
+
'/flwr.proto.ClientAppIo/PullObject',
|
|
466
|
+
flwr_dot_proto_dot_message__pb2.PullObjectRequest.SerializeToString,
|
|
467
|
+
flwr_dot_proto_dot_message__pb2.PullObjectResponse.FromString,
|
|
468
468
|
options,
|
|
469
469
|
channel_credentials,
|
|
470
470
|
insecure,
|
|
@@ -476,7 +476,7 @@ class ClientAppIo(object):
|
|
|
476
476
|
_registered_method=True)
|
|
477
477
|
|
|
478
478
|
@staticmethod
|
|
479
|
-
def
|
|
479
|
+
def ConfirmMessageReceived(request,
|
|
480
480
|
target,
|
|
481
481
|
options=(),
|
|
482
482
|
channel_credentials=None,
|
|
@@ -489,9 +489,9 @@ class ClientAppIo(object):
|
|
|
489
489
|
return grpc.experimental.unary_unary(
|
|
490
490
|
request,
|
|
491
491
|
target,
|
|
492
|
-
'/flwr.proto.ClientAppIo/
|
|
493
|
-
|
|
494
|
-
|
|
492
|
+
'/flwr.proto.ClientAppIo/ConfirmMessageReceived',
|
|
493
|
+
flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedRequest.SerializeToString,
|
|
494
|
+
flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedResponse.FromString,
|
|
495
495
|
options,
|
|
496
496
|
channel_credentials,
|
|
497
497
|
insecure,
|
|
@@ -70,6 +70,18 @@ class ClientAppIoStub:
|
|
|
70
70
|
]
|
|
71
71
|
"""App heartbeat"""
|
|
72
72
|
|
|
73
|
+
PullAppInputs: grpc.UnaryUnaryMultiCallable[
|
|
74
|
+
flwr.proto.appio_pb2.PullAppInputsRequest,
|
|
75
|
+
flwr.proto.appio_pb2.PullAppInputsResponse,
|
|
76
|
+
]
|
|
77
|
+
"""Pull app inputs"""
|
|
78
|
+
|
|
79
|
+
PushAppOutputs: grpc.UnaryUnaryMultiCallable[
|
|
80
|
+
flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
81
|
+
flwr.proto.appio_pb2.PushAppOutputsResponse,
|
|
82
|
+
]
|
|
83
|
+
"""Push app outputs"""
|
|
84
|
+
|
|
73
85
|
PushObject: grpc.UnaryUnaryMultiCallable[
|
|
74
86
|
flwr.proto.message_pb2.PushObjectRequest,
|
|
75
87
|
flwr.proto.message_pb2.PushObjectResponse,
|
|
@@ -93,29 +105,17 @@ class ClientAppIoStub:
|
|
|
93
105
|
]
|
|
94
106
|
"""Confirm Message Received"""
|
|
95
107
|
|
|
96
|
-
|
|
97
|
-
flwr.proto.appio_pb2.
|
|
98
|
-
flwr.proto.appio_pb2.
|
|
108
|
+
PushMessage: grpc.UnaryUnaryMultiCallable[
|
|
109
|
+
flwr.proto.appio_pb2.PushAppMessagesRequest,
|
|
110
|
+
flwr.proto.appio_pb2.PushAppMessagesResponse,
|
|
99
111
|
]
|
|
100
112
|
"""///////////////////////////////////////////////////////////////////////////
|
|
101
113
|
Specific endpoints for ClientAppIo
|
|
102
114
|
///////////////////////////////////////////////////////////////////////////
|
|
103
115
|
|
|
104
|
-
|
|
116
|
+
Push Message
|
|
105
117
|
"""
|
|
106
118
|
|
|
107
|
-
PushClientAppOutputs: grpc.UnaryUnaryMultiCallable[
|
|
108
|
-
flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
109
|
-
flwr.proto.appio_pb2.PushAppOutputsResponse,
|
|
110
|
-
]
|
|
111
|
-
"""Push client app outputs"""
|
|
112
|
-
|
|
113
|
-
PushMessage: grpc.UnaryUnaryMultiCallable[
|
|
114
|
-
flwr.proto.appio_pb2.PushAppMessagesRequest,
|
|
115
|
-
flwr.proto.appio_pb2.PushAppMessagesResponse,
|
|
116
|
-
]
|
|
117
|
-
"""Push Message"""
|
|
118
|
-
|
|
119
119
|
PullMessage: grpc.UnaryUnaryMultiCallable[
|
|
120
120
|
flwr.proto.appio_pb2.PullAppMessagesRequest,
|
|
121
121
|
flwr.proto.appio_pb2.PullAppMessagesResponse,
|
|
@@ -157,6 +157,18 @@ class ClientAppIoAsyncStub:
|
|
|
157
157
|
]
|
|
158
158
|
"""App heartbeat"""
|
|
159
159
|
|
|
160
|
+
PullAppInputs: grpc.aio.UnaryUnaryMultiCallable[
|
|
161
|
+
flwr.proto.appio_pb2.PullAppInputsRequest,
|
|
162
|
+
flwr.proto.appio_pb2.PullAppInputsResponse,
|
|
163
|
+
]
|
|
164
|
+
"""Pull app inputs"""
|
|
165
|
+
|
|
166
|
+
PushAppOutputs: grpc.aio.UnaryUnaryMultiCallable[
|
|
167
|
+
flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
168
|
+
flwr.proto.appio_pb2.PushAppOutputsResponse,
|
|
169
|
+
]
|
|
170
|
+
"""Push app outputs"""
|
|
171
|
+
|
|
160
172
|
PushObject: grpc.aio.UnaryUnaryMultiCallable[
|
|
161
173
|
flwr.proto.message_pb2.PushObjectRequest,
|
|
162
174
|
flwr.proto.message_pb2.PushObjectResponse,
|
|
@@ -180,29 +192,17 @@ class ClientAppIoAsyncStub:
|
|
|
180
192
|
]
|
|
181
193
|
"""Confirm Message Received"""
|
|
182
194
|
|
|
183
|
-
|
|
184
|
-
flwr.proto.appio_pb2.
|
|
185
|
-
flwr.proto.appio_pb2.
|
|
195
|
+
PushMessage: grpc.aio.UnaryUnaryMultiCallable[
|
|
196
|
+
flwr.proto.appio_pb2.PushAppMessagesRequest,
|
|
197
|
+
flwr.proto.appio_pb2.PushAppMessagesResponse,
|
|
186
198
|
]
|
|
187
199
|
"""///////////////////////////////////////////////////////////////////////////
|
|
188
200
|
Specific endpoints for ClientAppIo
|
|
189
201
|
///////////////////////////////////////////////////////////////////////////
|
|
190
202
|
|
|
191
|
-
|
|
203
|
+
Push Message
|
|
192
204
|
"""
|
|
193
205
|
|
|
194
|
-
PushClientAppOutputs: grpc.aio.UnaryUnaryMultiCallable[
|
|
195
|
-
flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
196
|
-
flwr.proto.appio_pb2.PushAppOutputsResponse,
|
|
197
|
-
]
|
|
198
|
-
"""Push client app outputs"""
|
|
199
|
-
|
|
200
|
-
PushMessage: grpc.aio.UnaryUnaryMultiCallable[
|
|
201
|
-
flwr.proto.appio_pb2.PushAppMessagesRequest,
|
|
202
|
-
flwr.proto.appio_pb2.PushAppMessagesResponse,
|
|
203
|
-
]
|
|
204
|
-
"""Push Message"""
|
|
205
|
-
|
|
206
206
|
PullMessage: grpc.aio.UnaryUnaryMultiCallable[
|
|
207
207
|
flwr.proto.appio_pb2.PullAppMessagesRequest,
|
|
208
208
|
flwr.proto.appio_pb2.PullAppMessagesResponse,
|
|
@@ -252,6 +252,22 @@ class ClientAppIoServicer(metaclass=abc.ABCMeta):
|
|
|
252
252
|
) -> typing.Union[flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse, collections.abc.Awaitable[flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse]]:
|
|
253
253
|
"""App heartbeat"""
|
|
254
254
|
|
|
255
|
+
@abc.abstractmethod
|
|
256
|
+
def PullAppInputs(
|
|
257
|
+
self,
|
|
258
|
+
request: flwr.proto.appio_pb2.PullAppInputsRequest,
|
|
259
|
+
context: _ServicerContext,
|
|
260
|
+
) -> typing.Union[flwr.proto.appio_pb2.PullAppInputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PullAppInputsResponse]]:
|
|
261
|
+
"""Pull app inputs"""
|
|
262
|
+
|
|
263
|
+
@abc.abstractmethod
|
|
264
|
+
def PushAppOutputs(
|
|
265
|
+
self,
|
|
266
|
+
request: flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
267
|
+
context: _ServicerContext,
|
|
268
|
+
) -> typing.Union[flwr.proto.appio_pb2.PushAppOutputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PushAppOutputsResponse]]:
|
|
269
|
+
"""Push app outputs"""
|
|
270
|
+
|
|
255
271
|
@abc.abstractmethod
|
|
256
272
|
def PushObject(
|
|
257
273
|
self,
|
|
@@ -282,34 +298,18 @@ class ClientAppIoServicer(metaclass=abc.ABCMeta):
|
|
|
282
298
|
"""Confirm Message Received"""
|
|
283
299
|
|
|
284
300
|
@abc.abstractmethod
|
|
285
|
-
def
|
|
301
|
+
def PushMessage(
|
|
286
302
|
self,
|
|
287
|
-
request: flwr.proto.appio_pb2.
|
|
303
|
+
request: flwr.proto.appio_pb2.PushAppMessagesRequest,
|
|
288
304
|
context: _ServicerContext,
|
|
289
|
-
) -> typing.Union[flwr.proto.appio_pb2.
|
|
305
|
+
) -> typing.Union[flwr.proto.appio_pb2.PushAppMessagesResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PushAppMessagesResponse]]:
|
|
290
306
|
"""///////////////////////////////////////////////////////////////////////////
|
|
291
307
|
Specific endpoints for ClientAppIo
|
|
292
308
|
///////////////////////////////////////////////////////////////////////////
|
|
293
309
|
|
|
294
|
-
|
|
310
|
+
Push Message
|
|
295
311
|
"""
|
|
296
312
|
|
|
297
|
-
@abc.abstractmethod
|
|
298
|
-
def PushClientAppOutputs(
|
|
299
|
-
self,
|
|
300
|
-
request: flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
301
|
-
context: _ServicerContext,
|
|
302
|
-
) -> typing.Union[flwr.proto.appio_pb2.PushAppOutputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PushAppOutputsResponse]]:
|
|
303
|
-
"""Push client app outputs"""
|
|
304
|
-
|
|
305
|
-
@abc.abstractmethod
|
|
306
|
-
def PushMessage(
|
|
307
|
-
self,
|
|
308
|
-
request: flwr.proto.appio_pb2.PushAppMessagesRequest,
|
|
309
|
-
context: _ServicerContext,
|
|
310
|
-
) -> typing.Union[flwr.proto.appio_pb2.PushAppMessagesResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PushAppMessagesResponse]]:
|
|
311
|
-
"""Push Message"""
|
|
312
|
-
|
|
313
313
|
@abc.abstractmethod
|
|
314
314
|
def PullMessage(
|
|
315
315
|
self,
|
flwr/proto/serverappio_pb2.py
CHANGED
|
@@ -31,7 +31,7 @@ from flwr.proto import fab_pb2 as flwr_dot_proto_dot_fab__pb2
|
|
|
31
31
|
from flwr.proto import appio_pb2 as flwr_dot_proto_dot_appio__pb2
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lwr/proto/serverappio.proto\x12\nflwr.proto\x1a\x1a\x66lwr/proto/heartbeat.proto\x1a\x14\x66lwr/proto/log.proto\x1a\x15\x66lwr/proto/node.proto\x1a\x18\x66lwr/proto/message.proto\x1a\x14\x66lwr/proto/run.proto\x1a\x14\x66lwr/proto/fab.proto\x1a\x16\x66lwr/proto/appio.proto\"!\n\x0fGetNodesRequest\x12\x0e\n\x06run_id\x18\x01 \x01(\x04\"3\n\x10GetNodesResponse\x12\x1f\n\x05nodes\x18\x01 \x03(\x0b\x32\x10.flwr.proto.Node2\xe9\n\n\x0bServerAppIo\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\
|
|
34
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lwr/proto/serverappio.proto\x12\nflwr.proto\x1a\x1a\x66lwr/proto/heartbeat.proto\x1a\x14\x66lwr/proto/log.proto\x1a\x15\x66lwr/proto/node.proto\x1a\x18\x66lwr/proto/message.proto\x1a\x14\x66lwr/proto/run.proto\x1a\x14\x66lwr/proto/fab.proto\x1a\x16\x66lwr/proto/appio.proto\"!\n\x0fGetNodesRequest\x12\x0e\n\x06run_id\x18\x01 \x01(\x04\"3\n\x10GetNodesResponse\x12\x1f\n\x05nodes\x18\x01 \x03(\x0b\x32\x10.flwr.proto.Node2\xe9\n\n\x0bServerAppIo\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\x12M\n\nPushObject\x12\x1d.flwr.proto.PushObjectRequest\x1a\x1e.flwr.proto.PushObjectResponse\"\x00\x12M\n\nPullObject\x12\x1d.flwr.proto.PullObjectRequest\x1a\x1e.flwr.proto.PullObjectResponse\"\x00\x12q\n\x16\x43onfirmMessageReceived\x12).flwr.proto.ConfirmMessageReceivedRequest\x1a*.flwr.proto.ConfirmMessageReceivedResponse\"\x00\x12S\n\x0cGetRunStatus\x12\x1f.flwr.proto.GetRunStatusRequest\x1a .flwr.proto.GetRunStatusResponse\"\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\x12Y\n\x0cPushMessages\x12\".flwr.proto.PushAppMessagesRequest\x1a#.flwr.proto.PushAppMessagesResponse\"\x00\x12Y\n\x0cPullMessages\x12\".flwr.proto.PullAppMessagesRequest\x1a#.flwr.proto.PullAppMessagesResponse\"\x00\x12G\n\x08GetNodes\x12\x1b.flwr.proto.GetNodesRequest\x1a\x1c.flwr.proto.GetNodesResponse\"\x00\x12\x41\n\x06GetFab\x12\x19.flwr.proto.GetFabRequest\x1a\x1a.flwr.proto.GetFabResponse\"\x00\x62\x06proto3')
|
|
35
35
|
|
|
36
36
|
_globals = globals()
|
|
37
37
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -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,16 +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
88
|
self.GetRunStatus = channel.unary_unary(
|
|
89
89
|
'/flwr.proto.ServerAppIo/GetRunStatus',
|
|
90
90
|
request_serializer=flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.SerializeToString,
|
|
@@ -161,6 +161,20 @@ class ServerAppIoServicer(object):
|
|
|
161
161
|
context.set_details('Method not implemented!')
|
|
162
162
|
raise NotImplementedError('Method not implemented!')
|
|
163
163
|
|
|
164
|
+
def PullAppInputs(self, request, context):
|
|
165
|
+
"""Pull app inputs
|
|
166
|
+
"""
|
|
167
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
168
|
+
context.set_details('Method not implemented!')
|
|
169
|
+
raise NotImplementedError('Method not implemented!')
|
|
170
|
+
|
|
171
|
+
def PushAppOutputs(self, request, context):
|
|
172
|
+
"""Push app outputs
|
|
173
|
+
"""
|
|
174
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
175
|
+
context.set_details('Method not implemented!')
|
|
176
|
+
raise NotImplementedError('Method not implemented!')
|
|
177
|
+
|
|
164
178
|
def PushObject(self, request, context):
|
|
165
179
|
"""///////////////////////////////////////////////////////////////////////////
|
|
166
180
|
Specific endpoints shared by ServerAppIo and ClientAppIo
|
|
@@ -186,26 +200,12 @@ class ServerAppIoServicer(object):
|
|
|
186
200
|
context.set_details('Method not implemented!')
|
|
187
201
|
raise NotImplementedError('Method not implemented!')
|
|
188
202
|
|
|
189
|
-
def
|
|
203
|
+
def GetRunStatus(self, request, context):
|
|
190
204
|
"""///////////////////////////////////////////////////////////////////////////
|
|
191
205
|
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
192
206
|
///////////////////////////////////////////////////////////////////////////
|
|
193
207
|
|
|
194
|
-
|
|
195
|
-
"""
|
|
196
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
197
|
-
context.set_details('Method not implemented!')
|
|
198
|
-
raise NotImplementedError('Method not implemented!')
|
|
199
|
-
|
|
200
|
-
def PushAppOutputs(self, request, context):
|
|
201
|
-
"""Push ServerApp outputs
|
|
202
|
-
"""
|
|
203
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
204
|
-
context.set_details('Method not implemented!')
|
|
205
|
-
raise NotImplementedError('Method not implemented!')
|
|
206
|
-
|
|
207
|
-
def GetRunStatus(self, request, context):
|
|
208
|
-
"""Get the status of a given run
|
|
208
|
+
Get the status of a given run
|
|
209
209
|
"""
|
|
210
210
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
211
211
|
context.set_details('Method not implemented!')
|
|
@@ -280,6 +280,16 @@ def add_ServerAppIoServicer_to_server(servicer, server):
|
|
|
280
280
|
request_deserializer=flwr_dot_proto_dot_heartbeat__pb2.SendAppHeartbeatRequest.FromString,
|
|
281
281
|
response_serializer=flwr_dot_proto_dot_heartbeat__pb2.SendAppHeartbeatResponse.SerializeToString,
|
|
282
282
|
),
|
|
283
|
+
'PullAppInputs': grpc.unary_unary_rpc_method_handler(
|
|
284
|
+
servicer.PullAppInputs,
|
|
285
|
+
request_deserializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsRequest.FromString,
|
|
286
|
+
response_serializer=flwr_dot_proto_dot_appio__pb2.PullAppInputsResponse.SerializeToString,
|
|
287
|
+
),
|
|
288
|
+
'PushAppOutputs': grpc.unary_unary_rpc_method_handler(
|
|
289
|
+
servicer.PushAppOutputs,
|
|
290
|
+
request_deserializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.FromString,
|
|
291
|
+
response_serializer=flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.SerializeToString,
|
|
292
|
+
),
|
|
283
293
|
'PushObject': grpc.unary_unary_rpc_method_handler(
|
|
284
294
|
servicer.PushObject,
|
|
285
295
|
request_deserializer=flwr_dot_proto_dot_message__pb2.PushObjectRequest.FromString,
|
|
@@ -295,16 +305,6 @@ def add_ServerAppIoServicer_to_server(servicer, server):
|
|
|
295
305
|
request_deserializer=flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedRequest.FromString,
|
|
296
306
|
response_serializer=flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedResponse.SerializeToString,
|
|
297
307
|
),
|
|
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
308
|
'GetRunStatus': grpc.unary_unary_rpc_method_handler(
|
|
309
309
|
servicer.GetRunStatus,
|
|
310
310
|
request_deserializer=flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.FromString,
|
|
@@ -460,7 +460,7 @@ class ServerAppIo(object):
|
|
|
460
460
|
_registered_method=True)
|
|
461
461
|
|
|
462
462
|
@staticmethod
|
|
463
|
-
def
|
|
463
|
+
def PullAppInputs(request,
|
|
464
464
|
target,
|
|
465
465
|
options=(),
|
|
466
466
|
channel_credentials=None,
|
|
@@ -473,9 +473,9 @@ class ServerAppIo(object):
|
|
|
473
473
|
return grpc.experimental.unary_unary(
|
|
474
474
|
request,
|
|
475
475
|
target,
|
|
476
|
-
'/flwr.proto.ServerAppIo/
|
|
477
|
-
|
|
478
|
-
|
|
476
|
+
'/flwr.proto.ServerAppIo/PullAppInputs',
|
|
477
|
+
flwr_dot_proto_dot_appio__pb2.PullAppInputsRequest.SerializeToString,
|
|
478
|
+
flwr_dot_proto_dot_appio__pb2.PullAppInputsResponse.FromString,
|
|
479
479
|
options,
|
|
480
480
|
channel_credentials,
|
|
481
481
|
insecure,
|
|
@@ -487,7 +487,7 @@ class ServerAppIo(object):
|
|
|
487
487
|
_registered_method=True)
|
|
488
488
|
|
|
489
489
|
@staticmethod
|
|
490
|
-
def
|
|
490
|
+
def PushAppOutputs(request,
|
|
491
491
|
target,
|
|
492
492
|
options=(),
|
|
493
493
|
channel_credentials=None,
|
|
@@ -500,9 +500,9 @@ class ServerAppIo(object):
|
|
|
500
500
|
return grpc.experimental.unary_unary(
|
|
501
501
|
request,
|
|
502
502
|
target,
|
|
503
|
-
'/flwr.proto.ServerAppIo/
|
|
504
|
-
|
|
505
|
-
|
|
503
|
+
'/flwr.proto.ServerAppIo/PushAppOutputs',
|
|
504
|
+
flwr_dot_proto_dot_appio__pb2.PushAppOutputsRequest.SerializeToString,
|
|
505
|
+
flwr_dot_proto_dot_appio__pb2.PushAppOutputsResponse.FromString,
|
|
506
506
|
options,
|
|
507
507
|
channel_credentials,
|
|
508
508
|
insecure,
|
|
@@ -514,7 +514,7 @@ class ServerAppIo(object):
|
|
|
514
514
|
_registered_method=True)
|
|
515
515
|
|
|
516
516
|
@staticmethod
|
|
517
|
-
def
|
|
517
|
+
def PushObject(request,
|
|
518
518
|
target,
|
|
519
519
|
options=(),
|
|
520
520
|
channel_credentials=None,
|
|
@@ -527,9 +527,9 @@ class ServerAppIo(object):
|
|
|
527
527
|
return grpc.experimental.unary_unary(
|
|
528
528
|
request,
|
|
529
529
|
target,
|
|
530
|
-
'/flwr.proto.ServerAppIo/
|
|
531
|
-
flwr_dot_proto_dot_message__pb2.
|
|
532
|
-
flwr_dot_proto_dot_message__pb2.
|
|
530
|
+
'/flwr.proto.ServerAppIo/PushObject',
|
|
531
|
+
flwr_dot_proto_dot_message__pb2.PushObjectRequest.SerializeToString,
|
|
532
|
+
flwr_dot_proto_dot_message__pb2.PushObjectResponse.FromString,
|
|
533
533
|
options,
|
|
534
534
|
channel_credentials,
|
|
535
535
|
insecure,
|
|
@@ -541,7 +541,7 @@ class ServerAppIo(object):
|
|
|
541
541
|
_registered_method=True)
|
|
542
542
|
|
|
543
543
|
@staticmethod
|
|
544
|
-
def
|
|
544
|
+
def PullObject(request,
|
|
545
545
|
target,
|
|
546
546
|
options=(),
|
|
547
547
|
channel_credentials=None,
|
|
@@ -554,9 +554,9 @@ class ServerAppIo(object):
|
|
|
554
554
|
return grpc.experimental.unary_unary(
|
|
555
555
|
request,
|
|
556
556
|
target,
|
|
557
|
-
'/flwr.proto.ServerAppIo/
|
|
558
|
-
|
|
559
|
-
|
|
557
|
+
'/flwr.proto.ServerAppIo/PullObject',
|
|
558
|
+
flwr_dot_proto_dot_message__pb2.PullObjectRequest.SerializeToString,
|
|
559
|
+
flwr_dot_proto_dot_message__pb2.PullObjectResponse.FromString,
|
|
560
560
|
options,
|
|
561
561
|
channel_credentials,
|
|
562
562
|
insecure,
|
|
@@ -568,7 +568,7 @@ class ServerAppIo(object):
|
|
|
568
568
|
_registered_method=True)
|
|
569
569
|
|
|
570
570
|
@staticmethod
|
|
571
|
-
def
|
|
571
|
+
def ConfirmMessageReceived(request,
|
|
572
572
|
target,
|
|
573
573
|
options=(),
|
|
574
574
|
channel_credentials=None,
|
|
@@ -581,9 +581,9 @@ class ServerAppIo(object):
|
|
|
581
581
|
return grpc.experimental.unary_unary(
|
|
582
582
|
request,
|
|
583
583
|
target,
|
|
584
|
-
'/flwr.proto.ServerAppIo/
|
|
585
|
-
|
|
586
|
-
|
|
584
|
+
'/flwr.proto.ServerAppIo/ConfirmMessageReceived',
|
|
585
|
+
flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedRequest.SerializeToString,
|
|
586
|
+
flwr_dot_proto_dot_message__pb2.ConfirmMessageReceivedResponse.FromString,
|
|
587
587
|
options,
|
|
588
588
|
channel_credentials,
|
|
589
589
|
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,29 +108,17 @@ class ServerAppIoStub:
|
|
|
96
108
|
]
|
|
97
109
|
"""Confirm Message Received"""
|
|
98
110
|
|
|
99
|
-
|
|
100
|
-
flwr.proto.
|
|
101
|
-
flwr.proto.
|
|
111
|
+
GetRunStatus: grpc.UnaryUnaryMultiCallable[
|
|
112
|
+
flwr.proto.run_pb2.GetRunStatusRequest,
|
|
113
|
+
flwr.proto.run_pb2.GetRunStatusResponse,
|
|
102
114
|
]
|
|
103
115
|
"""///////////////////////////////////////////////////////////////////////////
|
|
104
116
|
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
105
117
|
///////////////////////////////////////////////////////////////////////////
|
|
106
118
|
|
|
107
|
-
|
|
119
|
+
Get 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
122
|
UpdateRunStatus: grpc.UnaryUnaryMultiCallable[
|
|
123
123
|
flwr.proto.run_pb2.UpdateRunStatusRequest,
|
|
124
124
|
flwr.proto.run_pb2.UpdateRunStatusResponse,
|
|
@@ -195,6 +195,18 @@ class ServerAppIoAsyncStub:
|
|
|
195
195
|
]
|
|
196
196
|
"""App heartbeat"""
|
|
197
197
|
|
|
198
|
+
PullAppInputs: grpc.aio.UnaryUnaryMultiCallable[
|
|
199
|
+
flwr.proto.appio_pb2.PullAppInputsRequest,
|
|
200
|
+
flwr.proto.appio_pb2.PullAppInputsResponse,
|
|
201
|
+
]
|
|
202
|
+
"""Pull app inputs"""
|
|
203
|
+
|
|
204
|
+
PushAppOutputs: grpc.aio.UnaryUnaryMultiCallable[
|
|
205
|
+
flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
206
|
+
flwr.proto.appio_pb2.PushAppOutputsResponse,
|
|
207
|
+
]
|
|
208
|
+
"""Push app outputs"""
|
|
209
|
+
|
|
198
210
|
PushObject: grpc.aio.UnaryUnaryMultiCallable[
|
|
199
211
|
flwr.proto.message_pb2.PushObjectRequest,
|
|
200
212
|
flwr.proto.message_pb2.PushObjectResponse,
|
|
@@ -218,29 +230,17 @@ class ServerAppIoAsyncStub:
|
|
|
218
230
|
]
|
|
219
231
|
"""Confirm Message Received"""
|
|
220
232
|
|
|
221
|
-
|
|
222
|
-
flwr.proto.
|
|
223
|
-
flwr.proto.
|
|
233
|
+
GetRunStatus: grpc.aio.UnaryUnaryMultiCallable[
|
|
234
|
+
flwr.proto.run_pb2.GetRunStatusRequest,
|
|
235
|
+
flwr.proto.run_pb2.GetRunStatusResponse,
|
|
224
236
|
]
|
|
225
237
|
"""///////////////////////////////////////////////////////////////////////////
|
|
226
238
|
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
227
239
|
///////////////////////////////////////////////////////////////////////////
|
|
228
240
|
|
|
229
|
-
|
|
241
|
+
Get the status of a given run
|
|
230
242
|
"""
|
|
231
243
|
|
|
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
244
|
UpdateRunStatus: grpc.aio.UnaryUnaryMultiCallable[
|
|
245
245
|
flwr.proto.run_pb2.UpdateRunStatusRequest,
|
|
246
246
|
flwr.proto.run_pb2.UpdateRunStatusResponse,
|
|
@@ -325,6 +325,22 @@ class ServerAppIoServicer(metaclass=abc.ABCMeta):
|
|
|
325
325
|
) -> typing.Union[flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse, collections.abc.Awaitable[flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse]]:
|
|
326
326
|
"""App heartbeat"""
|
|
327
327
|
|
|
328
|
+
@abc.abstractmethod
|
|
329
|
+
def PullAppInputs(
|
|
330
|
+
self,
|
|
331
|
+
request: flwr.proto.appio_pb2.PullAppInputsRequest,
|
|
332
|
+
context: _ServicerContext,
|
|
333
|
+
) -> typing.Union[flwr.proto.appio_pb2.PullAppInputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PullAppInputsResponse]]:
|
|
334
|
+
"""Pull app inputs"""
|
|
335
|
+
|
|
336
|
+
@abc.abstractmethod
|
|
337
|
+
def PushAppOutputs(
|
|
338
|
+
self,
|
|
339
|
+
request: flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
340
|
+
context: _ServicerContext,
|
|
341
|
+
) -> typing.Union[flwr.proto.appio_pb2.PushAppOutputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PushAppOutputsResponse]]:
|
|
342
|
+
"""Push app outputs"""
|
|
343
|
+
|
|
328
344
|
@abc.abstractmethod
|
|
329
345
|
def PushObject(
|
|
330
346
|
self,
|
|
@@ -355,34 +371,18 @@ class ServerAppIoServicer(metaclass=abc.ABCMeta):
|
|
|
355
371
|
"""Confirm Message Received"""
|
|
356
372
|
|
|
357
373
|
@abc.abstractmethod
|
|
358
|
-
def
|
|
374
|
+
def GetRunStatus(
|
|
359
375
|
self,
|
|
360
|
-
request: flwr.proto.
|
|
376
|
+
request: flwr.proto.run_pb2.GetRunStatusRequest,
|
|
361
377
|
context: _ServicerContext,
|
|
362
|
-
) -> typing.Union[flwr.proto.
|
|
378
|
+
) -> typing.Union[flwr.proto.run_pb2.GetRunStatusResponse, collections.abc.Awaitable[flwr.proto.run_pb2.GetRunStatusResponse]]:
|
|
363
379
|
"""///////////////////////////////////////////////////////////////////////////
|
|
364
380
|
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
365
381
|
///////////////////////////////////////////////////////////////////////////
|
|
366
382
|
|
|
367
|
-
|
|
383
|
+
Get the status of a given run
|
|
368
384
|
"""
|
|
369
385
|
|
|
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
386
|
@abc.abstractmethod
|
|
387
387
|
def UpdateRunStatus(
|
|
388
388
|
self,
|
|
@@ -129,25 +129,25 @@ class SimulationIoServicer(object):
|
|
|
129
129
|
raise NotImplementedError('Method not implemented!')
|
|
130
130
|
|
|
131
131
|
def PullAppInputs(self, request, context):
|
|
132
|
-
"""
|
|
133
|
-
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
134
|
-
///////////////////////////////////////////////////////////////////////////
|
|
135
|
-
|
|
136
|
-
Pull Simulation inputs
|
|
132
|
+
"""Pull app inputs
|
|
137
133
|
"""
|
|
138
134
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
139
135
|
context.set_details('Method not implemented!')
|
|
140
136
|
raise NotImplementedError('Method not implemented!')
|
|
141
137
|
|
|
142
138
|
def PushAppOutputs(self, request, context):
|
|
143
|
-
"""Push
|
|
139
|
+
"""Push app outputs
|
|
144
140
|
"""
|
|
145
141
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
146
142
|
context.set_details('Method not implemented!')
|
|
147
143
|
raise NotImplementedError('Method not implemented!')
|
|
148
144
|
|
|
149
145
|
def GetRunStatus(self, request, context):
|
|
150
|
-
"""
|
|
146
|
+
"""///////////////////////////////////////////////////////////////////////////
|
|
147
|
+
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
148
|
+
///////////////////////////////////////////////////////////////////////////
|
|
149
|
+
|
|
150
|
+
Get Run Status
|
|
151
151
|
"""
|
|
152
152
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
153
153
|
context.set_details('Method not implemented!')
|
|
@@ -74,24 +74,24 @@ class SimulationIoStub:
|
|
|
74
74
|
flwr.proto.appio_pb2.PullAppInputsRequest,
|
|
75
75
|
flwr.proto.appio_pb2.PullAppInputsResponse,
|
|
76
76
|
]
|
|
77
|
-
"""
|
|
78
|
-
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
79
|
-
///////////////////////////////////////////////////////////////////////////
|
|
80
|
-
|
|
81
|
-
Pull Simulation inputs
|
|
82
|
-
"""
|
|
77
|
+
"""Pull app inputs"""
|
|
83
78
|
|
|
84
79
|
PushAppOutputs: grpc.UnaryUnaryMultiCallable[
|
|
85
80
|
flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
86
81
|
flwr.proto.appio_pb2.PushAppOutputsResponse,
|
|
87
82
|
]
|
|
88
|
-
"""Push
|
|
83
|
+
"""Push app outputs"""
|
|
89
84
|
|
|
90
85
|
GetRunStatus: grpc.UnaryUnaryMultiCallable[
|
|
91
86
|
flwr.proto.run_pb2.GetRunStatusRequest,
|
|
92
87
|
flwr.proto.run_pb2.GetRunStatusResponse,
|
|
93
88
|
]
|
|
94
|
-
"""
|
|
89
|
+
"""///////////////////////////////////////////////////////////////////////////
|
|
90
|
+
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
91
|
+
///////////////////////////////////////////////////////////////////////////
|
|
92
|
+
|
|
93
|
+
Get Run Status
|
|
94
|
+
"""
|
|
95
95
|
|
|
96
96
|
UpdateRunStatus: grpc.UnaryUnaryMultiCallable[
|
|
97
97
|
flwr.proto.run_pb2.UpdateRunStatusRequest,
|
|
@@ -155,24 +155,24 @@ class SimulationIoAsyncStub:
|
|
|
155
155
|
flwr.proto.appio_pb2.PullAppInputsRequest,
|
|
156
156
|
flwr.proto.appio_pb2.PullAppInputsResponse,
|
|
157
157
|
]
|
|
158
|
-
"""
|
|
159
|
-
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
160
|
-
///////////////////////////////////////////////////////////////////////////
|
|
161
|
-
|
|
162
|
-
Pull Simulation inputs
|
|
163
|
-
"""
|
|
158
|
+
"""Pull app inputs"""
|
|
164
159
|
|
|
165
160
|
PushAppOutputs: grpc.aio.UnaryUnaryMultiCallable[
|
|
166
161
|
flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
167
162
|
flwr.proto.appio_pb2.PushAppOutputsResponse,
|
|
168
163
|
]
|
|
169
|
-
"""Push
|
|
164
|
+
"""Push app outputs"""
|
|
170
165
|
|
|
171
166
|
GetRunStatus: grpc.aio.UnaryUnaryMultiCallable[
|
|
172
167
|
flwr.proto.run_pb2.GetRunStatusRequest,
|
|
173
168
|
flwr.proto.run_pb2.GetRunStatusResponse,
|
|
174
169
|
]
|
|
175
|
-
"""
|
|
170
|
+
"""///////////////////////////////////////////////////////////////////////////
|
|
171
|
+
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
172
|
+
///////////////////////////////////////////////////////////////////////////
|
|
173
|
+
|
|
174
|
+
Get Run Status
|
|
175
|
+
"""
|
|
176
176
|
|
|
177
177
|
UpdateRunStatus: grpc.aio.UnaryUnaryMultiCallable[
|
|
178
178
|
flwr.proto.run_pb2.UpdateRunStatusRequest,
|
|
@@ -246,12 +246,7 @@ class SimulationIoServicer(metaclass=abc.ABCMeta):
|
|
|
246
246
|
request: flwr.proto.appio_pb2.PullAppInputsRequest,
|
|
247
247
|
context: _ServicerContext,
|
|
248
248
|
) -> typing.Union[flwr.proto.appio_pb2.PullAppInputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PullAppInputsResponse]]:
|
|
249
|
-
"""
|
|
250
|
-
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
251
|
-
///////////////////////////////////////////////////////////////////////////
|
|
252
|
-
|
|
253
|
-
Pull Simulation inputs
|
|
254
|
-
"""
|
|
249
|
+
"""Pull app inputs"""
|
|
255
250
|
|
|
256
251
|
@abc.abstractmethod
|
|
257
252
|
def PushAppOutputs(
|
|
@@ -259,7 +254,7 @@ class SimulationIoServicer(metaclass=abc.ABCMeta):
|
|
|
259
254
|
request: flwr.proto.appio_pb2.PushAppOutputsRequest,
|
|
260
255
|
context: _ServicerContext,
|
|
261
256
|
) -> typing.Union[flwr.proto.appio_pb2.PushAppOutputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PushAppOutputsResponse]]:
|
|
262
|
-
"""Push
|
|
257
|
+
"""Push app outputs"""
|
|
263
258
|
|
|
264
259
|
@abc.abstractmethod
|
|
265
260
|
def GetRunStatus(
|
|
@@ -267,7 +262,12 @@ class SimulationIoServicer(metaclass=abc.ABCMeta):
|
|
|
267
262
|
request: flwr.proto.run_pb2.GetRunStatusRequest,
|
|
268
263
|
context: _ServicerContext,
|
|
269
264
|
) -> typing.Union[flwr.proto.run_pb2.GetRunStatusResponse, collections.abc.Awaitable[flwr.proto.run_pb2.GetRunStatusResponse]]:
|
|
270
|
-
"""
|
|
265
|
+
"""///////////////////////////////////////////////////////////////////////////
|
|
266
|
+
Specific endpoints shared by ServerAppIo and SimulationIo
|
|
267
|
+
///////////////////////////////////////////////////////////////////////////
|
|
268
|
+
|
|
269
|
+
Get Run Status
|
|
270
|
+
"""
|
|
271
271
|
|
|
272
272
|
@abc.abstractmethod
|
|
273
273
|
def UpdateRunStatus(
|
|
@@ -110,7 +110,7 @@ def run_clientapp( # pylint: disable=R0913, R0914, R0917
|
|
|
110
110
|
heartbeat_sender.start()
|
|
111
111
|
|
|
112
112
|
# Pull Message, Context, Run and (optional) FAB from SuperNode
|
|
113
|
-
message, context, run, fab =
|
|
113
|
+
message, context, run, fab = pull_appinputs(stub=stub, token=token)
|
|
114
114
|
|
|
115
115
|
try:
|
|
116
116
|
|
|
@@ -152,7 +152,7 @@ def run_clientapp( # pylint: disable=R0913, R0914, R0917
|
|
|
152
152
|
reply_message = Message(Error(code=e_code, reason=reason), reply_to=message)
|
|
153
153
|
|
|
154
154
|
# Push Message and Context to SuperNode
|
|
155
|
-
_ =
|
|
155
|
+
_ = push_appoutputs(
|
|
156
156
|
stub=stub, token=token, message=reply_message, context=context
|
|
157
157
|
)
|
|
158
158
|
|
|
@@ -165,15 +165,15 @@ def run_clientapp( # pylint: disable=R0913, R0914, R0917
|
|
|
165
165
|
)
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
def
|
|
168
|
+
def pull_appinputs(
|
|
169
169
|
stub: ClientAppIoStub, token: str
|
|
170
170
|
) -> tuple[Message, Context, Run, Fab | None]:
|
|
171
|
-
"""Pull
|
|
171
|
+
"""Pull AppInputs from SuperNode."""
|
|
172
172
|
masked_token = mask_string(token)
|
|
173
|
-
log(INFO, "[flwr-clientapp] Pull `
|
|
173
|
+
log(INFO, "[flwr-clientapp] Pull `AppInputs` for token %s", masked_token)
|
|
174
174
|
try:
|
|
175
175
|
# Pull Context, Run and (optional) FAB
|
|
176
|
-
res: PullAppInputsResponse = stub.
|
|
176
|
+
res: PullAppInputsResponse = stub.PullAppInputs(
|
|
177
177
|
PullAppInputsRequest(token=token)
|
|
178
178
|
)
|
|
179
179
|
context = context_from_proto(res.context)
|
|
@@ -201,16 +201,16 @@ def pull_clientappinputs(
|
|
|
201
201
|
message.metadata.__dict__["_message_id"] = object_tree.object_id
|
|
202
202
|
return message, context, run, fab
|
|
203
203
|
except grpc.RpcError as e:
|
|
204
|
-
log(ERROR, "[
|
|
204
|
+
log(ERROR, "[PullAppInputs] gRPC error occurred: %s", str(e))
|
|
205
205
|
raise e
|
|
206
206
|
|
|
207
207
|
|
|
208
|
-
def
|
|
208
|
+
def push_appoutputs(
|
|
209
209
|
stub: ClientAppIoStub, token: str, message: Message, context: Context
|
|
210
210
|
) -> PushAppOutputsResponse:
|
|
211
|
-
"""Push
|
|
211
|
+
"""Push AppOutputs to SuperNode."""
|
|
212
212
|
masked_token = mask_string(token)
|
|
213
|
-
log(INFO, "[flwr-clientapp] Push `
|
|
213
|
+
log(INFO, "[flwr-clientapp] Push `AppOutputs` for token %s", masked_token)
|
|
214
214
|
# Set message ID
|
|
215
215
|
message.metadata.__dict__["_message_id"] = message.object_id
|
|
216
216
|
proto_message = message_to_proto(remove_content_from_message(message))
|
|
@@ -250,10 +250,10 @@ def push_clientappoutputs(
|
|
|
250
250
|
)
|
|
251
251
|
|
|
252
252
|
# Push Context
|
|
253
|
-
res: PushAppOutputsResponse = stub.
|
|
253
|
+
res: PushAppOutputsResponse = stub.PushAppOutputs(
|
|
254
254
|
PushAppOutputsRequest(token=token, context=proto_context)
|
|
255
255
|
)
|
|
256
256
|
return res
|
|
257
257
|
except grpc.RpcError as e:
|
|
258
|
-
log(ERROR, "[
|
|
258
|
+
log(ERROR, "[PushAppOutputs] gRPC error occurred: %s", str(e))
|
|
259
259
|
raise e
|
|
@@ -129,11 +129,11 @@ class ClientAppIoServicer(clientappio_pb2_grpc.ClientAppIoServicer):
|
|
|
129
129
|
|
|
130
130
|
return GetRunResponse(run=run_to_proto(run))
|
|
131
131
|
|
|
132
|
-
def
|
|
132
|
+
def PullAppInputs(
|
|
133
133
|
self, request: PullAppInputsRequest, context: grpc.ServicerContext
|
|
134
134
|
) -> PullAppInputsResponse:
|
|
135
135
|
"""Pull Message, Context, and Run."""
|
|
136
|
-
log(DEBUG, "ClientAppIo.
|
|
136
|
+
log(DEBUG, "ClientAppIo.PullAppInputs")
|
|
137
137
|
|
|
138
138
|
# Initialize state and ffs connection
|
|
139
139
|
state = self.state_factory.state()
|
|
@@ -176,11 +176,11 @@ class ClientAppIoServicer(clientappio_pb2_grpc.ClientAppIoServicer):
|
|
|
176
176
|
fab=fab_to_proto(fab),
|
|
177
177
|
)
|
|
178
178
|
|
|
179
|
-
def
|
|
179
|
+
def PushAppOutputs(
|
|
180
180
|
self, request: PushAppOutputsRequest, context: grpc.ServicerContext
|
|
181
181
|
) -> PushAppOutputsResponse:
|
|
182
182
|
"""Push Message and Context."""
|
|
183
|
-
log(DEBUG, "ClientAppIo.
|
|
183
|
+
log(DEBUG, "ClientAppIo.PushAppOutputs")
|
|
184
184
|
|
|
185
185
|
# Initialize state connection
|
|
186
186
|
state = self.state_factory.state()
|
{flwr_nightly-1.26.0.dev20260201.dist-info → flwr_nightly-1.26.0.dev20260202.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: flwr-nightly
|
|
3
|
-
Version: 1.26.0.
|
|
3
|
+
Version: 1.26.0.dev20260202
|
|
4
4
|
Summary: Flower: A Friendly Federated AI Framework
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Keywords: Artificial Intelligence,Federated AI,Federated Analytics,Federated Evaluation,Federated Learning,Flower,Machine Learning
|
|
@@ -46,11 +46,11 @@ Requires-Dist: ray (==2.51.1) ; (python_version >= "3.10" and python_version < "
|
|
|
46
46
|
Requires-Dist: ray (==2.51.1) ; (sys_platform != "win32" and python_version == "3.13") and (extra == "simulation")
|
|
47
47
|
Requires-Dist: requests (>=2.31.0,<3.0.0)
|
|
48
48
|
Requires-Dist: rich (>=13.5.0,<14.0.0)
|
|
49
|
-
Requires-Dist: starlette (>=0.
|
|
49
|
+
Requires-Dist: starlette (>=0.50.0,<0.51.0) ; extra == "rest"
|
|
50
50
|
Requires-Dist: tomli (>=2.0.1,<3.0.0)
|
|
51
51
|
Requires-Dist: tomli-w (>=1.0.0,<2.0.0)
|
|
52
52
|
Requires-Dist: typer (>=0.12.5,<0.21.0)
|
|
53
|
-
Requires-Dist: uvicorn[standard] (>=0.
|
|
53
|
+
Requires-Dist: uvicorn[standard] (>=0.40.0,<0.41.0) ; extra == "rest"
|
|
54
54
|
Project-URL: Documentation, https://flower.ai
|
|
55
55
|
Project-URL: Homepage, https://flower.ai
|
|
56
56
|
Project-URL: Repository, https://github.com/adap/flower
|
|
@@ -67,7 +67,7 @@ Description-Content-Type: text/markdown
|
|
|
67
67
|
<a href="https://flower.ai/">Website</a> |
|
|
68
68
|
<a href="https://flower.ai/blog">Blog</a> |
|
|
69
69
|
<a href="https://flower.ai/docs/">Docs</a> |
|
|
70
|
-
<a href="https://flower.ai/events/flower-ai-summit-
|
|
70
|
+
<a href="https://flower.ai/events/flower-ai-summit-2026">Summit</a> |
|
|
71
71
|
<a href="https://flower.ai/join-slack">Slack</a>
|
|
72
72
|
<br /><br />
|
|
73
73
|
</p>
|
{flwr_nightly-1.26.0.dev20260201.dist-info → flwr_nightly-1.26.0.dev20260202.dist-info}/RECORD
RENAMED
|
@@ -135,10 +135,10 @@ flwr/proto/appio_pb2.py,sha256=GhleCmuqLiDqvumA0qgVl37NTwuan_K_XpUKStXZxwU,4274
|
|
|
135
135
|
flwr/proto/appio_pb2.pyi,sha256=pbrd1mRg0q7mbGqkJYYX1-GwzhiSnuZpjrAJU5im0Og,9512
|
|
136
136
|
flwr/proto/appio_pb2_grpc.py,sha256=f8jZU97X0SNIz4PQ9qj43yAhgVzmaGInItUCOAGZ7tU,897
|
|
137
137
|
flwr/proto/appio_pb2_grpc.pyi,sha256=M-7_sdP1mjiKKC4o13hXUx5sEnX3BXSIXgovr9tNVCg,1071
|
|
138
|
-
flwr/proto/clientappio_pb2.py,sha256=
|
|
138
|
+
flwr/proto/clientappio_pb2.py,sha256=kFTbDt-0TUeqF2rqNapoWQwTWu5IHeOMCQP0ZNr3EE8,2905
|
|
139
139
|
flwr/proto/clientappio_pb2.pyi,sha256=OsUGEduv1iJCew8C4cMz87Y5uQAhHDmxNyVfwA4kXd8,824
|
|
140
|
-
flwr/proto/clientappio_pb2_grpc.py,sha256=
|
|
141
|
-
flwr/proto/clientappio_pb2_grpc.pyi,sha256=
|
|
140
|
+
flwr/proto/clientappio_pb2_grpc.py,sha256=Wv9zKVk2h84OF3NPFsIJMUzf8T6lTApkzv8cTJ9TPtk,22814
|
|
141
|
+
flwr/proto/clientappio_pb2_grpc.pyi,sha256=gJZJf9Ol0WeX0Kvsv6TEWwK5MDut-OyrfhvsU6HNKFU,12008
|
|
142
142
|
flwr/proto/control_pb2.py,sha256=RSrFkLnCxmrW9HXv8Qj2H7_34568HU9uKe9D23uPnBE,9231
|
|
143
143
|
flwr/proto/control_pb2.pyi,sha256=tTdf9mOD_rrN96l9uh8rBPc1-sTGHOdiAhtIY9mGtZc,16528
|
|
144
144
|
flwr/proto/control_pb2_grpc.py,sha256=XDGrK2tIT_AcopBnygjddXZRdBTtxP29q-9mK63PsP4,23321
|
|
@@ -187,14 +187,14 @@ flwr/proto/run_pb2.py,sha256=8tQDMyiBjw_-S6jiJpFd_-dDrMq9ZhyPyWwnmFu3qek,5101
|
|
|
187
187
|
flwr/proto/run_pb2.pyi,sha256=t42qPzJTY1GVUUrkdIjdoPfAKlsXlUw9A8vBpwgbHsI,10852
|
|
188
188
|
flwr/proto/run_pb2_grpc.py,sha256=l5u1Ww6JxVLVN784Z2OQbkQ-tAf5yYGh6QbNDc4F5II,895
|
|
189
189
|
flwr/proto/run_pb2_grpc.pyi,sha256=fMwjLr-QCljWBa8uk0fvMCytnrF1-IzFLCbezqEmvdU,1071
|
|
190
|
-
flwr/proto/serverappio_pb2.py,sha256=
|
|
190
|
+
flwr/proto/serverappio_pb2.py,sha256=bxKnIXI_kawwqsOZm4E54OFZOTnOTTBu6LTxRvOqHfA,4045
|
|
191
191
|
flwr/proto/serverappio_pb2.pyi,sha256=KpVM8B_O0M3RFJ-DtnNlQapJs4V-7pHcdEb2G3ECbhE,1998
|
|
192
|
-
flwr/proto/serverappio_pb2_grpc.py,sha256=
|
|
193
|
-
flwr/proto/serverappio_pb2_grpc.pyi,sha256=
|
|
192
|
+
flwr/proto/serverappio_pb2_grpc.py,sha256=gV_xKQ34HPakn7tMf7q_tixinC6oGcNbUNpeX0O295s,32111
|
|
193
|
+
flwr/proto/serverappio_pb2_grpc.pyi,sha256=gh_rj31Xt2qU7OOlCnG-PiRdcm34N7nfSLOHHBVFD1U,16274
|
|
194
194
|
flwr/proto/simulationio_pb2.py,sha256=WZ7fqvwPdayfgH8UZPdkhQwMtEWcTm0t_h9a9srrSBQ,2787
|
|
195
195
|
flwr/proto/simulationio_pb2.pyi,sha256=OsUGEduv1iJCew8C4cMz87Y5uQAhHDmxNyVfwA4kXd8,824
|
|
196
|
-
flwr/proto/simulationio_pb2_grpc.py,sha256=
|
|
197
|
-
flwr/proto/simulationio_pb2_grpc.pyi,sha256=
|
|
196
|
+
flwr/proto/simulationio_pb2_grpc.py,sha256=w4m6I4c1Nda_UoQzKnkuiT86QZdMF0Tvpbsw59nMJt4,20980
|
|
197
|
+
flwr/proto/simulationio_pb2_grpc.pyi,sha256=39OGkOU_ClHjr4Dmorhatn3ILwLIKxXQqp-LR0pYDB8,11286
|
|
198
198
|
flwr/proto/transport_pb2.py,sha256=xqDF2oI0PzAndH17O80SQkyOT_QF9m7CQ0166He7UDQ,10122
|
|
199
199
|
flwr/proto/transport_pb2.pyi,sha256=A-AzbyDAyp4hzJCuC6MOA1NewkFmtuhPwFCjPKqQP0Q,22450
|
|
200
200
|
flwr/proto/transport_pb2_grpc.py,sha256=jYsbV3KYdp4TaNfWxv3ljFEvB-Yjsa8MIPtTH-vVPPk,3600
|
|
@@ -403,12 +403,12 @@ flwr/supernode/nodestate/in_memory_nodestate.py,sha256=DBhpDsPmitkOr86pW78_0aiG_
|
|
|
403
403
|
flwr/supernode/nodestate/nodestate.py,sha256=RWrsHS1nndK67-T6YSmi85qRb_t_wM7fjLb16YS-87Y,6217
|
|
404
404
|
flwr/supernode/nodestate/nodestate_factory.py,sha256=i-1cv42R9LBM1nyasTHuTHSqlyJxVSRtUK2BMzqT-Ss,1631
|
|
405
405
|
flwr/supernode/runtime/__init__.py,sha256=JQdqd2EMTn-ORMeTvewYYh52ls0YKP68jrps1qioxu4,718
|
|
406
|
-
flwr/supernode/runtime/run_clientapp.py,sha256=
|
|
406
|
+
flwr/supernode/runtime/run_clientapp.py,sha256=cNcaOjgEXLNDFhfYS6auOcdsgj-nmwfuIwfoEtVDRpM,9385
|
|
407
407
|
flwr/supernode/servicer/__init__.py,sha256=lucTzre5WPK7G1YLCfaqg3rbFWdNSb7ZTt-ca8gxdEo,717
|
|
408
408
|
flwr/supernode/servicer/clientappio/__init__.py,sha256=7Oy62Y_oijqF7Dxi6tpcUQyOpLc_QpIRZ83NvwmB0Yg,813
|
|
409
|
-
flwr/supernode/servicer/clientappio/clientappio_servicer.py,sha256=
|
|
409
|
+
flwr/supernode/servicer/clientappio/clientappio_servicer.py,sha256=5TOp0SelGqiWzRHfhYpoKzUd7EuVTqt5_PXvnUy7_Ok,11615
|
|
410
410
|
flwr/supernode/start_client_internal.py,sha256=3MkeDiWZr-SsvACuuAxJi8nYw6GYNKOO6q8b36E3R9k,26250
|
|
411
|
-
flwr_nightly-1.26.0.
|
|
412
|
-
flwr_nightly-1.26.0.
|
|
413
|
-
flwr_nightly-1.26.0.
|
|
414
|
-
flwr_nightly-1.26.0.
|
|
411
|
+
flwr_nightly-1.26.0.dev20260202.dist-info/METADATA,sha256=8Sr3guZBXfUanQ4QBQgIZ7wW-E07pmguQGAUXwTPx1E,14447
|
|
412
|
+
flwr_nightly-1.26.0.dev20260202.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
413
|
+
flwr_nightly-1.26.0.dev20260202.dist-info/entry_points.txt,sha256=hxHD2ixb_vJFDOlZV-zB4Ao32_BQlL34ftsDh1GXv14,420
|
|
414
|
+
flwr_nightly-1.26.0.dev20260202.dist-info/RECORD,,
|
{flwr_nightly-1.26.0.dev20260201.dist-info → flwr_nightly-1.26.0.dev20260202.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|