flwr-nightly 1.26.0.dev20260129__py3-none-any.whl → 1.26.0.dev20260201__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.
@@ -40,7 +40,12 @@ class ClientAppIoStub:
40
40
  flwr.proto.appio_pb2.ListAppsToLaunchRequest,
41
41
  flwr.proto.appio_pb2.ListAppsToLaunchResponse,
42
42
  ]
43
- """Get run IDs with pending messages"""
43
+ """///////////////////////////////////////////////////////////////////////////
44
+ General *AppIo endpoints for SuperExec processes
45
+ ///////////////////////////////////////////////////////////////////////////
46
+
47
+ Get run IDs with pending messages
48
+ """
44
49
 
45
50
  RequestToken: grpc.UnaryUnaryMultiCallable[
46
51
  flwr.proto.appio_pb2.RequestTokenRequest,
@@ -52,31 +57,12 @@ class ClientAppIoStub:
52
57
  flwr.proto.run_pb2.GetRunRequest,
53
58
  flwr.proto.run_pb2.GetRunResponse,
54
59
  ]
55
- """Get run details"""
56
-
57
- PullClientAppInputs: grpc.UnaryUnaryMultiCallable[
58
- flwr.proto.appio_pb2.PullAppInputsRequest,
59
- flwr.proto.appio_pb2.PullAppInputsResponse,
60
- ]
61
- """Pull client app inputs"""
62
-
63
- PushClientAppOutputs: grpc.UnaryUnaryMultiCallable[
64
- flwr.proto.appio_pb2.PushAppOutputsRequest,
65
- flwr.proto.appio_pb2.PushAppOutputsResponse,
66
- ]
67
- """Push client app outputs"""
68
-
69
- PushMessage: grpc.UnaryUnaryMultiCallable[
70
- flwr.proto.appio_pb2.PushAppMessagesRequest,
71
- flwr.proto.appio_pb2.PushAppMessagesResponse,
72
- ]
73
- """Push Message"""
60
+ """///////////////////////////////////////////////////////////////////////////
61
+ General *AppIo endpoints for App Executor processes
62
+ ///////////////////////////////////////////////////////////////////////////
74
63
 
75
- PullMessage: grpc.UnaryUnaryMultiCallable[
76
- flwr.proto.appio_pb2.PullAppMessagesRequest,
77
- flwr.proto.appio_pb2.PullAppMessagesResponse,
78
- ]
79
- """Pull Message"""
64
+ Get run details
65
+ """
80
66
 
81
67
  SendAppHeartbeat: grpc.UnaryUnaryMultiCallable[
82
68
  flwr.proto.heartbeat_pb2.SendAppHeartbeatRequest,
@@ -88,7 +74,12 @@ class ClientAppIoStub:
88
74
  flwr.proto.message_pb2.PushObjectRequest,
89
75
  flwr.proto.message_pb2.PushObjectResponse,
90
76
  ]
91
- """Push Object"""
77
+ """///////////////////////////////////////////////////////////////////////////
78
+ Specific endpoints shared by ServerAppIo and ClientAppIo
79
+ ///////////////////////////////////////////////////////////////////////////
80
+
81
+ Push Object
82
+ """
92
83
 
93
84
  PullObject: grpc.UnaryUnaryMultiCallable[
94
85
  flwr.proto.message_pb2.PullObjectRequest,
@@ -102,49 +93,64 @@ class ClientAppIoStub:
102
93
  ]
103
94
  """Confirm Message Received"""
104
95
 
105
- class ClientAppIoAsyncStub:
106
- ListAppsToLaunch: grpc.aio.UnaryUnaryMultiCallable[
107
- flwr.proto.appio_pb2.ListAppsToLaunchRequest,
108
- flwr.proto.appio_pb2.ListAppsToLaunchResponse,
109
- ]
110
- """Get run IDs with pending messages"""
111
-
112
- RequestToken: grpc.aio.UnaryUnaryMultiCallable[
113
- flwr.proto.appio_pb2.RequestTokenRequest,
114
- flwr.proto.appio_pb2.RequestTokenResponse,
115
- ]
116
- """Request token"""
117
-
118
- GetRun: grpc.aio.UnaryUnaryMultiCallable[
119
- flwr.proto.run_pb2.GetRunRequest,
120
- flwr.proto.run_pb2.GetRunResponse,
121
- ]
122
- """Get run details"""
123
-
124
- PullClientAppInputs: grpc.aio.UnaryUnaryMultiCallable[
96
+ PullClientAppInputs: grpc.UnaryUnaryMultiCallable[
125
97
  flwr.proto.appio_pb2.PullAppInputsRequest,
126
98
  flwr.proto.appio_pb2.PullAppInputsResponse,
127
99
  ]
128
- """Pull client app inputs"""
100
+ """///////////////////////////////////////////////////////////////////////////
101
+ Specific endpoints for ClientAppIo
102
+ ///////////////////////////////////////////////////////////////////////////
129
103
 
130
- PushClientAppOutputs: grpc.aio.UnaryUnaryMultiCallable[
104
+ Pull client app inputs
105
+ """
106
+
107
+ PushClientAppOutputs: grpc.UnaryUnaryMultiCallable[
131
108
  flwr.proto.appio_pb2.PushAppOutputsRequest,
132
109
  flwr.proto.appio_pb2.PushAppOutputsResponse,
133
110
  ]
134
111
  """Push client app outputs"""
135
112
 
136
- PushMessage: grpc.aio.UnaryUnaryMultiCallable[
113
+ PushMessage: grpc.UnaryUnaryMultiCallable[
137
114
  flwr.proto.appio_pb2.PushAppMessagesRequest,
138
115
  flwr.proto.appio_pb2.PushAppMessagesResponse,
139
116
  ]
140
117
  """Push Message"""
141
118
 
142
- PullMessage: grpc.aio.UnaryUnaryMultiCallable[
119
+ PullMessage: grpc.UnaryUnaryMultiCallable[
143
120
  flwr.proto.appio_pb2.PullAppMessagesRequest,
144
121
  flwr.proto.appio_pb2.PullAppMessagesResponse,
145
122
  ]
146
123
  """Pull Message"""
147
124
 
125
+ class ClientAppIoAsyncStub:
126
+ ListAppsToLaunch: grpc.aio.UnaryUnaryMultiCallable[
127
+ flwr.proto.appio_pb2.ListAppsToLaunchRequest,
128
+ flwr.proto.appio_pb2.ListAppsToLaunchResponse,
129
+ ]
130
+ """///////////////////////////////////////////////////////////////////////////
131
+ General *AppIo endpoints for SuperExec processes
132
+ ///////////////////////////////////////////////////////////////////////////
133
+
134
+ Get run IDs with pending messages
135
+ """
136
+
137
+ RequestToken: grpc.aio.UnaryUnaryMultiCallable[
138
+ flwr.proto.appio_pb2.RequestTokenRequest,
139
+ flwr.proto.appio_pb2.RequestTokenResponse,
140
+ ]
141
+ """Request token"""
142
+
143
+ GetRun: grpc.aio.UnaryUnaryMultiCallable[
144
+ flwr.proto.run_pb2.GetRunRequest,
145
+ flwr.proto.run_pb2.GetRunResponse,
146
+ ]
147
+ """///////////////////////////////////////////////////////////////////////////
148
+ General *AppIo endpoints for App Executor processes
149
+ ///////////////////////////////////////////////////////////////////////////
150
+
151
+ Get run details
152
+ """
153
+
148
154
  SendAppHeartbeat: grpc.aio.UnaryUnaryMultiCallable[
149
155
  flwr.proto.heartbeat_pb2.SendAppHeartbeatRequest,
150
156
  flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse,
@@ -155,7 +161,12 @@ class ClientAppIoAsyncStub:
155
161
  flwr.proto.message_pb2.PushObjectRequest,
156
162
  flwr.proto.message_pb2.PushObjectResponse,
157
163
  ]
158
- """Push Object"""
164
+ """///////////////////////////////////////////////////////////////////////////
165
+ Specific endpoints shared by ServerAppIo and ClientAppIo
166
+ ///////////////////////////////////////////////////////////////////////////
167
+
168
+ Push Object
169
+ """
159
170
 
160
171
  PullObject: grpc.aio.UnaryUnaryMultiCallable[
161
172
  flwr.proto.message_pb2.PullObjectRequest,
@@ -169,6 +180,35 @@ class ClientAppIoAsyncStub:
169
180
  ]
170
181
  """Confirm Message Received"""
171
182
 
183
+ PullClientAppInputs: grpc.aio.UnaryUnaryMultiCallable[
184
+ flwr.proto.appio_pb2.PullAppInputsRequest,
185
+ flwr.proto.appio_pb2.PullAppInputsResponse,
186
+ ]
187
+ """///////////////////////////////////////////////////////////////////////////
188
+ Specific endpoints for ClientAppIo
189
+ ///////////////////////////////////////////////////////////////////////////
190
+
191
+ Pull client app inputs
192
+ """
193
+
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
+ PullMessage: grpc.aio.UnaryUnaryMultiCallable[
207
+ flwr.proto.appio_pb2.PullAppMessagesRequest,
208
+ flwr.proto.appio_pb2.PullAppMessagesResponse,
209
+ ]
210
+ """Pull Message"""
211
+
172
212
  class ClientAppIoServicer(metaclass=abc.ABCMeta):
173
213
  @abc.abstractmethod
174
214
  def ListAppsToLaunch(
@@ -176,7 +216,12 @@ class ClientAppIoServicer(metaclass=abc.ABCMeta):
176
216
  request: flwr.proto.appio_pb2.ListAppsToLaunchRequest,
177
217
  context: _ServicerContext,
178
218
  ) -> typing.Union[flwr.proto.appio_pb2.ListAppsToLaunchResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.ListAppsToLaunchResponse]]:
179
- """Get run IDs with pending messages"""
219
+ """///////////////////////////////////////////////////////////////////////////
220
+ General *AppIo endpoints for SuperExec processes
221
+ ///////////////////////////////////////////////////////////////////////////
222
+
223
+ Get run IDs with pending messages
224
+ """
180
225
 
181
226
  @abc.abstractmethod
182
227
  def RequestToken(
@@ -192,39 +237,12 @@ class ClientAppIoServicer(metaclass=abc.ABCMeta):
192
237
  request: flwr.proto.run_pb2.GetRunRequest,
193
238
  context: _ServicerContext,
194
239
  ) -> typing.Union[flwr.proto.run_pb2.GetRunResponse, collections.abc.Awaitable[flwr.proto.run_pb2.GetRunResponse]]:
195
- """Get run details"""
196
-
197
- @abc.abstractmethod
198
- def PullClientAppInputs(
199
- self,
200
- request: flwr.proto.appio_pb2.PullAppInputsRequest,
201
- context: _ServicerContext,
202
- ) -> typing.Union[flwr.proto.appio_pb2.PullAppInputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PullAppInputsResponse]]:
203
- """Pull client app inputs"""
204
-
205
- @abc.abstractmethod
206
- def PushClientAppOutputs(
207
- self,
208
- request: flwr.proto.appio_pb2.PushAppOutputsRequest,
209
- context: _ServicerContext,
210
- ) -> typing.Union[flwr.proto.appio_pb2.PushAppOutputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PushAppOutputsResponse]]:
211
- """Push client app outputs"""
240
+ """///////////////////////////////////////////////////////////////////////////
241
+ General *AppIo endpoints for App Executor processes
242
+ ///////////////////////////////////////////////////////////////////////////
212
243
 
213
- @abc.abstractmethod
214
- def PushMessage(
215
- self,
216
- request: flwr.proto.appio_pb2.PushAppMessagesRequest,
217
- context: _ServicerContext,
218
- ) -> typing.Union[flwr.proto.appio_pb2.PushAppMessagesResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PushAppMessagesResponse]]:
219
- """Push Message"""
220
-
221
- @abc.abstractmethod
222
- def PullMessage(
223
- self,
224
- request: flwr.proto.appio_pb2.PullAppMessagesRequest,
225
- context: _ServicerContext,
226
- ) -> typing.Union[flwr.proto.appio_pb2.PullAppMessagesResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PullAppMessagesResponse]]:
227
- """Pull Message"""
244
+ Get run details
245
+ """
228
246
 
229
247
  @abc.abstractmethod
230
248
  def SendAppHeartbeat(
@@ -240,7 +258,12 @@ class ClientAppIoServicer(metaclass=abc.ABCMeta):
240
258
  request: flwr.proto.message_pb2.PushObjectRequest,
241
259
  context: _ServicerContext,
242
260
  ) -> typing.Union[flwr.proto.message_pb2.PushObjectResponse, collections.abc.Awaitable[flwr.proto.message_pb2.PushObjectResponse]]:
243
- """Push Object"""
261
+ """///////////////////////////////////////////////////////////////////////////
262
+ Specific endpoints shared by ServerAppIo and ClientAppIo
263
+ ///////////////////////////////////////////////////////////////////////////
264
+
265
+ Push Object
266
+ """
244
267
 
245
268
  @abc.abstractmethod
246
269
  def PullObject(
@@ -258,4 +281,41 @@ class ClientAppIoServicer(metaclass=abc.ABCMeta):
258
281
  ) -> typing.Union[flwr.proto.message_pb2.ConfirmMessageReceivedResponse, collections.abc.Awaitable[flwr.proto.message_pb2.ConfirmMessageReceivedResponse]]:
259
282
  """Confirm Message Received"""
260
283
 
284
+ @abc.abstractmethod
285
+ def PullClientAppInputs(
286
+ self,
287
+ request: flwr.proto.appio_pb2.PullAppInputsRequest,
288
+ context: _ServicerContext,
289
+ ) -> typing.Union[flwr.proto.appio_pb2.PullAppInputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PullAppInputsResponse]]:
290
+ """///////////////////////////////////////////////////////////////////////////
291
+ Specific endpoints for ClientAppIo
292
+ ///////////////////////////////////////////////////////////////////////////
293
+
294
+ Pull client app inputs
295
+ """
296
+
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
+ @abc.abstractmethod
314
+ def PullMessage(
315
+ self,
316
+ request: flwr.proto.appio_pb2.PullAppMessagesRequest,
317
+ context: _ServicerContext,
318
+ ) -> typing.Union[flwr.proto.appio_pb2.PullAppMessagesResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PullAppMessagesResponse]]:
319
+ """Pull Message"""
320
+
261
321
  def add_ClientAppIoServicer_to_server(servicer: ClientAppIoServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
@@ -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\x12G\n\x08GetNodes\x12\x1b.flwr.proto.GetNodesRequest\x1a\x1c.flwr.proto.GetNodesResponse\"\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\x12\x41\n\x06GetRun\x12\x19.flwr.proto.GetRunRequest\x1a\x1a.flwr.proto.GetRunResponse\"\x00\x12\x41\n\x06GetFab\x12\x19.flwr.proto.GetFabRequest\x1a\x1a.flwr.proto.GetFabResponse\"\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\x12S\n\x0cGetRunStatus\x12\x1f.flwr.proto.GetRunStatusRequest\x1a .flwr.proto.GetRunStatusResponse\"\x00\x12G\n\x08PushLogs\x12\x1b.flwr.proto.PushLogsRequest\x1a\x1c.flwr.proto.PushLogsResponse\"\x00\x12_\n\x10SendAppHeartbeat\x12#.flwr.proto.SendAppHeartbeatRequest\x1a$.flwr.proto.SendAppHeartbeatResponse\"\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\x62\x06proto3')
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\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\x12V\n\rPullAppInputs\x12 .flwr.proto.PullAppInputsRequest\x1a!.flwr.proto.PullAppInputsResponse\"\x00\x12Y\n\x0ePushAppOutputs\x12!.flwr.proto.PushAppOutputsRequest\x1a\".flwr.proto.PushAppOutputsResponse\"\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)