flwr-nightly 1.26.0.dev20260130__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.
@@ -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,43 +57,41 @@ class ClientAppIoStub:
52
57
  flwr.proto.run_pb2.GetRunRequest,
53
58
  flwr.proto.run_pb2.GetRunResponse,
54
59
  ]
55
- """Get run details"""
60
+ """///////////////////////////////////////////////////////////////////////////
61
+ General *AppIo endpoints for App Executor processes
62
+ ///////////////////////////////////////////////////////////////////////////
63
+
64
+ Get run details
65
+ """
66
+
67
+ SendAppHeartbeat: grpc.UnaryUnaryMultiCallable[
68
+ flwr.proto.heartbeat_pb2.SendAppHeartbeatRequest,
69
+ flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse,
70
+ ]
71
+ """App heartbeat"""
56
72
 
57
- PullClientAppInputs: grpc.UnaryUnaryMultiCallable[
73
+ PullAppInputs: grpc.UnaryUnaryMultiCallable[
58
74
  flwr.proto.appio_pb2.PullAppInputsRequest,
59
75
  flwr.proto.appio_pb2.PullAppInputsResponse,
60
76
  ]
61
- """Pull client app inputs"""
77
+ """Pull app inputs"""
62
78
 
63
- PushClientAppOutputs: grpc.UnaryUnaryMultiCallable[
79
+ PushAppOutputs: grpc.UnaryUnaryMultiCallable[
64
80
  flwr.proto.appio_pb2.PushAppOutputsRequest,
65
81
  flwr.proto.appio_pb2.PushAppOutputsResponse,
66
82
  ]
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"""
74
-
75
- PullMessage: grpc.UnaryUnaryMultiCallable[
76
- flwr.proto.appio_pb2.PullAppMessagesRequest,
77
- flwr.proto.appio_pb2.PullAppMessagesResponse,
78
- ]
79
- """Pull Message"""
80
-
81
- SendAppHeartbeat: grpc.UnaryUnaryMultiCallable[
82
- flwr.proto.heartbeat_pb2.SendAppHeartbeatRequest,
83
- flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse,
84
- ]
85
- """App heartbeat"""
83
+ """Push app outputs"""
86
84
 
87
85
  PushObject: grpc.UnaryUnaryMultiCallable[
88
86
  flwr.proto.message_pb2.PushObjectRequest,
89
87
  flwr.proto.message_pb2.PushObjectResponse,
90
88
  ]
91
- """Push Object"""
89
+ """///////////////////////////////////////////////////////////////////////////
90
+ Specific endpoints shared by ServerAppIo and ClientAppIo
91
+ ///////////////////////////////////////////////////////////////////////////
92
+
93
+ Push Object
94
+ """
92
95
 
93
96
  PullObject: grpc.UnaryUnaryMultiCallable[
94
97
  flwr.proto.message_pb2.PullObjectRequest,
@@ -102,12 +105,34 @@ class ClientAppIoStub:
102
105
  ]
103
106
  """Confirm Message Received"""
104
107
 
108
+ PushMessage: grpc.UnaryUnaryMultiCallable[
109
+ flwr.proto.appio_pb2.PushAppMessagesRequest,
110
+ flwr.proto.appio_pb2.PushAppMessagesResponse,
111
+ ]
112
+ """///////////////////////////////////////////////////////////////////////////
113
+ Specific endpoints for ClientAppIo
114
+ ///////////////////////////////////////////////////////////////////////////
115
+
116
+ Push Message
117
+ """
118
+
119
+ PullMessage: grpc.UnaryUnaryMultiCallable[
120
+ flwr.proto.appio_pb2.PullAppMessagesRequest,
121
+ flwr.proto.appio_pb2.PullAppMessagesResponse,
122
+ ]
123
+ """Pull Message"""
124
+
105
125
  class ClientAppIoAsyncStub:
106
126
  ListAppsToLaunch: grpc.aio.UnaryUnaryMultiCallable[
107
127
  flwr.proto.appio_pb2.ListAppsToLaunchRequest,
108
128
  flwr.proto.appio_pb2.ListAppsToLaunchResponse,
109
129
  ]
110
- """Get run IDs with pending messages"""
130
+ """///////////////////////////////////////////////////////////////////////////
131
+ General *AppIo endpoints for SuperExec processes
132
+ ///////////////////////////////////////////////////////////////////////////
133
+
134
+ Get run IDs with pending messages
135
+ """
111
136
 
112
137
  RequestToken: grpc.aio.UnaryUnaryMultiCallable[
113
138
  flwr.proto.appio_pb2.RequestTokenRequest,
@@ -119,43 +144,41 @@ class ClientAppIoAsyncStub:
119
144
  flwr.proto.run_pb2.GetRunRequest,
120
145
  flwr.proto.run_pb2.GetRunResponse,
121
146
  ]
122
- """Get run details"""
147
+ """///////////////////////////////////////////////////////////////////////////
148
+ General *AppIo endpoints for App Executor processes
149
+ ///////////////////////////////////////////////////////////////////////////
123
150
 
124
- PullClientAppInputs: grpc.aio.UnaryUnaryMultiCallable[
151
+ Get run details
152
+ """
153
+
154
+ SendAppHeartbeat: grpc.aio.UnaryUnaryMultiCallable[
155
+ flwr.proto.heartbeat_pb2.SendAppHeartbeatRequest,
156
+ flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse,
157
+ ]
158
+ """App heartbeat"""
159
+
160
+ PullAppInputs: grpc.aio.UnaryUnaryMultiCallable[
125
161
  flwr.proto.appio_pb2.PullAppInputsRequest,
126
162
  flwr.proto.appio_pb2.PullAppInputsResponse,
127
163
  ]
128
- """Pull client app inputs"""
164
+ """Pull app inputs"""
129
165
 
130
- PushClientAppOutputs: grpc.aio.UnaryUnaryMultiCallable[
166
+ PushAppOutputs: grpc.aio.UnaryUnaryMultiCallable[
131
167
  flwr.proto.appio_pb2.PushAppOutputsRequest,
132
168
  flwr.proto.appio_pb2.PushAppOutputsResponse,
133
169
  ]
134
- """Push client app outputs"""
135
-
136
- PushMessage: grpc.aio.UnaryUnaryMultiCallable[
137
- flwr.proto.appio_pb2.PushAppMessagesRequest,
138
- flwr.proto.appio_pb2.PushAppMessagesResponse,
139
- ]
140
- """Push Message"""
141
-
142
- PullMessage: grpc.aio.UnaryUnaryMultiCallable[
143
- flwr.proto.appio_pb2.PullAppMessagesRequest,
144
- flwr.proto.appio_pb2.PullAppMessagesResponse,
145
- ]
146
- """Pull Message"""
147
-
148
- SendAppHeartbeat: grpc.aio.UnaryUnaryMultiCallable[
149
- flwr.proto.heartbeat_pb2.SendAppHeartbeatRequest,
150
- flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse,
151
- ]
152
- """App heartbeat"""
170
+ """Push app outputs"""
153
171
 
154
172
  PushObject: grpc.aio.UnaryUnaryMultiCallable[
155
173
  flwr.proto.message_pb2.PushObjectRequest,
156
174
  flwr.proto.message_pb2.PushObjectResponse,
157
175
  ]
158
- """Push Object"""
176
+ """///////////////////////////////////////////////////////////////////////////
177
+ Specific endpoints shared by ServerAppIo and ClientAppIo
178
+ ///////////////////////////////////////////////////////////////////////////
179
+
180
+ Push Object
181
+ """
159
182
 
160
183
  PullObject: grpc.aio.UnaryUnaryMultiCallable[
161
184
  flwr.proto.message_pb2.PullObjectRequest,
@@ -169,6 +192,23 @@ class ClientAppIoAsyncStub:
169
192
  ]
170
193
  """Confirm Message Received"""
171
194
 
195
+ PushMessage: grpc.aio.UnaryUnaryMultiCallable[
196
+ flwr.proto.appio_pb2.PushAppMessagesRequest,
197
+ flwr.proto.appio_pb2.PushAppMessagesResponse,
198
+ ]
199
+ """///////////////////////////////////////////////////////////////////////////
200
+ Specific endpoints for ClientAppIo
201
+ ///////////////////////////////////////////////////////////////////////////
202
+
203
+ Push Message
204
+ """
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,47 +237,36 @@ 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"""
240
+ """///////////////////////////////////////////////////////////////////////////
241
+ General *AppIo endpoints for App Executor processes
242
+ ///////////////////////////////////////////////////////////////////////////
196
243
 
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"""
244
+ Get run details
245
+ """
204
246
 
205
247
  @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"""
212
-
213
- @abc.abstractmethod
214
- def PushMessage(
248
+ def SendAppHeartbeat(
215
249
  self,
216
- request: flwr.proto.appio_pb2.PushAppMessagesRequest,
250
+ request: flwr.proto.heartbeat_pb2.SendAppHeartbeatRequest,
217
251
  context: _ServicerContext,
218
- ) -> typing.Union[flwr.proto.appio_pb2.PushAppMessagesResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PushAppMessagesResponse]]:
219
- """Push Message"""
252
+ ) -> typing.Union[flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse, collections.abc.Awaitable[flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse]]:
253
+ """App heartbeat"""
220
254
 
221
255
  @abc.abstractmethod
222
- def PullMessage(
256
+ def PullAppInputs(
223
257
  self,
224
- request: flwr.proto.appio_pb2.PullAppMessagesRequest,
258
+ request: flwr.proto.appio_pb2.PullAppInputsRequest,
225
259
  context: _ServicerContext,
226
- ) -> typing.Union[flwr.proto.appio_pb2.PullAppMessagesResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PullAppMessagesResponse]]:
227
- """Pull Message"""
260
+ ) -> typing.Union[flwr.proto.appio_pb2.PullAppInputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PullAppInputsResponse]]:
261
+ """Pull app inputs"""
228
262
 
229
263
  @abc.abstractmethod
230
- def SendAppHeartbeat(
264
+ def PushAppOutputs(
231
265
  self,
232
- request: flwr.proto.heartbeat_pb2.SendAppHeartbeatRequest,
266
+ request: flwr.proto.appio_pb2.PushAppOutputsRequest,
233
267
  context: _ServicerContext,
234
- ) -> typing.Union[flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse, collections.abc.Awaitable[flwr.proto.heartbeat_pb2.SendAppHeartbeatResponse]]:
235
- """App heartbeat"""
268
+ ) -> typing.Union[flwr.proto.appio_pb2.PushAppOutputsResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PushAppOutputsResponse]]:
269
+ """Push app outputs"""
236
270
 
237
271
  @abc.abstractmethod
238
272
  def PushObject(
@@ -240,7 +274,12 @@ class ClientAppIoServicer(metaclass=abc.ABCMeta):
240
274
  request: flwr.proto.message_pb2.PushObjectRequest,
241
275
  context: _ServicerContext,
242
276
  ) -> typing.Union[flwr.proto.message_pb2.PushObjectResponse, collections.abc.Awaitable[flwr.proto.message_pb2.PushObjectResponse]]:
243
- """Push Object"""
277
+ """///////////////////////////////////////////////////////////////////////////
278
+ Specific endpoints shared by ServerAppIo and ClientAppIo
279
+ ///////////////////////////////////////////////////////////////////////////
280
+
281
+ Push Object
282
+ """
244
283
 
245
284
  @abc.abstractmethod
246
285
  def PullObject(
@@ -258,4 +297,25 @@ class ClientAppIoServicer(metaclass=abc.ABCMeta):
258
297
  ) -> typing.Union[flwr.proto.message_pb2.ConfirmMessageReceivedResponse, collections.abc.Awaitable[flwr.proto.message_pb2.ConfirmMessageReceivedResponse]]:
259
298
  """Confirm Message Received"""
260
299
 
300
+ @abc.abstractmethod
301
+ def PushMessage(
302
+ self,
303
+ request: flwr.proto.appio_pb2.PushAppMessagesRequest,
304
+ context: _ServicerContext,
305
+ ) -> typing.Union[flwr.proto.appio_pb2.PushAppMessagesResponse, collections.abc.Awaitable[flwr.proto.appio_pb2.PushAppMessagesResponse]]:
306
+ """///////////////////////////////////////////////////////////////////////////
307
+ Specific endpoints for ClientAppIo
308
+ ///////////////////////////////////////////////////////////////////////////
309
+
310
+ Push Message
311
+ """
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\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)