flwr-nightly 1.21.0.dev20250804__py3-none-any.whl → 1.21.0.dev20250805__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.
@@ -32,6 +32,7 @@ class ExitCode:
32
32
  SUPERLINK_LICENSE_INVALID = 101
33
33
  SUPERLINK_LICENSE_MISSING = 102
34
34
  SUPERLINK_LICENSE_URL_INVALID = 103
35
+ SUPERLINK_INVALID_ARGS = 104
35
36
 
36
37
  # ServerApp-specific exit codes (200-299)
37
38
 
@@ -75,6 +76,10 @@ EXIT_CODE_HELP = {
75
76
  "The license URL is invalid. Please ensure that the `FLWR_LICENSE_URL` "
76
77
  "environment variable is set to a valid URL."
77
78
  ),
79
+ ExitCode.SUPERLINK_INVALID_ARGS: (
80
+ "Invalid arguments provided to SuperLink. Use `--help` check for the correct "
81
+ "usage. Alternatively, check the documentation."
82
+ ),
78
83
  # ServerApp-specific exit codes (200-299)
79
84
  # SuperNode-specific exit codes (300-399)
80
85
  ExitCode.SUPERNODE_REST_ADDRESS_INVALID: (
flwr/server/app.py CHANGED
@@ -138,6 +138,34 @@ def run_superlink() -> None:
138
138
  WARN, "The `--flwr-dir` option is currently not in use and will be ignored."
139
139
  )
140
140
 
141
+ # Detect if both Control API and Exec API addresses were set explicitly
142
+ explicit_args = set()
143
+ for arg in sys.argv[1:]:
144
+ if arg.startswith("--"):
145
+ explicit_args.add(
146
+ arg.split("=")[0]
147
+ ) # handles both `--arg val` and `--arg=val`
148
+
149
+ control_api_set = "--control-api-address" in explicit_args
150
+ exec_api_set = "--exec-api-address" in explicit_args
151
+
152
+ if control_api_set and exec_api_set:
153
+ flwr_exit(
154
+ ExitCode.SUPERLINK_INVALID_ARGS,
155
+ "Both `--control-api-address` and `--exec-api-address` are set. "
156
+ "Please use only `--control-api-address` as `--exec-api-address` is "
157
+ "deprecated.",
158
+ )
159
+
160
+ # Warn deprecated `--exec-api-address` argument
161
+ if args.exec_api_address is not None:
162
+ log(
163
+ WARN,
164
+ "The `--exec-api-address` argument is deprecated and will be removed in a "
165
+ "future release. Use `--control-api-address` instead.",
166
+ )
167
+ args.control_api_address = args.exec_api_address
168
+
141
169
  # Parse IP addresses
142
170
  serverappio_address, _, _ = _format_address(args.serverappio_api_address)
143
171
  control_address, _, _ = _format_address(args.control_api_address)
@@ -783,6 +811,12 @@ def _add_args_control_api(parser: argparse.ArgumentParser) -> None:
783
811
  f"By default, it is set to {CONTROL_API_DEFAULT_SERVER_ADDRESS}.",
784
812
  default=CONTROL_API_DEFAULT_SERVER_ADDRESS,
785
813
  )
814
+ parser.add_argument(
815
+ "--exec-api-address",
816
+ help="This argument is deprecated and will be removed in a future release. "
817
+ "Use `--control-api-address` instead.",
818
+ default=None,
819
+ )
786
820
  parser.add_argument(
787
821
  "--executor",
788
822
  help="For example: `deployment:exec` or `project.package.module:wrapper.exec`. "
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: flwr-nightly
3
- Version: 1.21.0.dev20250804
3
+ Version: 1.21.0.dev20250805
4
4
  Summary: Flower: A Friendly Federated AI Framework
5
5
  License: Apache-2.0
6
6
  Keywords: Artificial Intelligence,Federated AI,Federated Analytics,Federated Evaluation,Federated Learning,Flower,Machine Learning
@@ -118,7 +118,7 @@ flwr/common/event_log_plugin/__init__.py,sha256=ts3VAL3Fk6Grp1EK_1Qg_V-BfOof9F86
118
118
  flwr/common/event_log_plugin/event_log_plugin.py,sha256=4SkVa1Ic-sPlICJShBuggXmXDcQtWQ1KDby4kthFNF0,2064
119
119
  flwr/common/exit/__init__.py,sha256=-ZOJYLaNnR729a7VzZiFsLiqngzKQh3xc27svYStZ_Q,826
120
120
  flwr/common/exit/exit.py,sha256=mJgbqMlVlwAgYtq-Vedj53wO4VxcDcy_P-GzqGK-1GQ,3452
121
- flwr/common/exit/exit_code.py,sha256=NbjJEywRb5YzDE7Xmo3Kd29inDEQbIUpskY9IEIGomE,4110
121
+ flwr/common/exit/exit_code.py,sha256=qYyLmab5tVfI_ZDdlH-WO7NsOf1jS8WriLXV-BEgWHg,4333
122
122
  flwr/common/exit_handlers.py,sha256=IaqJ60fXZuu7McaRYnoYKtlbH9t4Yl9goNExKqtmQbs,4304
123
123
  flwr/common/grpc.py,sha256=y70hUFvXkIf3l03xOhlb7qhS6W1UJZRSZqCdB0ir0v8,10381
124
124
  flwr/common/heartbeat.py,sha256=SyEpNDnmJ0lni0cWO67rcoJVKasCLmkNHm3dKLeNrLU,5749
@@ -230,7 +230,7 @@ flwr/proto/transport_pb2_grpc.py,sha256=vLN3EHtx2aEEMCO4f1Upu-l27BPzd3-5pV-u8wPc
230
230
  flwr/proto/transport_pb2_grpc.pyi,sha256=AGXf8RiIiW2J5IKMlm_3qT3AzcDa4F3P5IqUjve_esA,766
231
231
  flwr/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
232
232
  flwr/server/__init__.py,sha256=LQQHiuL2jy7TpNaKastRdGsexlxSt5ZWAQNVqitDnrY,1598
233
- flwr/server/app.py,sha256=DOfVw4qehkw9-eV16qR2ISQUbrH1ujb8zam_h-_ckX4,29625
233
+ flwr/server/app.py,sha256=_STQz3zw9EBb5oMBuGUQ7bK-euoHRt2NJ6FwYUb8-Kk,30902
234
234
  flwr/server/client_manager.py,sha256=5jCGavVli7XdupvWWo7ru3PdFTlRU8IGvHFSSoUVLRs,6227
235
235
  flwr/server/client_proxy.py,sha256=sv0E9AldBYOvc3pusqFh-GnyreeMfsXQ1cuTtxTq_wY,2399
236
236
  flwr/server/compat/__init__.py,sha256=0IsttWvY15qO98_1GyzVC-vR1e_ZPXOdu2qUlOkYMPE,886
@@ -379,7 +379,7 @@ flwr/supernode/servicer/__init__.py,sha256=lucTzre5WPK7G1YLCfaqg3rbFWdNSb7ZTt-ca
379
379
  flwr/supernode/servicer/clientappio/__init__.py,sha256=7Oy62Y_oijqF7Dxi6tpcUQyOpLc_QpIRZ83NvwmB0Yg,813
380
380
  flwr/supernode/servicer/clientappio/clientappio_servicer.py,sha256=ClPoKco7Tjj_cxRPhZlQSrOvcGa8sJwGs26LUNZnI3Y,10608
381
381
  flwr/supernode/start_client_internal.py,sha256=iqJR8WbCW-8RQIRNwARZYoxhnlaAo5KnluCOEfRoLWM,21020
382
- flwr_nightly-1.21.0.dev20250804.dist-info/METADATA,sha256=CgyYM6rGfwoI_1yoiVxIwTEnXczef-DwEA-CzBm9IU4,15966
383
- flwr_nightly-1.21.0.dev20250804.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
384
- flwr_nightly-1.21.0.dev20250804.dist-info/entry_points.txt,sha256=jNpDXGBGgs21RqUxelF_jwGaxtqFwm-MQyfz-ZqSjrA,367
385
- flwr_nightly-1.21.0.dev20250804.dist-info/RECORD,,
382
+ flwr_nightly-1.21.0.dev20250805.dist-info/METADATA,sha256=xg10fVg_5H2EM-cTHhx2YfrzC1s2mGqBpBhl8UcGUSI,15966
383
+ flwr_nightly-1.21.0.dev20250805.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
384
+ flwr_nightly-1.21.0.dev20250805.dist-info/entry_points.txt,sha256=jNpDXGBGgs21RqUxelF_jwGaxtqFwm-MQyfz-ZqSjrA,367
385
+ flwr_nightly-1.21.0.dev20250805.dist-info/RECORD,,