flwr-nightly 1.26.0.dev20251226__py3-none-any.whl → 1.26.0.dev20260121__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 (78) hide show
  1. flwr/app/__init__.py +4 -1
  2. flwr/app/message_type.py +29 -0
  3. flwr/app/metadata.py +5 -2
  4. flwr/app/user_config.py +19 -0
  5. flwr/cli/app.py +31 -11
  6. flwr/cli/auth_plugin/oidc_cli_plugin.py +8 -1
  7. flwr/cli/config/__init__.py +21 -0
  8. flwr/cli/config/ls.py +104 -0
  9. flwr/cli/config_migration.py +300 -0
  10. flwr/cli/config_utils.py +53 -0
  11. flwr/cli/constant.py +67 -0
  12. flwr/cli/federation/__init__.py +0 -2
  13. flwr/cli/federation/ls.py +236 -15
  14. flwr/cli/flower_config.py +447 -0
  15. flwr/cli/log.py +21 -35
  16. flwr/cli/ls.py +23 -34
  17. flwr/cli/pull.py +16 -30
  18. flwr/cli/run/run.py +44 -58
  19. flwr/cli/stop.py +21 -30
  20. flwr/cli/typing.py +211 -0
  21. flwr/cli/utils.py +102 -1
  22. flwr/client/message_handler/message_handler.py +2 -1
  23. flwr/client/mod/centraldp_mods.py +1 -1
  24. flwr/client/mod/localdp_mod.py +1 -1
  25. flwr/client/mod/secure_aggregation/secaggplus_mod.py +1 -1
  26. flwr/client/run_info_store.py +2 -1
  27. flwr/clientapp/client_app.py +2 -1
  28. flwr/common/__init__.py +2 -1
  29. flwr/common/config.py +2 -1
  30. flwr/common/constant.py +0 -15
  31. flwr/common/context.py +2 -1
  32. flwr/common/grpc.py +2 -1
  33. flwr/common/serde.py +7 -5
  34. flwr/common/typing.py +1 -2
  35. flwr/compat/client/app.py +6 -9
  36. flwr/compat/client/grpc_client/connection.py +2 -1
  37. flwr/compat/common/constant.py +29 -0
  38. flwr/compat/server/app.py +1 -1
  39. flwr/server/app.py +1 -1
  40. flwr/server/compat/grid_client_proxy.py +2 -1
  41. flwr/server/grid/grpc_grid.py +2 -2
  42. flwr/server/superlink/fleet/grpc_rere/node_auth_server_interceptor.py +13 -12
  43. flwr/server/superlink/linkstate/__init__.py +2 -0
  44. flwr/server/superlink/linkstate/in_memory_linkstate.py +2 -10
  45. flwr/server/superlink/linkstate/linkstate.py +2 -21
  46. flwr/server/superlink/linkstate/sql_linkstate.py +221 -0
  47. flwr/server/superlink/linkstate/sqlite_linkstate.py +2 -24
  48. flwr/server/superlink/linkstate/utils.py +2 -2
  49. flwr/server/workflow/default_workflows.py +2 -1
  50. flwr/server/workflow/secure_aggregation/secaggplus_workflow.py +1 -1
  51. flwr/serverapp/strategy/fedavg.py +1 -1
  52. flwr/serverapp/strategy/fedxgb_cyclic.py +1 -1
  53. flwr/simulation/ray_transport/ray_client_proxy.py +2 -6
  54. flwr/simulation/run_simulation.py +2 -1
  55. flwr/{common → supercore}/address.py +0 -35
  56. flwr/supercore/constant.py +14 -0
  57. flwr/supercore/corestate/sql_corestate.py +153 -0
  58. flwr/supercore/credential_store/__init__.py +33 -0
  59. flwr/supercore/credential_store/credential_store.py +34 -0
  60. flwr/supercore/credential_store/file_credential_store.py +76 -0
  61. flwr/supercore/sql_mixin.py +292 -0
  62. flwr/supercore/sqlite_mixin.py +4 -7
  63. flwr/supercore/state/__init__.py +15 -0
  64. flwr/supercore/state/schema/README.md +125 -0
  65. flwr/supercore/state/schema/__init__.py +15 -0
  66. flwr/supercore/state/schema/corestate_tables.py +36 -0
  67. flwr/supercore/state/schema/linkstate_tables.py +152 -0
  68. flwr/supercore/state/schema/objectstore_tables.py +90 -0
  69. flwr/supercore/utils.py +14 -0
  70. flwr/superlink/servicer/control/control_servicer.py +2 -1
  71. flwr/supernode/servicer/clientappio/clientappio_servicer.py +6 -4
  72. flwr/supernode/start_client_internal.py +3 -2
  73. {flwr_nightly-1.26.0.dev20251226.dist-info → flwr_nightly-1.26.0.dev20260121.dist-info}/METADATA +2 -1
  74. {flwr_nightly-1.26.0.dev20251226.dist-info → flwr_nightly-1.26.0.dev20260121.dist-info}/RECORD +76 -58
  75. flwr/cli/federation/show.py +0 -318
  76. flwr/common/pyproject.py +0 -42
  77. {flwr_nightly-1.26.0.dev20251226.dist-info → flwr_nightly-1.26.0.dev20260121.dist-info}/WHEEL +0 -0
  78. {flwr_nightly-1.26.0.dev20251226.dist-info → flwr_nightly-1.26.0.dev20260121.dist-info}/entry_points.txt +0 -0
flwr/common/pyproject.py DELETED
@@ -1,42 +0,0 @@
1
- # Copyright 2025 Flower Labs GmbH. All Rights Reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
- # ==============================================================================
15
- """Validates the project's name property."""
16
-
17
-
18
- import re
19
-
20
-
21
- def validate_project_name(name: str) -> bool:
22
- """Validate the project name against PEP 621 and PEP 503 specifications.
23
-
24
- Conventions at a glance:
25
- - Must be lowercase
26
- - Must not contain special characters
27
- - Must use hyphens(recommended) or underscores. No spaces.
28
- - Recommended to be no more than 40 characters long (But it can be)
29
-
30
- Parameters
31
- ----------
32
- name : str
33
- The project name to validate.
34
-
35
- Returns
36
- -------
37
- bool
38
- True if the name is valid, False otherwise.
39
- """
40
- if not name or len(name) > 40 or not re.match(r"^[a-z0-9-_]+$", name):
41
- return False
42
- return True