flwr-nightly 1.14.0.dev20241202__py3-none-any.whl → 1.14.0.dev20241214__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.

Potentially problematic release.


This version of flwr-nightly might be problematic. Click here for more details.

Files changed (108) hide show
  1. flwr/cli/app.py +5 -0
  2. flwr/cli/build.py +1 -0
  3. flwr/cli/cli_user_auth_interceptor.py +86 -0
  4. flwr/cli/config_utils.py +19 -2
  5. flwr/cli/example.py +1 -0
  6. flwr/cli/install.py +1 -0
  7. flwr/cli/log.py +11 -31
  8. flwr/cli/login/__init__.py +22 -0
  9. flwr/cli/login/login.py +83 -0
  10. flwr/cli/ls.py +198 -102
  11. flwr/cli/new/__init__.py +1 -0
  12. flwr/cli/new/new.py +2 -1
  13. flwr/cli/new/templates/app/pyproject.flowertune.toml.tpl +2 -2
  14. flwr/cli/new/templates/app/pyproject.mlx.toml.tpl +1 -2
  15. flwr/cli/run/__init__.py +1 -0
  16. flwr/cli/run/run.py +96 -39
  17. flwr/cli/stop.py +91 -0
  18. flwr/cli/utils.py +109 -1
  19. flwr/client/app.py +3 -2
  20. flwr/client/client.py +1 -0
  21. flwr/client/clientapp/app.py +1 -0
  22. flwr/client/clientapp/utils.py +1 -0
  23. flwr/client/grpc_adapter_client/connection.py +1 -1
  24. flwr/client/grpc_client/connection.py +1 -1
  25. flwr/client/grpc_rere_client/connection.py +3 -3
  26. flwr/client/message_handler/message_handler.py +1 -0
  27. flwr/client/mod/comms_mods.py +1 -0
  28. flwr/client/mod/localdp_mod.py +1 -1
  29. flwr/client/nodestate/__init__.py +1 -0
  30. flwr/client/nodestate/nodestate.py +1 -0
  31. flwr/client/nodestate/nodestate_factory.py +1 -0
  32. flwr/client/rest_client/connection.py +3 -3
  33. flwr/client/supernode/app.py +1 -0
  34. flwr/common/address.py +1 -0
  35. flwr/common/args.py +1 -0
  36. flwr/common/auth_plugin/__init__.py +24 -0
  37. flwr/common/auth_plugin/auth_plugin.py +111 -0
  38. flwr/common/config.py +3 -1
  39. flwr/common/constant.py +17 -1
  40. flwr/common/logger.py +25 -0
  41. flwr/common/message.py +1 -0
  42. flwr/common/object_ref.py +57 -54
  43. flwr/common/pyproject.py +1 -0
  44. flwr/common/record/__init__.py +1 -0
  45. flwr/common/record/parametersrecord.py +1 -0
  46. flwr/common/retry_invoker.py +75 -0
  47. flwr/common/secure_aggregation/secaggplus_utils.py +2 -2
  48. flwr/common/telemetry.py +2 -1
  49. flwr/common/typing.py +12 -0
  50. flwr/common/version.py +1 -0
  51. flwr/proto/exec_pb2.py +38 -14
  52. flwr/proto/exec_pb2.pyi +107 -2
  53. flwr/proto/exec_pb2_grpc.py +102 -0
  54. flwr/proto/exec_pb2_grpc.pyi +39 -0
  55. flwr/proto/fab_pb2.py +4 -4
  56. flwr/proto/fab_pb2.pyi +4 -1
  57. flwr/proto/serverappio_pb2.py +18 -18
  58. flwr/proto/serverappio_pb2.pyi +8 -2
  59. flwr/proto/serverappio_pb2_grpc.py +34 -0
  60. flwr/proto/serverappio_pb2_grpc.pyi +13 -0
  61. flwr/proto/simulationio_pb2.py +2 -2
  62. flwr/proto/simulationio_pb2_grpc.py +34 -0
  63. flwr/proto/simulationio_pb2_grpc.pyi +13 -0
  64. flwr/server/app.py +53 -1
  65. flwr/server/compat/app_utils.py +7 -1
  66. flwr/server/driver/grpc_driver.py +11 -63
  67. flwr/server/driver/inmemory_driver.py +5 -1
  68. flwr/server/serverapp/app.py +9 -2
  69. flwr/server/strategy/dpfedavg_fixed.py +1 -0
  70. flwr/server/superlink/driver/serverappio_grpc.py +1 -0
  71. flwr/server/superlink/driver/serverappio_servicer.py +73 -23
  72. flwr/server/superlink/ffs/disk_ffs.py +1 -0
  73. flwr/server/superlink/fleet/grpc_adapter/grpc_adapter_servicer.py +1 -0
  74. flwr/server/superlink/fleet/grpc_bidi/flower_service_servicer.py +1 -0
  75. flwr/server/superlink/fleet/grpc_rere/fleet_servicer.py +32 -12
  76. flwr/server/superlink/fleet/message_handler/message_handler.py +31 -2
  77. flwr/server/superlink/fleet/rest_rere/rest_api.py +4 -1
  78. flwr/server/superlink/fleet/vce/__init__.py +1 -0
  79. flwr/server/superlink/fleet/vce/backend/__init__.py +1 -0
  80. flwr/server/superlink/fleet/vce/backend/raybackend.py +1 -0
  81. flwr/server/superlink/linkstate/in_memory_linkstate.py +14 -30
  82. flwr/server/superlink/linkstate/linkstate.py +13 -2
  83. flwr/server/superlink/linkstate/sqlite_linkstate.py +24 -44
  84. flwr/server/superlink/simulation/simulationio_servicer.py +20 -0
  85. flwr/server/superlink/utils.py +65 -0
  86. flwr/simulation/app.py +1 -0
  87. flwr/simulation/ray_transport/ray_actor.py +1 -0
  88. flwr/simulation/ray_transport/utils.py +1 -0
  89. flwr/simulation/run_simulation.py +1 -0
  90. flwr/superexec/app.py +1 -0
  91. flwr/superexec/deployment.py +1 -0
  92. flwr/superexec/exec_grpc.py +19 -1
  93. flwr/superexec/exec_servicer.py +76 -2
  94. flwr/superexec/exec_user_auth_interceptor.py +101 -0
  95. flwr/superexec/executor.py +1 -0
  96. {flwr_nightly-1.14.0.dev20241202.dist-info → flwr_nightly-1.14.0.dev20241214.dist-info}/METADATA +8 -7
  97. {flwr_nightly-1.14.0.dev20241202.dist-info → flwr_nightly-1.14.0.dev20241214.dist-info}/RECORD +100 -100
  98. flwr/proto/common_pb2.py +0 -36
  99. flwr/proto/common_pb2.pyi +0 -121
  100. flwr/proto/common_pb2_grpc.py +0 -4
  101. flwr/proto/common_pb2_grpc.pyi +0 -4
  102. flwr/proto/control_pb2.py +0 -27
  103. flwr/proto/control_pb2.pyi +0 -7
  104. flwr/proto/control_pb2_grpc.py +0 -135
  105. flwr/proto/control_pb2_grpc.pyi +0 -53
  106. {flwr_nightly-1.14.0.dev20241202.dist-info → flwr_nightly-1.14.0.dev20241214.dist-info}/LICENSE +0 -0
  107. {flwr_nightly-1.14.0.dev20241202.dist-info → flwr_nightly-1.14.0.dev20241214.dist-info}/WHEEL +0 -0
  108. {flwr_nightly-1.14.0.dev20241202.dist-info → flwr_nightly-1.14.0.dev20241214.dist-info}/entry_points.txt +0 -0
@@ -1,135 +0,0 @@
1
- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
- """Client and server classes corresponding to protobuf-defined services."""
3
- import grpc
4
-
5
- from flwr.proto import run_pb2 as flwr_dot_proto_dot_run__pb2
6
-
7
-
8
- class ControlStub(object):
9
- """Missing associated documentation comment in .proto file."""
10
-
11
- def __init__(self, channel):
12
- """Constructor.
13
-
14
- Args:
15
- channel: A grpc.Channel.
16
- """
17
- self.CreateRun = channel.unary_unary(
18
- '/flwr.proto.Control/CreateRun',
19
- request_serializer=flwr_dot_proto_dot_run__pb2.CreateRunRequest.SerializeToString,
20
- response_deserializer=flwr_dot_proto_dot_run__pb2.CreateRunResponse.FromString,
21
- )
22
- self.GetRunStatus = channel.unary_unary(
23
- '/flwr.proto.Control/GetRunStatus',
24
- request_serializer=flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.SerializeToString,
25
- response_deserializer=flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.FromString,
26
- )
27
- self.UpdateRunStatus = channel.unary_unary(
28
- '/flwr.proto.Control/UpdateRunStatus',
29
- request_serializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.SerializeToString,
30
- response_deserializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusResponse.FromString,
31
- )
32
-
33
-
34
- class ControlServicer(object):
35
- """Missing associated documentation comment in .proto file."""
36
-
37
- def CreateRun(self, request, context):
38
- """Request to create a new run
39
- """
40
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
41
- context.set_details('Method not implemented!')
42
- raise NotImplementedError('Method not implemented!')
43
-
44
- def GetRunStatus(self, request, context):
45
- """Get the status of a given run
46
- """
47
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
48
- context.set_details('Method not implemented!')
49
- raise NotImplementedError('Method not implemented!')
50
-
51
- def UpdateRunStatus(self, request, context):
52
- """Update the status of a given run
53
- """
54
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
55
- context.set_details('Method not implemented!')
56
- raise NotImplementedError('Method not implemented!')
57
-
58
-
59
- def add_ControlServicer_to_server(servicer, server):
60
- rpc_method_handlers = {
61
- 'CreateRun': grpc.unary_unary_rpc_method_handler(
62
- servicer.CreateRun,
63
- request_deserializer=flwr_dot_proto_dot_run__pb2.CreateRunRequest.FromString,
64
- response_serializer=flwr_dot_proto_dot_run__pb2.CreateRunResponse.SerializeToString,
65
- ),
66
- 'GetRunStatus': grpc.unary_unary_rpc_method_handler(
67
- servicer.GetRunStatus,
68
- request_deserializer=flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.FromString,
69
- response_serializer=flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.SerializeToString,
70
- ),
71
- 'UpdateRunStatus': grpc.unary_unary_rpc_method_handler(
72
- servicer.UpdateRunStatus,
73
- request_deserializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.FromString,
74
- response_serializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusResponse.SerializeToString,
75
- ),
76
- }
77
- generic_handler = grpc.method_handlers_generic_handler(
78
- 'flwr.proto.Control', rpc_method_handlers)
79
- server.add_generic_rpc_handlers((generic_handler,))
80
-
81
-
82
- # This class is part of an EXPERIMENTAL API.
83
- class Control(object):
84
- """Missing associated documentation comment in .proto file."""
85
-
86
- @staticmethod
87
- def CreateRun(request,
88
- target,
89
- options=(),
90
- channel_credentials=None,
91
- call_credentials=None,
92
- insecure=False,
93
- compression=None,
94
- wait_for_ready=None,
95
- timeout=None,
96
- metadata=None):
97
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.Control/CreateRun',
98
- flwr_dot_proto_dot_run__pb2.CreateRunRequest.SerializeToString,
99
- flwr_dot_proto_dot_run__pb2.CreateRunResponse.FromString,
100
- options, channel_credentials,
101
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
102
-
103
- @staticmethod
104
- def GetRunStatus(request,
105
- target,
106
- options=(),
107
- channel_credentials=None,
108
- call_credentials=None,
109
- insecure=False,
110
- compression=None,
111
- wait_for_ready=None,
112
- timeout=None,
113
- metadata=None):
114
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.Control/GetRunStatus',
115
- flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.SerializeToString,
116
- flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.FromString,
117
- options, channel_credentials,
118
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
119
-
120
- @staticmethod
121
- def UpdateRunStatus(request,
122
- target,
123
- options=(),
124
- channel_credentials=None,
125
- call_credentials=None,
126
- insecure=False,
127
- compression=None,
128
- wait_for_ready=None,
129
- timeout=None,
130
- metadata=None):
131
- return grpc.experimental.unary_unary(request, target, '/flwr.proto.Control/UpdateRunStatus',
132
- flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.SerializeToString,
133
- flwr_dot_proto_dot_run__pb2.UpdateRunStatusResponse.FromString,
134
- options, channel_credentials,
135
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -1,53 +0,0 @@
1
- """
2
- @generated by mypy-protobuf. Do not edit manually!
3
- isort:skip_file
4
- """
5
- import abc
6
- import flwr.proto.run_pb2
7
- import grpc
8
-
9
- class ControlStub:
10
- def __init__(self, channel: grpc.Channel) -> None: ...
11
- CreateRun: grpc.UnaryUnaryMultiCallable[
12
- flwr.proto.run_pb2.CreateRunRequest,
13
- flwr.proto.run_pb2.CreateRunResponse]
14
- """Request to create a new run"""
15
-
16
- GetRunStatus: grpc.UnaryUnaryMultiCallable[
17
- flwr.proto.run_pb2.GetRunStatusRequest,
18
- flwr.proto.run_pb2.GetRunStatusResponse]
19
- """Get the status of a given run"""
20
-
21
- UpdateRunStatus: grpc.UnaryUnaryMultiCallable[
22
- flwr.proto.run_pb2.UpdateRunStatusRequest,
23
- flwr.proto.run_pb2.UpdateRunStatusResponse]
24
- """Update the status of a given run"""
25
-
26
-
27
- class ControlServicer(metaclass=abc.ABCMeta):
28
- @abc.abstractmethod
29
- def CreateRun(self,
30
- request: flwr.proto.run_pb2.CreateRunRequest,
31
- context: grpc.ServicerContext,
32
- ) -> flwr.proto.run_pb2.CreateRunResponse:
33
- """Request to create a new run"""
34
- pass
35
-
36
- @abc.abstractmethod
37
- def GetRunStatus(self,
38
- request: flwr.proto.run_pb2.GetRunStatusRequest,
39
- context: grpc.ServicerContext,
40
- ) -> flwr.proto.run_pb2.GetRunStatusResponse:
41
- """Get the status of a given run"""
42
- pass
43
-
44
- @abc.abstractmethod
45
- def UpdateRunStatus(self,
46
- request: flwr.proto.run_pb2.UpdateRunStatusRequest,
47
- context: grpc.ServicerContext,
48
- ) -> flwr.proto.run_pb2.UpdateRunStatusResponse:
49
- """Update the status of a given run"""
50
- pass
51
-
52
-
53
- def add_ControlServicer_to_server(servicer: ControlServicer, server: grpc.Server) -> None: ...