flwr-nightly 1.15.0.dev20250129__py3-none-any.whl → 1.16.0.dev20250131__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.
Files changed (56) hide show
  1. flwr/cli/ls.py +3 -2
  2. flwr/cli/new/templates/app/README.md.tpl +3 -2
  3. flwr/cli/new/templates/app/pyproject.baseline.toml.tpl +4 -4
  4. flwr/cli/new/templates/app/pyproject.flowertune.toml.tpl +2 -2
  5. flwr/cli/new/templates/app/pyproject.huggingface.toml.tpl +4 -4
  6. flwr/cli/new/templates/app/pyproject.jax.toml.tpl +2 -2
  7. flwr/cli/new/templates/app/pyproject.mlx.toml.tpl +2 -2
  8. flwr/cli/new/templates/app/pyproject.numpy.toml.tpl +2 -2
  9. flwr/cli/new/templates/app/pyproject.pytorch.toml.tpl +2 -2
  10. flwr/cli/new/templates/app/pyproject.sklearn.toml.tpl +3 -3
  11. flwr/cli/new/templates/app/pyproject.tensorflow.toml.tpl +2 -2
  12. flwr/cli/stop.py +3 -2
  13. flwr/cli/utils.py +1 -1
  14. flwr/client/supernode/app.py +4 -28
  15. flwr/common/args.py +25 -47
  16. flwr/common/config.py +15 -2
  17. flwr/common/logger.py +10 -5
  18. flwr/proto/clientappio_pb2.py +3 -13
  19. flwr/proto/clientappio_pb2_grpc.py +12 -63
  20. flwr/proto/error_pb2.py +3 -13
  21. flwr/proto/error_pb2_grpc.py +0 -20
  22. flwr/proto/exec_pb2.py +5 -15
  23. flwr/proto/exec_pb2_grpc.py +24 -105
  24. flwr/proto/fab_pb2.py +3 -13
  25. flwr/proto/fab_pb2_grpc.py +0 -20
  26. flwr/proto/fleet_pb2.py +4 -14
  27. flwr/proto/fleet_pb2_grpc.py +28 -119
  28. flwr/proto/grpcadapter_pb2.py +4 -14
  29. flwr/proto/grpcadapter_pb2_grpc.py +4 -35
  30. flwr/proto/log_pb2.py +3 -13
  31. flwr/proto/log_pb2_grpc.py +0 -20
  32. flwr/proto/message_pb2.py +5 -15
  33. flwr/proto/message_pb2_grpc.py +0 -20
  34. flwr/proto/node_pb2.py +3 -13
  35. flwr/proto/node_pb2_grpc.py +0 -20
  36. flwr/proto/recordset_pb2.py +8 -18
  37. flwr/proto/recordset_pb2_grpc.py +0 -20
  38. flwr/proto/run_pb2.py +6 -16
  39. flwr/proto/run_pb2_grpc.py +0 -20
  40. flwr/proto/serverappio_pb2.py +26 -45
  41. flwr/proto/serverappio_pb2.pyi +0 -62
  42. flwr/proto/serverappio_pb2_grpc.py +47 -264
  43. flwr/proto/serverappio_pb2_grpc.pyi +7 -27
  44. flwr/proto/simulationio_pb2.py +3 -13
  45. flwr/proto/simulationio_pb2_grpc.py +24 -105
  46. flwr/proto/task_pb2.py +3 -13
  47. flwr/proto/task_pb2_grpc.py +0 -20
  48. flwr/proto/transport_pb2.py +10 -20
  49. flwr/proto/transport_pb2_grpc.py +4 -35
  50. flwr/server/app.py +3 -7
  51. flwr/server/superlink/driver/serverappio_servicer.py +0 -94
  52. {flwr_nightly-1.15.0.dev20250129.dist-info → flwr_nightly-1.16.0.dev20250131.dist-info}/METADATA +3 -3
  53. {flwr_nightly-1.15.0.dev20250129.dist-info → flwr_nightly-1.16.0.dev20250131.dist-info}/RECORD +56 -56
  54. {flwr_nightly-1.15.0.dev20250129.dist-info → flwr_nightly-1.16.0.dev20250131.dist-info}/LICENSE +0 -0
  55. {flwr_nightly-1.15.0.dev20250129.dist-info → flwr_nightly-1.16.0.dev20250131.dist-info}/WHEEL +0 -0
  56. {flwr_nightly-1.15.0.dev20250129.dist-info → flwr_nightly-1.16.0.dev20250131.dist-info}/entry_points.txt +0 -0
flwr/proto/exec_pb2.py CHANGED
@@ -1,22 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
3
  # source: flwr/proto/exec.proto
5
- # Protobuf Python Version: 5.29.0
4
+ # Protobuf Python Version: 4.25.1
6
5
  """Generated protocol buffer code."""
7
6
  from google.protobuf import descriptor as _descriptor
8
7
  from google.protobuf import descriptor_pool as _descriptor_pool
9
- from google.protobuf import runtime_version as _runtime_version
10
8
  from google.protobuf import symbol_database as _symbol_database
11
9
  from google.protobuf.internal import builder as _builder
12
- _runtime_version.ValidateProtobufRuntimeVersion(
13
- _runtime_version.Domain.PUBLIC,
14
- 5,
15
- 29,
16
- 0,
17
- '',
18
- 'flwr/proto/exec.proto'
19
- )
20
10
  # @@protoc_insertion_point(imports)
21
11
 
22
12
  _sym_db = _symbol_database.Default()
@@ -33,11 +23,11 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x66lwr/proto/
33
23
  _globals = globals()
34
24
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
35
25
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.exec_pb2', _globals)
36
- if not _descriptor._USE_C_DESCRIPTORS:
37
- DESCRIPTOR._loaded_options = None
38
- _globals['_STARTRUNREQUEST_OVERRIDECONFIGENTRY']._loaded_options = None
26
+ if _descriptor._USE_C_DESCRIPTORS == False:
27
+ DESCRIPTOR._options = None
28
+ _globals['_STARTRUNREQUEST_OVERRIDECONFIGENTRY']._options = None
39
29
  _globals['_STARTRUNREQUEST_OVERRIDECONFIGENTRY']._serialized_options = b'8\001'
40
- _globals['_LISTRUNSRESPONSE_RUNDICTENTRY']._loaded_options = None
30
+ _globals['_LISTRUNSRESPONSE_RUNDICTENTRY']._options = None
41
31
  _globals['_LISTRUNSRESPONSE_RUNDICTENTRY']._serialized_options = b'8\001'
42
32
  _globals['_STARTRUNREQUEST']._serialized_start=138
43
33
  _globals['_STARTRUNREQUEST']._serialized_end=389
@@ -1,29 +1,9 @@
1
1
  # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
2
  """Client and server classes corresponding to protobuf-defined services."""
3
3
  import grpc
4
- import warnings
5
4
 
6
5
  from flwr.proto import exec_pb2 as flwr_dot_proto_dot_exec__pb2
7
6
 
8
- GRPC_GENERATED_VERSION = '1.69.0'
9
- GRPC_VERSION = grpc.__version__
10
- _version_not_supported = False
11
-
12
- try:
13
- from grpc._utilities import first_version_is_lower
14
- _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
- except ImportError:
16
- _version_not_supported = True
17
-
18
- if _version_not_supported:
19
- raise RuntimeError(
20
- f'The grpc package installed is at version {GRPC_VERSION},'
21
- + f' but the generated code in flwr/proto/exec_pb2_grpc.py depends on'
22
- + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
- + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
- + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
- )
26
-
27
7
 
28
8
  class ExecStub(object):
29
9
  """Missing associated documentation comment in .proto file."""
@@ -38,32 +18,32 @@ class ExecStub(object):
38
18
  '/flwr.proto.Exec/StartRun',
39
19
  request_serializer=flwr_dot_proto_dot_exec__pb2.StartRunRequest.SerializeToString,
40
20
  response_deserializer=flwr_dot_proto_dot_exec__pb2.StartRunResponse.FromString,
41
- _registered_method=True)
21
+ )
42
22
  self.StopRun = channel.unary_unary(
43
23
  '/flwr.proto.Exec/StopRun',
44
24
  request_serializer=flwr_dot_proto_dot_exec__pb2.StopRunRequest.SerializeToString,
45
25
  response_deserializer=flwr_dot_proto_dot_exec__pb2.StopRunResponse.FromString,
46
- _registered_method=True)
26
+ )
47
27
  self.StreamLogs = channel.unary_stream(
48
28
  '/flwr.proto.Exec/StreamLogs',
49
29
  request_serializer=flwr_dot_proto_dot_exec__pb2.StreamLogsRequest.SerializeToString,
50
30
  response_deserializer=flwr_dot_proto_dot_exec__pb2.StreamLogsResponse.FromString,
51
- _registered_method=True)
31
+ )
52
32
  self.ListRuns = channel.unary_unary(
53
33
  '/flwr.proto.Exec/ListRuns',
54
34
  request_serializer=flwr_dot_proto_dot_exec__pb2.ListRunsRequest.SerializeToString,
55
35
  response_deserializer=flwr_dot_proto_dot_exec__pb2.ListRunsResponse.FromString,
56
- _registered_method=True)
36
+ )
57
37
  self.GetLoginDetails = channel.unary_unary(
58
38
  '/flwr.proto.Exec/GetLoginDetails',
59
39
  request_serializer=flwr_dot_proto_dot_exec__pb2.GetLoginDetailsRequest.SerializeToString,
60
40
  response_deserializer=flwr_dot_proto_dot_exec__pb2.GetLoginDetailsResponse.FromString,
61
- _registered_method=True)
41
+ )
62
42
  self.GetAuthTokens = channel.unary_unary(
63
43
  '/flwr.proto.Exec/GetAuthTokens',
64
44
  request_serializer=flwr_dot_proto_dot_exec__pb2.GetAuthTokensRequest.SerializeToString,
65
45
  response_deserializer=flwr_dot_proto_dot_exec__pb2.GetAuthTokensResponse.FromString,
66
- _registered_method=True)
46
+ )
67
47
 
68
48
 
69
49
  class ExecServicer(object):
@@ -148,7 +128,6 @@ def add_ExecServicer_to_server(servicer, server):
148
128
  generic_handler = grpc.method_handlers_generic_handler(
149
129
  'flwr.proto.Exec', rpc_method_handlers)
150
130
  server.add_generic_rpc_handlers((generic_handler,))
151
- server.add_registered_method_handlers('flwr.proto.Exec', rpc_method_handlers)
152
131
 
153
132
 
154
133
  # This class is part of an EXPERIMENTAL API.
@@ -166,21 +145,11 @@ class Exec(object):
166
145
  wait_for_ready=None,
167
146
  timeout=None,
168
147
  metadata=None):
169
- return grpc.experimental.unary_unary(
170
- request,
171
- target,
172
- '/flwr.proto.Exec/StartRun',
148
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.Exec/StartRun',
173
149
  flwr_dot_proto_dot_exec__pb2.StartRunRequest.SerializeToString,
174
150
  flwr_dot_proto_dot_exec__pb2.StartRunResponse.FromString,
175
- options,
176
- channel_credentials,
177
- insecure,
178
- call_credentials,
179
- compression,
180
- wait_for_ready,
181
- timeout,
182
- metadata,
183
- _registered_method=True)
151
+ options, channel_credentials,
152
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
184
153
 
185
154
  @staticmethod
186
155
  def StopRun(request,
@@ -193,21 +162,11 @@ class Exec(object):
193
162
  wait_for_ready=None,
194
163
  timeout=None,
195
164
  metadata=None):
196
- return grpc.experimental.unary_unary(
197
- request,
198
- target,
199
- '/flwr.proto.Exec/StopRun',
165
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.Exec/StopRun',
200
166
  flwr_dot_proto_dot_exec__pb2.StopRunRequest.SerializeToString,
201
167
  flwr_dot_proto_dot_exec__pb2.StopRunResponse.FromString,
202
- options,
203
- channel_credentials,
204
- insecure,
205
- call_credentials,
206
- compression,
207
- wait_for_ready,
208
- timeout,
209
- metadata,
210
- _registered_method=True)
168
+ options, channel_credentials,
169
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
211
170
 
212
171
  @staticmethod
213
172
  def StreamLogs(request,
@@ -220,21 +179,11 @@ class Exec(object):
220
179
  wait_for_ready=None,
221
180
  timeout=None,
222
181
  metadata=None):
223
- return grpc.experimental.unary_stream(
224
- request,
225
- target,
226
- '/flwr.proto.Exec/StreamLogs',
182
+ return grpc.experimental.unary_stream(request, target, '/flwr.proto.Exec/StreamLogs',
227
183
  flwr_dot_proto_dot_exec__pb2.StreamLogsRequest.SerializeToString,
228
184
  flwr_dot_proto_dot_exec__pb2.StreamLogsResponse.FromString,
229
- options,
230
- channel_credentials,
231
- insecure,
232
- call_credentials,
233
- compression,
234
- wait_for_ready,
235
- timeout,
236
- metadata,
237
- _registered_method=True)
185
+ options, channel_credentials,
186
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
238
187
 
239
188
  @staticmethod
240
189
  def ListRuns(request,
@@ -247,21 +196,11 @@ class Exec(object):
247
196
  wait_for_ready=None,
248
197
  timeout=None,
249
198
  metadata=None):
250
- return grpc.experimental.unary_unary(
251
- request,
252
- target,
253
- '/flwr.proto.Exec/ListRuns',
199
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.Exec/ListRuns',
254
200
  flwr_dot_proto_dot_exec__pb2.ListRunsRequest.SerializeToString,
255
201
  flwr_dot_proto_dot_exec__pb2.ListRunsResponse.FromString,
256
- options,
257
- channel_credentials,
258
- insecure,
259
- call_credentials,
260
- compression,
261
- wait_for_ready,
262
- timeout,
263
- metadata,
264
- _registered_method=True)
202
+ options, channel_credentials,
203
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
265
204
 
266
205
  @staticmethod
267
206
  def GetLoginDetails(request,
@@ -274,21 +213,11 @@ class Exec(object):
274
213
  wait_for_ready=None,
275
214
  timeout=None,
276
215
  metadata=None):
277
- return grpc.experimental.unary_unary(
278
- request,
279
- target,
280
- '/flwr.proto.Exec/GetLoginDetails',
216
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.Exec/GetLoginDetails',
281
217
  flwr_dot_proto_dot_exec__pb2.GetLoginDetailsRequest.SerializeToString,
282
218
  flwr_dot_proto_dot_exec__pb2.GetLoginDetailsResponse.FromString,
283
- options,
284
- channel_credentials,
285
- insecure,
286
- call_credentials,
287
- compression,
288
- wait_for_ready,
289
- timeout,
290
- metadata,
291
- _registered_method=True)
219
+ options, channel_credentials,
220
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
292
221
 
293
222
  @staticmethod
294
223
  def GetAuthTokens(request,
@@ -301,18 +230,8 @@ class Exec(object):
301
230
  wait_for_ready=None,
302
231
  timeout=None,
303
232
  metadata=None):
304
- return grpc.experimental.unary_unary(
305
- request,
306
- target,
307
- '/flwr.proto.Exec/GetAuthTokens',
233
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.Exec/GetAuthTokens',
308
234
  flwr_dot_proto_dot_exec__pb2.GetAuthTokensRequest.SerializeToString,
309
235
  flwr_dot_proto_dot_exec__pb2.GetAuthTokensResponse.FromString,
310
- options,
311
- channel_credentials,
312
- insecure,
313
- call_credentials,
314
- compression,
315
- wait_for_ready,
316
- timeout,
317
- metadata,
318
- _registered_method=True)
236
+ options, channel_credentials,
237
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
flwr/proto/fab_pb2.py CHANGED
@@ -1,22 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
3
  # source: flwr/proto/fab.proto
5
- # Protobuf Python Version: 5.29.0
4
+ # Protobuf Python Version: 4.25.1
6
5
  """Generated protocol buffer code."""
7
6
  from google.protobuf import descriptor as _descriptor
8
7
  from google.protobuf import descriptor_pool as _descriptor_pool
9
- from google.protobuf import runtime_version as _runtime_version
10
8
  from google.protobuf import symbol_database as _symbol_database
11
9
  from google.protobuf.internal import builder as _builder
12
- _runtime_version.ValidateProtobufRuntimeVersion(
13
- _runtime_version.Domain.PUBLIC,
14
- 5,
15
- 29,
16
- 0,
17
- '',
18
- 'flwr/proto/fab.proto'
19
- )
20
10
  # @@protoc_insertion_point(imports)
21
11
 
22
12
  _sym_db = _symbol_database.Default()
@@ -30,8 +20,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14\x66lwr/proto/
30
20
  _globals = globals()
31
21
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
22
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.fab_pb2', _globals)
33
- if not _descriptor._USE_C_DESCRIPTORS:
34
- DESCRIPTOR._loaded_options = None
23
+ if _descriptor._USE_C_DESCRIPTORS == False:
24
+ DESCRIPTOR._options = None
35
25
  _globals['_FAB']._serialized_start=59
36
26
  _globals['_FAB']._serialized_end=99
37
27
  _globals['_GETFABREQUEST']._serialized_start=101
@@ -1,24 +1,4 @@
1
1
  # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
2
  """Client and server classes corresponding to protobuf-defined services."""
3
3
  import grpc
4
- import warnings
5
4
 
6
-
7
- GRPC_GENERATED_VERSION = '1.69.0'
8
- GRPC_VERSION = grpc.__version__
9
- _version_not_supported = False
10
-
11
- try:
12
- from grpc._utilities import first_version_is_lower
13
- _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
- except ImportError:
15
- _version_not_supported = True
16
-
17
- if _version_not_supported:
18
- raise RuntimeError(
19
- f'The grpc package installed is at version {GRPC_VERSION},'
20
- + f' but the generated code in flwr/proto/fab_pb2_grpc.py depends on'
21
- + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
- + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
- + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
- )
flwr/proto/fleet_pb2.py CHANGED
@@ -1,22 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
3
  # source: flwr/proto/fleet.proto
5
- # Protobuf Python Version: 5.29.0
4
+ # Protobuf Python Version: 4.25.1
6
5
  """Generated protocol buffer code."""
7
6
  from google.protobuf import descriptor as _descriptor
8
7
  from google.protobuf import descriptor_pool as _descriptor_pool
9
- from google.protobuf import runtime_version as _runtime_version
10
8
  from google.protobuf import symbol_database as _symbol_database
11
9
  from google.protobuf.internal import builder as _builder
12
- _runtime_version.ValidateProtobufRuntimeVersion(
13
- _runtime_version.Domain.PUBLIC,
14
- 5,
15
- 29,
16
- 0,
17
- '',
18
- 'flwr/proto/fleet.proto'
19
- )
20
10
  # @@protoc_insertion_point(imports)
21
11
 
22
12
  _sym_db = _symbol_database.Default()
@@ -33,9 +23,9 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16\x66lwr/proto/
33
23
  _globals = globals()
34
24
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
35
25
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.fleet_pb2', _globals)
36
- if not _descriptor._USE_C_DESCRIPTORS:
37
- DESCRIPTOR._loaded_options = None
38
- _globals['_PUSHMESSAGESRESPONSE_RESULTSENTRY']._loaded_options = None
26
+ if _descriptor._USE_C_DESCRIPTORS == False:
27
+ DESCRIPTOR._options = None
28
+ _globals['_PUSHMESSAGESRESPONSE_RESULTSENTRY']._options = None
39
29
  _globals['_PUSHMESSAGESRESPONSE_RESULTSENTRY']._serialized_options = b'8\001'
40
30
  _globals['_CREATENODEREQUEST']._serialized_start=131
41
31
  _globals['_CREATENODEREQUEST']._serialized_end=173
@@ -1,31 +1,11 @@
1
1
  # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
2
  """Client and server classes corresponding to protobuf-defined services."""
3
3
  import grpc
4
- import warnings
5
4
 
6
5
  from flwr.proto import fab_pb2 as flwr_dot_proto_dot_fab__pb2
7
6
  from flwr.proto import fleet_pb2 as flwr_dot_proto_dot_fleet__pb2
8
7
  from flwr.proto import run_pb2 as flwr_dot_proto_dot_run__pb2
9
8
 
10
- GRPC_GENERATED_VERSION = '1.69.0'
11
- GRPC_VERSION = grpc.__version__
12
- _version_not_supported = False
13
-
14
- try:
15
- from grpc._utilities import first_version_is_lower
16
- _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
17
- except ImportError:
18
- _version_not_supported = True
19
-
20
- if _version_not_supported:
21
- raise RuntimeError(
22
- f'The grpc package installed is at version {GRPC_VERSION},'
23
- + f' but the generated code in flwr/proto/fleet_pb2_grpc.py depends on'
24
- + f' grpcio>={GRPC_GENERATED_VERSION}.'
25
- + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
26
- + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
27
- )
28
-
29
9
 
30
10
  class FleetStub(object):
31
11
  """Missing associated documentation comment in .proto file."""
@@ -40,37 +20,37 @@ class FleetStub(object):
40
20
  '/flwr.proto.Fleet/CreateNode',
41
21
  request_serializer=flwr_dot_proto_dot_fleet__pb2.CreateNodeRequest.SerializeToString,
42
22
  response_deserializer=flwr_dot_proto_dot_fleet__pb2.CreateNodeResponse.FromString,
43
- _registered_method=True)
23
+ )
44
24
  self.DeleteNode = channel.unary_unary(
45
25
  '/flwr.proto.Fleet/DeleteNode',
46
26
  request_serializer=flwr_dot_proto_dot_fleet__pb2.DeleteNodeRequest.SerializeToString,
47
27
  response_deserializer=flwr_dot_proto_dot_fleet__pb2.DeleteNodeResponse.FromString,
48
- _registered_method=True)
28
+ )
49
29
  self.Ping = channel.unary_unary(
50
30
  '/flwr.proto.Fleet/Ping',
51
31
  request_serializer=flwr_dot_proto_dot_fleet__pb2.PingRequest.SerializeToString,
52
32
  response_deserializer=flwr_dot_proto_dot_fleet__pb2.PingResponse.FromString,
53
- _registered_method=True)
33
+ )
54
34
  self.PullMessages = channel.unary_unary(
55
35
  '/flwr.proto.Fleet/PullMessages',
56
36
  request_serializer=flwr_dot_proto_dot_fleet__pb2.PullMessagesRequest.SerializeToString,
57
37
  response_deserializer=flwr_dot_proto_dot_fleet__pb2.PullMessagesResponse.FromString,
58
- _registered_method=True)
38
+ )
59
39
  self.PushMessages = channel.unary_unary(
60
40
  '/flwr.proto.Fleet/PushMessages',
61
41
  request_serializer=flwr_dot_proto_dot_fleet__pb2.PushMessagesRequest.SerializeToString,
62
42
  response_deserializer=flwr_dot_proto_dot_fleet__pb2.PushMessagesResponse.FromString,
63
- _registered_method=True)
43
+ )
64
44
  self.GetRun = channel.unary_unary(
65
45
  '/flwr.proto.Fleet/GetRun',
66
46
  request_serializer=flwr_dot_proto_dot_run__pb2.GetRunRequest.SerializeToString,
67
47
  response_deserializer=flwr_dot_proto_dot_run__pb2.GetRunResponse.FromString,
68
- _registered_method=True)
48
+ )
69
49
  self.GetFab = channel.unary_unary(
70
50
  '/flwr.proto.Fleet/GetFab',
71
51
  request_serializer=flwr_dot_proto_dot_fab__pb2.GetFabRequest.SerializeToString,
72
52
  response_deserializer=flwr_dot_proto_dot_fab__pb2.GetFabResponse.FromString,
73
- _registered_method=True)
53
+ )
74
54
 
75
55
 
76
56
  class FleetServicer(object):
@@ -167,7 +147,6 @@ def add_FleetServicer_to_server(servicer, server):
167
147
  generic_handler = grpc.method_handlers_generic_handler(
168
148
  'flwr.proto.Fleet', rpc_method_handlers)
169
149
  server.add_generic_rpc_handlers((generic_handler,))
170
- server.add_registered_method_handlers('flwr.proto.Fleet', rpc_method_handlers)
171
150
 
172
151
 
173
152
  # This class is part of an EXPERIMENTAL API.
@@ -185,21 +164,11 @@ class Fleet(object):
185
164
  wait_for_ready=None,
186
165
  timeout=None,
187
166
  metadata=None):
188
- return grpc.experimental.unary_unary(
189
- request,
190
- target,
191
- '/flwr.proto.Fleet/CreateNode',
167
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.Fleet/CreateNode',
192
168
  flwr_dot_proto_dot_fleet__pb2.CreateNodeRequest.SerializeToString,
193
169
  flwr_dot_proto_dot_fleet__pb2.CreateNodeResponse.FromString,
194
- options,
195
- channel_credentials,
196
- insecure,
197
- call_credentials,
198
- compression,
199
- wait_for_ready,
200
- timeout,
201
- metadata,
202
- _registered_method=True)
170
+ options, channel_credentials,
171
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
203
172
 
204
173
  @staticmethod
205
174
  def DeleteNode(request,
@@ -212,21 +181,11 @@ class Fleet(object):
212
181
  wait_for_ready=None,
213
182
  timeout=None,
214
183
  metadata=None):
215
- return grpc.experimental.unary_unary(
216
- request,
217
- target,
218
- '/flwr.proto.Fleet/DeleteNode',
184
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.Fleet/DeleteNode',
219
185
  flwr_dot_proto_dot_fleet__pb2.DeleteNodeRequest.SerializeToString,
220
186
  flwr_dot_proto_dot_fleet__pb2.DeleteNodeResponse.FromString,
221
- options,
222
- channel_credentials,
223
- insecure,
224
- call_credentials,
225
- compression,
226
- wait_for_ready,
227
- timeout,
228
- metadata,
229
- _registered_method=True)
187
+ options, channel_credentials,
188
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
230
189
 
231
190
  @staticmethod
232
191
  def Ping(request,
@@ -239,21 +198,11 @@ class Fleet(object):
239
198
  wait_for_ready=None,
240
199
  timeout=None,
241
200
  metadata=None):
242
- return grpc.experimental.unary_unary(
243
- request,
244
- target,
245
- '/flwr.proto.Fleet/Ping',
201
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.Fleet/Ping',
246
202
  flwr_dot_proto_dot_fleet__pb2.PingRequest.SerializeToString,
247
203
  flwr_dot_proto_dot_fleet__pb2.PingResponse.FromString,
248
- options,
249
- channel_credentials,
250
- insecure,
251
- call_credentials,
252
- compression,
253
- wait_for_ready,
254
- timeout,
255
- metadata,
256
- _registered_method=True)
204
+ options, channel_credentials,
205
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
257
206
 
258
207
  @staticmethod
259
208
  def PullMessages(request,
@@ -266,21 +215,11 @@ class Fleet(object):
266
215
  wait_for_ready=None,
267
216
  timeout=None,
268
217
  metadata=None):
269
- return grpc.experimental.unary_unary(
270
- request,
271
- target,
272
- '/flwr.proto.Fleet/PullMessages',
218
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.Fleet/PullMessages',
273
219
  flwr_dot_proto_dot_fleet__pb2.PullMessagesRequest.SerializeToString,
274
220
  flwr_dot_proto_dot_fleet__pb2.PullMessagesResponse.FromString,
275
- options,
276
- channel_credentials,
277
- insecure,
278
- call_credentials,
279
- compression,
280
- wait_for_ready,
281
- timeout,
282
- metadata,
283
- _registered_method=True)
221
+ options, channel_credentials,
222
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
284
223
 
285
224
  @staticmethod
286
225
  def PushMessages(request,
@@ -293,21 +232,11 @@ class Fleet(object):
293
232
  wait_for_ready=None,
294
233
  timeout=None,
295
234
  metadata=None):
296
- return grpc.experimental.unary_unary(
297
- request,
298
- target,
299
- '/flwr.proto.Fleet/PushMessages',
235
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.Fleet/PushMessages',
300
236
  flwr_dot_proto_dot_fleet__pb2.PushMessagesRequest.SerializeToString,
301
237
  flwr_dot_proto_dot_fleet__pb2.PushMessagesResponse.FromString,
302
- options,
303
- channel_credentials,
304
- insecure,
305
- call_credentials,
306
- compression,
307
- wait_for_ready,
308
- timeout,
309
- metadata,
310
- _registered_method=True)
238
+ options, channel_credentials,
239
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
311
240
 
312
241
  @staticmethod
313
242
  def GetRun(request,
@@ -320,21 +249,11 @@ class Fleet(object):
320
249
  wait_for_ready=None,
321
250
  timeout=None,
322
251
  metadata=None):
323
- return grpc.experimental.unary_unary(
324
- request,
325
- target,
326
- '/flwr.proto.Fleet/GetRun',
252
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.Fleet/GetRun',
327
253
  flwr_dot_proto_dot_run__pb2.GetRunRequest.SerializeToString,
328
254
  flwr_dot_proto_dot_run__pb2.GetRunResponse.FromString,
329
- options,
330
- channel_credentials,
331
- insecure,
332
- call_credentials,
333
- compression,
334
- wait_for_ready,
335
- timeout,
336
- metadata,
337
- _registered_method=True)
255
+ options, channel_credentials,
256
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
338
257
 
339
258
  @staticmethod
340
259
  def GetFab(request,
@@ -347,18 +266,8 @@ class Fleet(object):
347
266
  wait_for_ready=None,
348
267
  timeout=None,
349
268
  metadata=None):
350
- return grpc.experimental.unary_unary(
351
- request,
352
- target,
353
- '/flwr.proto.Fleet/GetFab',
269
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.Fleet/GetFab',
354
270
  flwr_dot_proto_dot_fab__pb2.GetFabRequest.SerializeToString,
355
271
  flwr_dot_proto_dot_fab__pb2.GetFabResponse.FromString,
356
- options,
357
- channel_credentials,
358
- insecure,
359
- call_credentials,
360
- compression,
361
- wait_for_ready,
362
- timeout,
363
- metadata,
364
- _registered_method=True)
272
+ options, channel_credentials,
273
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -1,22 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
3
  # source: flwr/proto/grpcadapter.proto
5
- # Protobuf Python Version: 5.29.0
4
+ # Protobuf Python Version: 4.25.1
6
5
  """Generated protocol buffer code."""
7
6
  from google.protobuf import descriptor as _descriptor
8
7
  from google.protobuf import descriptor_pool as _descriptor_pool
9
- from google.protobuf import runtime_version as _runtime_version
10
8
  from google.protobuf import symbol_database as _symbol_database
11
9
  from google.protobuf.internal import builder as _builder
12
- _runtime_version.ValidateProtobufRuntimeVersion(
13
- _runtime_version.Domain.PUBLIC,
14
- 5,
15
- 29,
16
- 0,
17
- '',
18
- 'flwr/proto/grpcadapter.proto'
19
- )
20
10
  # @@protoc_insertion_point(imports)
21
11
 
22
12
  _sym_db = _symbol_database.Default()
@@ -29,9 +19,9 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lwr/proto/
29
19
  _globals = globals()
30
20
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
21
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.grpcadapter_pb2', _globals)
32
- if not _descriptor._USE_C_DESCRIPTORS:
33
- DESCRIPTOR._loaded_options = None
34
- _globals['_MESSAGECONTAINER_METADATAENTRY']._loaded_options = None
22
+ if _descriptor._USE_C_DESCRIPTORS == False:
23
+ DESCRIPTOR._options = None
24
+ _globals['_MESSAGECONTAINER_METADATAENTRY']._options = None
35
25
  _globals['_MESSAGECONTAINER_METADATAENTRY']._serialized_options = b'8\001'
36
26
  _globals['_MESSAGECONTAINER']._serialized_start=45
37
27
  _globals['_MESSAGECONTAINER']._serialized_end=231