flwr-nightly 1.15.0.dev20250129__py3-none-any.whl → 1.15.2.dev20250214__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 (68) hide show
  1. flwr/cli/auth_plugin/oidc_cli_plugin.py +2 -2
  2. flwr/cli/ls.py +3 -2
  3. flwr/cli/new/templates/app/README.baseline.md.tpl +4 -4
  4. flwr/cli/new/templates/app/README.md.tpl +3 -2
  5. flwr/cli/new/templates/app/pyproject.baseline.toml.tpl +4 -4
  6. flwr/cli/new/templates/app/pyproject.flowertune.toml.tpl +2 -2
  7. flwr/cli/new/templates/app/pyproject.huggingface.toml.tpl +4 -4
  8. flwr/cli/new/templates/app/pyproject.jax.toml.tpl +2 -2
  9. flwr/cli/new/templates/app/pyproject.mlx.toml.tpl +2 -2
  10. flwr/cli/new/templates/app/pyproject.numpy.toml.tpl +2 -2
  11. flwr/cli/new/templates/app/pyproject.pytorch.toml.tpl +2 -2
  12. flwr/cli/new/templates/app/pyproject.sklearn.toml.tpl +3 -3
  13. flwr/cli/new/templates/app/pyproject.tensorflow.toml.tpl +2 -2
  14. flwr/cli/stop.py +3 -2
  15. flwr/cli/utils.py +3 -3
  16. flwr/client/supernode/app.py +4 -28
  17. flwr/common/args.py +25 -47
  18. flwr/common/config.py +15 -2
  19. flwr/common/constant.py +9 -7
  20. flwr/common/exit_handlers.py +17 -29
  21. flwr/common/logger.py +10 -5
  22. flwr/common/object_ref.py +0 -14
  23. flwr/proto/clientappio_pb2.py +3 -13
  24. flwr/proto/clientappio_pb2_grpc.py +12 -63
  25. flwr/proto/error_pb2.py +3 -13
  26. flwr/proto/error_pb2_grpc.py +0 -20
  27. flwr/proto/exec_pb2.py +5 -15
  28. flwr/proto/exec_pb2_grpc.py +24 -105
  29. flwr/proto/fab_pb2.py +3 -13
  30. flwr/proto/fab_pb2_grpc.py +0 -20
  31. flwr/proto/fleet_pb2.py +4 -14
  32. flwr/proto/fleet_pb2_grpc.py +28 -119
  33. flwr/proto/grpcadapter_pb2.py +4 -14
  34. flwr/proto/grpcadapter_pb2_grpc.py +4 -35
  35. flwr/proto/log_pb2.py +3 -13
  36. flwr/proto/log_pb2_grpc.py +0 -20
  37. flwr/proto/message_pb2.py +5 -15
  38. flwr/proto/message_pb2_grpc.py +0 -20
  39. flwr/proto/node_pb2.py +3 -13
  40. flwr/proto/node_pb2_grpc.py +0 -20
  41. flwr/proto/recordset_pb2.py +8 -18
  42. flwr/proto/recordset_pb2_grpc.py +0 -20
  43. flwr/proto/run_pb2.py +6 -16
  44. flwr/proto/run_pb2_grpc.py +0 -20
  45. flwr/proto/serverappio_pb2.py +26 -45
  46. flwr/proto/serverappio_pb2.pyi +0 -62
  47. flwr/proto/serverappio_pb2_grpc.py +47 -264
  48. flwr/proto/serverappio_pb2_grpc.pyi +7 -27
  49. flwr/proto/simulationio_pb2.py +3 -13
  50. flwr/proto/simulationio_pb2_grpc.py +24 -105
  51. flwr/proto/task_pb2.py +9 -19
  52. flwr/proto/task_pb2.pyi +1 -4
  53. flwr/proto/task_pb2_grpc.py +0 -20
  54. flwr/proto/transport_pb2.py +10 -20
  55. flwr/proto/transport_pb2_grpc.py +4 -35
  56. flwr/server/app.py +5 -9
  57. flwr/server/driver/inmemory_driver.py +0 -1
  58. flwr/server/superlink/driver/serverappio_servicer.py +1 -99
  59. flwr/server/superlink/fleet/grpc_rere/server_interceptor.py +17 -4
  60. flwr/server/superlink/fleet/message_handler/message_handler.py +0 -4
  61. flwr/server/superlink/fleet/vce/vce_api.py +0 -1
  62. flwr/server/superlink/linkstate/sqlite_linkstate.py +0 -6
  63. flwr/server/utils/validator.py +0 -3
  64. {flwr_nightly-1.15.0.dev20250129.dist-info → flwr_nightly-1.15.2.dev20250214.dist-info}/METADATA +4 -4
  65. {flwr_nightly-1.15.0.dev20250129.dist-info → flwr_nightly-1.15.2.dev20250214.dist-info}/RECORD +68 -68
  66. {flwr_nightly-1.15.0.dev20250129.dist-info → flwr_nightly-1.15.2.dev20250214.dist-info}/LICENSE +0 -0
  67. {flwr_nightly-1.15.0.dev20250129.dist-info → flwr_nightly-1.15.2.dev20250214.dist-info}/WHEEL +0 -0
  68. {flwr_nightly-1.15.0.dev20250129.dist-info → flwr_nightly-1.15.2.dev20250214.dist-info}/entry_points.txt +0 -0
@@ -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 clientappio_pb2 as flwr_dot_proto_dot_clientappio__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/clientappio_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 ClientAppIoStub(object):
29
9
  """Missing associated documentation comment in .proto file."""
@@ -38,17 +18,17 @@ class ClientAppIoStub(object):
38
18
  '/flwr.proto.ClientAppIo/GetToken',
39
19
  request_serializer=flwr_dot_proto_dot_clientappio__pb2.GetTokenRequest.SerializeToString,
40
20
  response_deserializer=flwr_dot_proto_dot_clientappio__pb2.GetTokenResponse.FromString,
41
- _registered_method=True)
21
+ )
42
22
  self.PullClientAppInputs = channel.unary_unary(
43
23
  '/flwr.proto.ClientAppIo/PullClientAppInputs',
44
24
  request_serializer=flwr_dot_proto_dot_clientappio__pb2.PullClientAppInputsRequest.SerializeToString,
45
25
  response_deserializer=flwr_dot_proto_dot_clientappio__pb2.PullClientAppInputsResponse.FromString,
46
- _registered_method=True)
26
+ )
47
27
  self.PushClientAppOutputs = channel.unary_unary(
48
28
  '/flwr.proto.ClientAppIo/PushClientAppOutputs',
49
29
  request_serializer=flwr_dot_proto_dot_clientappio__pb2.PushClientAppOutputsRequest.SerializeToString,
50
30
  response_deserializer=flwr_dot_proto_dot_clientappio__pb2.PushClientAppOutputsResponse.FromString,
51
- _registered_method=True)
31
+ )
52
32
 
53
33
 
54
34
  class ClientAppIoServicer(object):
@@ -97,7 +77,6 @@ def add_ClientAppIoServicer_to_server(servicer, server):
97
77
  generic_handler = grpc.method_handlers_generic_handler(
98
78
  'flwr.proto.ClientAppIo', rpc_method_handlers)
99
79
  server.add_generic_rpc_handlers((generic_handler,))
100
- server.add_registered_method_handlers('flwr.proto.ClientAppIo', rpc_method_handlers)
101
80
 
102
81
 
103
82
  # This class is part of an EXPERIMENTAL API.
@@ -115,21 +94,11 @@ class ClientAppIo(object):
115
94
  wait_for_ready=None,
116
95
  timeout=None,
117
96
  metadata=None):
118
- return grpc.experimental.unary_unary(
119
- request,
120
- target,
121
- '/flwr.proto.ClientAppIo/GetToken',
97
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.ClientAppIo/GetToken',
122
98
  flwr_dot_proto_dot_clientappio__pb2.GetTokenRequest.SerializeToString,
123
99
  flwr_dot_proto_dot_clientappio__pb2.GetTokenResponse.FromString,
124
- options,
125
- channel_credentials,
126
- insecure,
127
- call_credentials,
128
- compression,
129
- wait_for_ready,
130
- timeout,
131
- metadata,
132
- _registered_method=True)
100
+ options, channel_credentials,
101
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
133
102
 
134
103
  @staticmethod
135
104
  def PullClientAppInputs(request,
@@ -142,21 +111,11 @@ class ClientAppIo(object):
142
111
  wait_for_ready=None,
143
112
  timeout=None,
144
113
  metadata=None):
145
- return grpc.experimental.unary_unary(
146
- request,
147
- target,
148
- '/flwr.proto.ClientAppIo/PullClientAppInputs',
114
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.ClientAppIo/PullClientAppInputs',
149
115
  flwr_dot_proto_dot_clientappio__pb2.PullClientAppInputsRequest.SerializeToString,
150
116
  flwr_dot_proto_dot_clientappio__pb2.PullClientAppInputsResponse.FromString,
151
- options,
152
- channel_credentials,
153
- insecure,
154
- call_credentials,
155
- compression,
156
- wait_for_ready,
157
- timeout,
158
- metadata,
159
- _registered_method=True)
117
+ options, channel_credentials,
118
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
160
119
 
161
120
  @staticmethod
162
121
  def PushClientAppOutputs(request,
@@ -169,18 +128,8 @@ class ClientAppIo(object):
169
128
  wait_for_ready=None,
170
129
  timeout=None,
171
130
  metadata=None):
172
- return grpc.experimental.unary_unary(
173
- request,
174
- target,
175
- '/flwr.proto.ClientAppIo/PushClientAppOutputs',
131
+ return grpc.experimental.unary_unary(request, target, '/flwr.proto.ClientAppIo/PushClientAppOutputs',
176
132
  flwr_dot_proto_dot_clientappio__pb2.PushClientAppOutputsRequest.SerializeToString,
177
133
  flwr_dot_proto_dot_clientappio__pb2.PushClientAppOutputsResponse.FromString,
178
- options,
179
- channel_credentials,
180
- insecure,
181
- call_credentials,
182
- compression,
183
- wait_for_ready,
184
- timeout,
185
- metadata,
186
- _registered_method=True)
134
+ options, channel_credentials,
135
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
flwr/proto/error_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/error.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/error.proto'
19
- )
20
10
  # @@protoc_insertion_point(imports)
21
11
 
22
12
  _sym_db = _symbol_database.Default()
@@ -29,8 +19,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16\x66lwr/proto/
29
19
  _globals = globals()
30
20
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
21
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.error_pb2', _globals)
32
- if not _descriptor._USE_C_DESCRIPTORS:
33
- DESCRIPTOR._loaded_options = None
22
+ if _descriptor._USE_C_DESCRIPTORS == False:
23
+ DESCRIPTOR._options = None
34
24
  _globals['_ERROR']._serialized_start=38
35
25
  _globals['_ERROR']._serialized_end=75
36
26
  # @@protoc_insertion_point(module_scope)
@@ -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/error_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/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