flwr-nightly 1.13.0.dev20241101__py3-none-any.whl → 1.13.0.dev20241104__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.
Potentially problematic release.
This version of flwr-nightly might be problematic. Click here for more details.
- flwr/cli/config_utils.py +97 -0
- flwr/cli/log.py +19 -82
- flwr/cli/run/run.py +18 -83
- flwr/client/clientapp/app.py +1 -2
- flwr/common/constant.py +1 -1
- flwr/common/logger.py +3 -3
- flwr/common/telemetry.py +0 -6
- flwr/proto/serverappio_pb2.py +52 -0
- flwr/proto/{driver_pb2_grpc.py → serverappio_pb2_grpc.py} +56 -56
- flwr/proto/{driver_pb2_grpc.pyi → serverappio_pb2_grpc.pyi} +24 -24
- flwr/proto/simulationio_pb2.py +38 -0
- flwr/proto/simulationio_pb2.pyi +65 -0
- flwr/proto/simulationio_pb2_grpc.py +171 -0
- flwr/proto/simulationio_pb2_grpc.pyi +68 -0
- flwr/server/app.py +20 -20
- flwr/server/driver/driver.py +1 -1
- flwr/server/driver/grpc_driver.py +18 -18
- flwr/server/driver/inmemory_driver.py +1 -1
- flwr/server/run_serverapp.py +11 -11
- flwr/server/serverapp/app.py +4 -5
- flwr/server/strategy/fedadam.py +11 -1
- flwr/server/superlink/driver/__init__.py +1 -1
- flwr/server/superlink/driver/{driver_grpc.py → serverappio_grpc.py} +17 -14
- flwr/server/superlink/driver/{driver_servicer.py → serverappio_servicer.py} +29 -32
- flwr/server/superlink/fleet/grpc_bidi/grpc_server.py +2 -2
- flwr/server/superlink/linkstate/linkstate.py +3 -3
- flwr/server/superlink/linkstate/sqlite_linkstate.py +3 -3
- flwr/superexec/deployment.py +3 -3
- {flwr_nightly-1.13.0.dev20241101.dist-info → flwr_nightly-1.13.0.dev20241104.dist-info}/METADATA +1 -1
- {flwr_nightly-1.13.0.dev20241101.dist-info → flwr_nightly-1.13.0.dev20241104.dist-info}/RECORD +34 -30
- flwr/proto/driver_pb2.py +0 -52
- /flwr/proto/{driver_pb2.pyi → serverappio_pb2.pyi} +0 -0
- {flwr_nightly-1.13.0.dev20241101.dist-info → flwr_nightly-1.13.0.dev20241104.dist-info}/LICENSE +0 -0
- {flwr_nightly-1.13.0.dev20241101.dist-info → flwr_nightly-1.13.0.dev20241104.dist-info}/WHEEL +0 -0
- {flwr_nightly-1.13.0.dev20241101.dist-info → flwr_nightly-1.13.0.dev20241104.dist-info}/entry_points.txt +0 -0
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
3
|
import grpc
|
|
4
4
|
|
|
5
|
-
from flwr.proto import driver_pb2 as flwr_dot_proto_dot_driver__pb2
|
|
6
5
|
from flwr.proto import fab_pb2 as flwr_dot_proto_dot_fab__pb2
|
|
7
6
|
from flwr.proto import log_pb2 as flwr_dot_proto_dot_log__pb2
|
|
8
7
|
from flwr.proto import run_pb2 as flwr_dot_proto_dot_run__pb2
|
|
8
|
+
from flwr.proto import serverappio_pb2 as flwr_dot_proto_dot_serverappio__pb2
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class ServerAppIoStub(object):
|
|
12
12
|
"""Missing associated documentation comment in .proto file."""
|
|
13
13
|
|
|
14
14
|
def __init__(self, channel):
|
|
@@ -18,58 +18,58 @@ class DriverStub(object):
|
|
|
18
18
|
channel: A grpc.Channel.
|
|
19
19
|
"""
|
|
20
20
|
self.CreateRun = channel.unary_unary(
|
|
21
|
-
'/flwr.proto.
|
|
21
|
+
'/flwr.proto.ServerAppIo/CreateRun',
|
|
22
22
|
request_serializer=flwr_dot_proto_dot_run__pb2.CreateRunRequest.SerializeToString,
|
|
23
23
|
response_deserializer=flwr_dot_proto_dot_run__pb2.CreateRunResponse.FromString,
|
|
24
24
|
)
|
|
25
25
|
self.GetNodes = channel.unary_unary(
|
|
26
|
-
'/flwr.proto.
|
|
27
|
-
request_serializer=
|
|
28
|
-
response_deserializer=
|
|
26
|
+
'/flwr.proto.ServerAppIo/GetNodes',
|
|
27
|
+
request_serializer=flwr_dot_proto_dot_serverappio__pb2.GetNodesRequest.SerializeToString,
|
|
28
|
+
response_deserializer=flwr_dot_proto_dot_serverappio__pb2.GetNodesResponse.FromString,
|
|
29
29
|
)
|
|
30
30
|
self.PushTaskIns = channel.unary_unary(
|
|
31
|
-
'/flwr.proto.
|
|
32
|
-
request_serializer=
|
|
33
|
-
response_deserializer=
|
|
31
|
+
'/flwr.proto.ServerAppIo/PushTaskIns',
|
|
32
|
+
request_serializer=flwr_dot_proto_dot_serverappio__pb2.PushTaskInsRequest.SerializeToString,
|
|
33
|
+
response_deserializer=flwr_dot_proto_dot_serverappio__pb2.PushTaskInsResponse.FromString,
|
|
34
34
|
)
|
|
35
35
|
self.PullTaskRes = channel.unary_unary(
|
|
36
|
-
'/flwr.proto.
|
|
37
|
-
request_serializer=
|
|
38
|
-
response_deserializer=
|
|
36
|
+
'/flwr.proto.ServerAppIo/PullTaskRes',
|
|
37
|
+
request_serializer=flwr_dot_proto_dot_serverappio__pb2.PullTaskResRequest.SerializeToString,
|
|
38
|
+
response_deserializer=flwr_dot_proto_dot_serverappio__pb2.PullTaskResResponse.FromString,
|
|
39
39
|
)
|
|
40
40
|
self.GetRun = channel.unary_unary(
|
|
41
|
-
'/flwr.proto.
|
|
41
|
+
'/flwr.proto.ServerAppIo/GetRun',
|
|
42
42
|
request_serializer=flwr_dot_proto_dot_run__pb2.GetRunRequest.SerializeToString,
|
|
43
43
|
response_deserializer=flwr_dot_proto_dot_run__pb2.GetRunResponse.FromString,
|
|
44
44
|
)
|
|
45
45
|
self.GetFab = channel.unary_unary(
|
|
46
|
-
'/flwr.proto.
|
|
46
|
+
'/flwr.proto.ServerAppIo/GetFab',
|
|
47
47
|
request_serializer=flwr_dot_proto_dot_fab__pb2.GetFabRequest.SerializeToString,
|
|
48
48
|
response_deserializer=flwr_dot_proto_dot_fab__pb2.GetFabResponse.FromString,
|
|
49
49
|
)
|
|
50
50
|
self.PullServerAppInputs = channel.unary_unary(
|
|
51
|
-
'/flwr.proto.
|
|
52
|
-
request_serializer=
|
|
53
|
-
response_deserializer=
|
|
51
|
+
'/flwr.proto.ServerAppIo/PullServerAppInputs',
|
|
52
|
+
request_serializer=flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsRequest.SerializeToString,
|
|
53
|
+
response_deserializer=flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsResponse.FromString,
|
|
54
54
|
)
|
|
55
55
|
self.PushServerAppOutputs = channel.unary_unary(
|
|
56
|
-
'/flwr.proto.
|
|
57
|
-
request_serializer=
|
|
58
|
-
response_deserializer=
|
|
56
|
+
'/flwr.proto.ServerAppIo/PushServerAppOutputs',
|
|
57
|
+
request_serializer=flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsRequest.SerializeToString,
|
|
58
|
+
response_deserializer=flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsResponse.FromString,
|
|
59
59
|
)
|
|
60
60
|
self.UpdateRunStatus = channel.unary_unary(
|
|
61
|
-
'/flwr.proto.
|
|
61
|
+
'/flwr.proto.ServerAppIo/UpdateRunStatus',
|
|
62
62
|
request_serializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.SerializeToString,
|
|
63
63
|
response_deserializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusResponse.FromString,
|
|
64
64
|
)
|
|
65
65
|
self.PushLogs = channel.unary_unary(
|
|
66
|
-
'/flwr.proto.
|
|
66
|
+
'/flwr.proto.ServerAppIo/PushLogs',
|
|
67
67
|
request_serializer=flwr_dot_proto_dot_log__pb2.PushLogsRequest.SerializeToString,
|
|
68
68
|
response_deserializer=flwr_dot_proto_dot_log__pb2.PushLogsResponse.FromString,
|
|
69
69
|
)
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
class
|
|
72
|
+
class ServerAppIoServicer(object):
|
|
73
73
|
"""Missing associated documentation comment in .proto file."""
|
|
74
74
|
|
|
75
75
|
def CreateRun(self, request, context):
|
|
@@ -143,7 +143,7 @@ class DriverServicer(object):
|
|
|
143
143
|
raise NotImplementedError('Method not implemented!')
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
def
|
|
146
|
+
def add_ServerAppIoServicer_to_server(servicer, server):
|
|
147
147
|
rpc_method_handlers = {
|
|
148
148
|
'CreateRun': grpc.unary_unary_rpc_method_handler(
|
|
149
149
|
servicer.CreateRun,
|
|
@@ -152,18 +152,18 @@ def add_DriverServicer_to_server(servicer, server):
|
|
|
152
152
|
),
|
|
153
153
|
'GetNodes': grpc.unary_unary_rpc_method_handler(
|
|
154
154
|
servicer.GetNodes,
|
|
155
|
-
request_deserializer=
|
|
156
|
-
response_serializer=
|
|
155
|
+
request_deserializer=flwr_dot_proto_dot_serverappio__pb2.GetNodesRequest.FromString,
|
|
156
|
+
response_serializer=flwr_dot_proto_dot_serverappio__pb2.GetNodesResponse.SerializeToString,
|
|
157
157
|
),
|
|
158
158
|
'PushTaskIns': grpc.unary_unary_rpc_method_handler(
|
|
159
159
|
servicer.PushTaskIns,
|
|
160
|
-
request_deserializer=
|
|
161
|
-
response_serializer=
|
|
160
|
+
request_deserializer=flwr_dot_proto_dot_serverappio__pb2.PushTaskInsRequest.FromString,
|
|
161
|
+
response_serializer=flwr_dot_proto_dot_serverappio__pb2.PushTaskInsResponse.SerializeToString,
|
|
162
162
|
),
|
|
163
163
|
'PullTaskRes': grpc.unary_unary_rpc_method_handler(
|
|
164
164
|
servicer.PullTaskRes,
|
|
165
|
-
request_deserializer=
|
|
166
|
-
response_serializer=
|
|
165
|
+
request_deserializer=flwr_dot_proto_dot_serverappio__pb2.PullTaskResRequest.FromString,
|
|
166
|
+
response_serializer=flwr_dot_proto_dot_serverappio__pb2.PullTaskResResponse.SerializeToString,
|
|
167
167
|
),
|
|
168
168
|
'GetRun': grpc.unary_unary_rpc_method_handler(
|
|
169
169
|
servicer.GetRun,
|
|
@@ -177,13 +177,13 @@ def add_DriverServicer_to_server(servicer, server):
|
|
|
177
177
|
),
|
|
178
178
|
'PullServerAppInputs': grpc.unary_unary_rpc_method_handler(
|
|
179
179
|
servicer.PullServerAppInputs,
|
|
180
|
-
request_deserializer=
|
|
181
|
-
response_serializer=
|
|
180
|
+
request_deserializer=flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsRequest.FromString,
|
|
181
|
+
response_serializer=flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsResponse.SerializeToString,
|
|
182
182
|
),
|
|
183
183
|
'PushServerAppOutputs': grpc.unary_unary_rpc_method_handler(
|
|
184
184
|
servicer.PushServerAppOutputs,
|
|
185
|
-
request_deserializer=
|
|
186
|
-
response_serializer=
|
|
185
|
+
request_deserializer=flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsRequest.FromString,
|
|
186
|
+
response_serializer=flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsResponse.SerializeToString,
|
|
187
187
|
),
|
|
188
188
|
'UpdateRunStatus': grpc.unary_unary_rpc_method_handler(
|
|
189
189
|
servicer.UpdateRunStatus,
|
|
@@ -197,12 +197,12 @@ def add_DriverServicer_to_server(servicer, server):
|
|
|
197
197
|
),
|
|
198
198
|
}
|
|
199
199
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
200
|
-
'flwr.proto.
|
|
200
|
+
'flwr.proto.ServerAppIo', rpc_method_handlers)
|
|
201
201
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
202
202
|
|
|
203
203
|
|
|
204
204
|
# This class is part of an EXPERIMENTAL API.
|
|
205
|
-
class
|
|
205
|
+
class ServerAppIo(object):
|
|
206
206
|
"""Missing associated documentation comment in .proto file."""
|
|
207
207
|
|
|
208
208
|
@staticmethod
|
|
@@ -216,7 +216,7 @@ class Driver(object):
|
|
|
216
216
|
wait_for_ready=None,
|
|
217
217
|
timeout=None,
|
|
218
218
|
metadata=None):
|
|
219
|
-
return grpc.experimental.unary_unary(request, target, '/flwr.proto.
|
|
219
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/CreateRun',
|
|
220
220
|
flwr_dot_proto_dot_run__pb2.CreateRunRequest.SerializeToString,
|
|
221
221
|
flwr_dot_proto_dot_run__pb2.CreateRunResponse.FromString,
|
|
222
222
|
options, channel_credentials,
|
|
@@ -233,9 +233,9 @@ class Driver(object):
|
|
|
233
233
|
wait_for_ready=None,
|
|
234
234
|
timeout=None,
|
|
235
235
|
metadata=None):
|
|
236
|
-
return grpc.experimental.unary_unary(request, target, '/flwr.proto.
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/GetNodes',
|
|
237
|
+
flwr_dot_proto_dot_serverappio__pb2.GetNodesRequest.SerializeToString,
|
|
238
|
+
flwr_dot_proto_dot_serverappio__pb2.GetNodesResponse.FromString,
|
|
239
239
|
options, channel_credentials,
|
|
240
240
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
241
241
|
|
|
@@ -250,9 +250,9 @@ class Driver(object):
|
|
|
250
250
|
wait_for_ready=None,
|
|
251
251
|
timeout=None,
|
|
252
252
|
metadata=None):
|
|
253
|
-
return grpc.experimental.unary_unary(request, target, '/flwr.proto.
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PushTaskIns',
|
|
254
|
+
flwr_dot_proto_dot_serverappio__pb2.PushTaskInsRequest.SerializeToString,
|
|
255
|
+
flwr_dot_proto_dot_serverappio__pb2.PushTaskInsResponse.FromString,
|
|
256
256
|
options, channel_credentials,
|
|
257
257
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
258
258
|
|
|
@@ -267,9 +267,9 @@ class Driver(object):
|
|
|
267
267
|
wait_for_ready=None,
|
|
268
268
|
timeout=None,
|
|
269
269
|
metadata=None):
|
|
270
|
-
return grpc.experimental.unary_unary(request, target, '/flwr.proto.
|
|
271
|
-
|
|
272
|
-
|
|
270
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PullTaskRes',
|
|
271
|
+
flwr_dot_proto_dot_serverappio__pb2.PullTaskResRequest.SerializeToString,
|
|
272
|
+
flwr_dot_proto_dot_serverappio__pb2.PullTaskResResponse.FromString,
|
|
273
273
|
options, channel_credentials,
|
|
274
274
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
275
275
|
|
|
@@ -284,7 +284,7 @@ class Driver(object):
|
|
|
284
284
|
wait_for_ready=None,
|
|
285
285
|
timeout=None,
|
|
286
286
|
metadata=None):
|
|
287
|
-
return grpc.experimental.unary_unary(request, target, '/flwr.proto.
|
|
287
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/GetRun',
|
|
288
288
|
flwr_dot_proto_dot_run__pb2.GetRunRequest.SerializeToString,
|
|
289
289
|
flwr_dot_proto_dot_run__pb2.GetRunResponse.FromString,
|
|
290
290
|
options, channel_credentials,
|
|
@@ -301,7 +301,7 @@ class Driver(object):
|
|
|
301
301
|
wait_for_ready=None,
|
|
302
302
|
timeout=None,
|
|
303
303
|
metadata=None):
|
|
304
|
-
return grpc.experimental.unary_unary(request, target, '/flwr.proto.
|
|
304
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/GetFab',
|
|
305
305
|
flwr_dot_proto_dot_fab__pb2.GetFabRequest.SerializeToString,
|
|
306
306
|
flwr_dot_proto_dot_fab__pb2.GetFabResponse.FromString,
|
|
307
307
|
options, channel_credentials,
|
|
@@ -318,9 +318,9 @@ class Driver(object):
|
|
|
318
318
|
wait_for_ready=None,
|
|
319
319
|
timeout=None,
|
|
320
320
|
metadata=None):
|
|
321
|
-
return grpc.experimental.unary_unary(request, target, '/flwr.proto.
|
|
322
|
-
|
|
323
|
-
|
|
321
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PullServerAppInputs',
|
|
322
|
+
flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsRequest.SerializeToString,
|
|
323
|
+
flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsResponse.FromString,
|
|
324
324
|
options, channel_credentials,
|
|
325
325
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
326
326
|
|
|
@@ -335,9 +335,9 @@ class Driver(object):
|
|
|
335
335
|
wait_for_ready=None,
|
|
336
336
|
timeout=None,
|
|
337
337
|
metadata=None):
|
|
338
|
-
return grpc.experimental.unary_unary(request, target, '/flwr.proto.
|
|
339
|
-
|
|
340
|
-
|
|
338
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PushServerAppOutputs',
|
|
339
|
+
flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsRequest.SerializeToString,
|
|
340
|
+
flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsResponse.FromString,
|
|
341
341
|
options, channel_credentials,
|
|
342
342
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
343
343
|
|
|
@@ -352,7 +352,7 @@ class Driver(object):
|
|
|
352
352
|
wait_for_ready=None,
|
|
353
353
|
timeout=None,
|
|
354
354
|
metadata=None):
|
|
355
|
-
return grpc.experimental.unary_unary(request, target, '/flwr.proto.
|
|
355
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/UpdateRunStatus',
|
|
356
356
|
flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.SerializeToString,
|
|
357
357
|
flwr_dot_proto_dot_run__pb2.UpdateRunStatusResponse.FromString,
|
|
358
358
|
options, channel_credentials,
|
|
@@ -369,7 +369,7 @@ class Driver(object):
|
|
|
369
369
|
wait_for_ready=None,
|
|
370
370
|
timeout=None,
|
|
371
371
|
metadata=None):
|
|
372
|
-
return grpc.experimental.unary_unary(request, target, '/flwr.proto.
|
|
372
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PushLogs',
|
|
373
373
|
flwr_dot_proto_dot_log__pb2.PushLogsRequest.SerializeToString,
|
|
374
374
|
flwr_dot_proto_dot_log__pb2.PushLogsResponse.FromString,
|
|
375
375
|
options, channel_credentials,
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
import abc
|
|
6
|
-
import flwr.proto.driver_pb2
|
|
7
6
|
import flwr.proto.fab_pb2
|
|
8
7
|
import flwr.proto.log_pb2
|
|
9
8
|
import flwr.proto.run_pb2
|
|
9
|
+
import flwr.proto.serverappio_pb2
|
|
10
10
|
import grpc
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class ServerAppIoStub:
|
|
13
13
|
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
14
14
|
CreateRun: grpc.UnaryUnaryMultiCallable[
|
|
15
15
|
flwr.proto.run_pb2.CreateRunRequest,
|
|
@@ -17,18 +17,18 @@ class DriverStub:
|
|
|
17
17
|
"""Request run_id"""
|
|
18
18
|
|
|
19
19
|
GetNodes: grpc.UnaryUnaryMultiCallable[
|
|
20
|
-
flwr.proto.
|
|
21
|
-
flwr.proto.
|
|
20
|
+
flwr.proto.serverappio_pb2.GetNodesRequest,
|
|
21
|
+
flwr.proto.serverappio_pb2.GetNodesResponse]
|
|
22
22
|
"""Return a set of nodes"""
|
|
23
23
|
|
|
24
24
|
PushTaskIns: grpc.UnaryUnaryMultiCallable[
|
|
25
|
-
flwr.proto.
|
|
26
|
-
flwr.proto.
|
|
25
|
+
flwr.proto.serverappio_pb2.PushTaskInsRequest,
|
|
26
|
+
flwr.proto.serverappio_pb2.PushTaskInsResponse]
|
|
27
27
|
"""Create one or more tasks"""
|
|
28
28
|
|
|
29
29
|
PullTaskRes: grpc.UnaryUnaryMultiCallable[
|
|
30
|
-
flwr.proto.
|
|
31
|
-
flwr.proto.
|
|
30
|
+
flwr.proto.serverappio_pb2.PullTaskResRequest,
|
|
31
|
+
flwr.proto.serverappio_pb2.PullTaskResResponse]
|
|
32
32
|
"""Get task results"""
|
|
33
33
|
|
|
34
34
|
GetRun: grpc.UnaryUnaryMultiCallable[
|
|
@@ -42,13 +42,13 @@ class DriverStub:
|
|
|
42
42
|
"""Get FAB"""
|
|
43
43
|
|
|
44
44
|
PullServerAppInputs: grpc.UnaryUnaryMultiCallable[
|
|
45
|
-
flwr.proto.
|
|
46
|
-
flwr.proto.
|
|
45
|
+
flwr.proto.serverappio_pb2.PullServerAppInputsRequest,
|
|
46
|
+
flwr.proto.serverappio_pb2.PullServerAppInputsResponse]
|
|
47
47
|
"""Pull ServerApp inputs"""
|
|
48
48
|
|
|
49
49
|
PushServerAppOutputs: grpc.UnaryUnaryMultiCallable[
|
|
50
|
-
flwr.proto.
|
|
51
|
-
flwr.proto.
|
|
50
|
+
flwr.proto.serverappio_pb2.PushServerAppOutputsRequest,
|
|
51
|
+
flwr.proto.serverappio_pb2.PushServerAppOutputsResponse]
|
|
52
52
|
"""Push ServerApp outputs"""
|
|
53
53
|
|
|
54
54
|
UpdateRunStatus: grpc.UnaryUnaryMultiCallable[
|
|
@@ -62,7 +62,7 @@ class DriverStub:
|
|
|
62
62
|
"""Push ServerApp logs"""
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
class
|
|
65
|
+
class ServerAppIoServicer(metaclass=abc.ABCMeta):
|
|
66
66
|
@abc.abstractmethod
|
|
67
67
|
def CreateRun(self,
|
|
68
68
|
request: flwr.proto.run_pb2.CreateRunRequest,
|
|
@@ -73,25 +73,25 @@ class DriverServicer(metaclass=abc.ABCMeta):
|
|
|
73
73
|
|
|
74
74
|
@abc.abstractmethod
|
|
75
75
|
def GetNodes(self,
|
|
76
|
-
request: flwr.proto.
|
|
76
|
+
request: flwr.proto.serverappio_pb2.GetNodesRequest,
|
|
77
77
|
context: grpc.ServicerContext,
|
|
78
|
-
) -> flwr.proto.
|
|
78
|
+
) -> flwr.proto.serverappio_pb2.GetNodesResponse:
|
|
79
79
|
"""Return a set of nodes"""
|
|
80
80
|
pass
|
|
81
81
|
|
|
82
82
|
@abc.abstractmethod
|
|
83
83
|
def PushTaskIns(self,
|
|
84
|
-
request: flwr.proto.
|
|
84
|
+
request: flwr.proto.serverappio_pb2.PushTaskInsRequest,
|
|
85
85
|
context: grpc.ServicerContext,
|
|
86
|
-
) -> flwr.proto.
|
|
86
|
+
) -> flwr.proto.serverappio_pb2.PushTaskInsResponse:
|
|
87
87
|
"""Create one or more tasks"""
|
|
88
88
|
pass
|
|
89
89
|
|
|
90
90
|
@abc.abstractmethod
|
|
91
91
|
def PullTaskRes(self,
|
|
92
|
-
request: flwr.proto.
|
|
92
|
+
request: flwr.proto.serverappio_pb2.PullTaskResRequest,
|
|
93
93
|
context: grpc.ServicerContext,
|
|
94
|
-
) -> flwr.proto.
|
|
94
|
+
) -> flwr.proto.serverappio_pb2.PullTaskResResponse:
|
|
95
95
|
"""Get task results"""
|
|
96
96
|
pass
|
|
97
97
|
|
|
@@ -113,17 +113,17 @@ class DriverServicer(metaclass=abc.ABCMeta):
|
|
|
113
113
|
|
|
114
114
|
@abc.abstractmethod
|
|
115
115
|
def PullServerAppInputs(self,
|
|
116
|
-
request: flwr.proto.
|
|
116
|
+
request: flwr.proto.serverappio_pb2.PullServerAppInputsRequest,
|
|
117
117
|
context: grpc.ServicerContext,
|
|
118
|
-
) -> flwr.proto.
|
|
118
|
+
) -> flwr.proto.serverappio_pb2.PullServerAppInputsResponse:
|
|
119
119
|
"""Pull ServerApp inputs"""
|
|
120
120
|
pass
|
|
121
121
|
|
|
122
122
|
@abc.abstractmethod
|
|
123
123
|
def PushServerAppOutputs(self,
|
|
124
|
-
request: flwr.proto.
|
|
124
|
+
request: flwr.proto.serverappio_pb2.PushServerAppOutputsRequest,
|
|
125
125
|
context: grpc.ServicerContext,
|
|
126
|
-
) -> flwr.proto.
|
|
126
|
+
) -> flwr.proto.serverappio_pb2.PushServerAppOutputsResponse:
|
|
127
127
|
"""Push ServerApp outputs"""
|
|
128
128
|
pass
|
|
129
129
|
|
|
@@ -144,4 +144,4 @@ class DriverServicer(metaclass=abc.ABCMeta):
|
|
|
144
144
|
pass
|
|
145
145
|
|
|
146
146
|
|
|
147
|
-
def
|
|
147
|
+
def add_ServerAppIoServicer_to_server(servicer: ServerAppIoServicer, server: grpc.Server) -> None: ...
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: flwr/proto/simulationio.proto
|
|
4
|
+
# Protobuf Python Version: 4.25.0
|
|
5
|
+
"""Generated protocol buffer code."""
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
from google.protobuf.internal import builder as _builder
|
|
10
|
+
# @@protoc_insertion_point(imports)
|
|
11
|
+
|
|
12
|
+
_sym_db = _symbol_database.Default()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from flwr.proto import log_pb2 as flwr_dot_proto_dot_log__pb2
|
|
16
|
+
from flwr.proto import message_pb2 as flwr_dot_proto_dot_message__pb2
|
|
17
|
+
from flwr.proto import run_pb2 as flwr_dot_proto_dot_run__pb2
|
|
18
|
+
from flwr.proto import fab_pb2 as flwr_dot_proto_dot_fab__pb2
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lwr/proto/simulationio.proto\x12\nflwr.proto\x1a\x14\x66lwr/proto/log.proto\x1a\x18\x66lwr/proto/message.proto\x1a\x14\x66lwr/proto/run.proto\x1a\x14\x66lwr/proto/fab.proto\"\x1d\n\x1bPullSimulationInputsRequest\"\x80\x01\n\x1cPullSimulationInputsResponse\x12$\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x13.flwr.proto.Context\x12\x1c\n\x03run\x18\x02 \x01(\x0b\x32\x0f.flwr.proto.Run\x12\x1c\n\x03\x66\x61\x62\x18\x03 \x01(\x0b\x32\x0f.flwr.proto.Fab\"T\n\x1cPushSimulationOutputsRequest\x12\x0e\n\x06run_id\x18\x01 \x01(\x04\x12$\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x13.flwr.proto.Context\"\x1f\n\x1dPushSimulationOutputsResponse2\x92\x03\n\x0cSimulationIo\x12k\n\x14PullSimulationInputs\x12\'.flwr.proto.PullSimulationInputsRequest\x1a(.flwr.proto.PullSimulationInputsResponse\"\x00\x12n\n\x15PushSimulationOutputs\x12(.flwr.proto.PushSimulationOutputsRequest\x1a).flwr.proto.PushSimulationOutputsResponse\"\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\x62\x06proto3')
|
|
22
|
+
|
|
23
|
+
_globals = globals()
|
|
24
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
25
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.simulationio_pb2', _globals)
|
|
26
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
27
|
+
DESCRIPTOR._options = None
|
|
28
|
+
_globals['_PULLSIMULATIONINPUTSREQUEST']._serialized_start=137
|
|
29
|
+
_globals['_PULLSIMULATIONINPUTSREQUEST']._serialized_end=166
|
|
30
|
+
_globals['_PULLSIMULATIONINPUTSRESPONSE']._serialized_start=169
|
|
31
|
+
_globals['_PULLSIMULATIONINPUTSRESPONSE']._serialized_end=297
|
|
32
|
+
_globals['_PUSHSIMULATIONOUTPUTSREQUEST']._serialized_start=299
|
|
33
|
+
_globals['_PUSHSIMULATIONOUTPUTSREQUEST']._serialized_end=383
|
|
34
|
+
_globals['_PUSHSIMULATIONOUTPUTSRESPONSE']._serialized_start=385
|
|
35
|
+
_globals['_PUSHSIMULATIONOUTPUTSRESPONSE']._serialized_end=416
|
|
36
|
+
_globals['_SIMULATIONIO']._serialized_start=419
|
|
37
|
+
_globals['_SIMULATIONIO']._serialized_end=821
|
|
38
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import builtins
|
|
6
|
+
import flwr.proto.fab_pb2
|
|
7
|
+
import flwr.proto.message_pb2
|
|
8
|
+
import flwr.proto.run_pb2
|
|
9
|
+
import google.protobuf.descriptor
|
|
10
|
+
import google.protobuf.message
|
|
11
|
+
import typing
|
|
12
|
+
import typing_extensions
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
class PullSimulationInputsRequest(google.protobuf.message.Message):
|
|
17
|
+
"""PullSimulationInputs messages"""
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
def __init__(self,
|
|
20
|
+
) -> None: ...
|
|
21
|
+
global___PullSimulationInputsRequest = PullSimulationInputsRequest
|
|
22
|
+
|
|
23
|
+
class PullSimulationInputsResponse(google.protobuf.message.Message):
|
|
24
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
25
|
+
CONTEXT_FIELD_NUMBER: builtins.int
|
|
26
|
+
RUN_FIELD_NUMBER: builtins.int
|
|
27
|
+
FAB_FIELD_NUMBER: builtins.int
|
|
28
|
+
@property
|
|
29
|
+
def context(self) -> flwr.proto.message_pb2.Context: ...
|
|
30
|
+
@property
|
|
31
|
+
def run(self) -> flwr.proto.run_pb2.Run: ...
|
|
32
|
+
@property
|
|
33
|
+
def fab(self) -> flwr.proto.fab_pb2.Fab: ...
|
|
34
|
+
def __init__(self,
|
|
35
|
+
*,
|
|
36
|
+
context: typing.Optional[flwr.proto.message_pb2.Context] = ...,
|
|
37
|
+
run: typing.Optional[flwr.proto.run_pb2.Run] = ...,
|
|
38
|
+
fab: typing.Optional[flwr.proto.fab_pb2.Fab] = ...,
|
|
39
|
+
) -> None: ...
|
|
40
|
+
def HasField(self, field_name: typing_extensions.Literal["context",b"context","fab",b"fab","run",b"run"]) -> builtins.bool: ...
|
|
41
|
+
def ClearField(self, field_name: typing_extensions.Literal["context",b"context","fab",b"fab","run",b"run"]) -> None: ...
|
|
42
|
+
global___PullSimulationInputsResponse = PullSimulationInputsResponse
|
|
43
|
+
|
|
44
|
+
class PushSimulationOutputsRequest(google.protobuf.message.Message):
|
|
45
|
+
"""PushSimulationOutputs messages"""
|
|
46
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
47
|
+
RUN_ID_FIELD_NUMBER: builtins.int
|
|
48
|
+
CONTEXT_FIELD_NUMBER: builtins.int
|
|
49
|
+
run_id: builtins.int
|
|
50
|
+
@property
|
|
51
|
+
def context(self) -> flwr.proto.message_pb2.Context: ...
|
|
52
|
+
def __init__(self,
|
|
53
|
+
*,
|
|
54
|
+
run_id: builtins.int = ...,
|
|
55
|
+
context: typing.Optional[flwr.proto.message_pb2.Context] = ...,
|
|
56
|
+
) -> None: ...
|
|
57
|
+
def HasField(self, field_name: typing_extensions.Literal["context",b"context"]) -> builtins.bool: ...
|
|
58
|
+
def ClearField(self, field_name: typing_extensions.Literal["context",b"context","run_id",b"run_id"]) -> None: ...
|
|
59
|
+
global___PushSimulationOutputsRequest = PushSimulationOutputsRequest
|
|
60
|
+
|
|
61
|
+
class PushSimulationOutputsResponse(google.protobuf.message.Message):
|
|
62
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
63
|
+
def __init__(self,
|
|
64
|
+
) -> None: ...
|
|
65
|
+
global___PushSimulationOutputsResponse = PushSimulationOutputsResponse
|