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.
- flwr/cli/app.py +5 -0
- flwr/cli/build.py +1 -0
- flwr/cli/cli_user_auth_interceptor.py +86 -0
- flwr/cli/config_utils.py +19 -2
- flwr/cli/example.py +1 -0
- flwr/cli/install.py +1 -0
- flwr/cli/log.py +11 -31
- flwr/cli/login/__init__.py +22 -0
- flwr/cli/login/login.py +83 -0
- flwr/cli/ls.py +198 -102
- flwr/cli/new/__init__.py +1 -0
- flwr/cli/new/new.py +2 -1
- flwr/cli/new/templates/app/pyproject.flowertune.toml.tpl +2 -2
- flwr/cli/new/templates/app/pyproject.mlx.toml.tpl +1 -2
- flwr/cli/run/__init__.py +1 -0
- flwr/cli/run/run.py +96 -39
- flwr/cli/stop.py +91 -0
- flwr/cli/utils.py +109 -1
- flwr/client/app.py +3 -2
- flwr/client/client.py +1 -0
- flwr/client/clientapp/app.py +1 -0
- flwr/client/clientapp/utils.py +1 -0
- flwr/client/grpc_adapter_client/connection.py +1 -1
- flwr/client/grpc_client/connection.py +1 -1
- flwr/client/grpc_rere_client/connection.py +3 -3
- flwr/client/message_handler/message_handler.py +1 -0
- flwr/client/mod/comms_mods.py +1 -0
- flwr/client/mod/localdp_mod.py +1 -1
- flwr/client/nodestate/__init__.py +1 -0
- flwr/client/nodestate/nodestate.py +1 -0
- flwr/client/nodestate/nodestate_factory.py +1 -0
- flwr/client/rest_client/connection.py +3 -3
- flwr/client/supernode/app.py +1 -0
- flwr/common/address.py +1 -0
- flwr/common/args.py +1 -0
- flwr/common/auth_plugin/__init__.py +24 -0
- flwr/common/auth_plugin/auth_plugin.py +111 -0
- flwr/common/config.py +3 -1
- flwr/common/constant.py +17 -1
- flwr/common/logger.py +25 -0
- flwr/common/message.py +1 -0
- flwr/common/object_ref.py +57 -54
- flwr/common/pyproject.py +1 -0
- flwr/common/record/__init__.py +1 -0
- flwr/common/record/parametersrecord.py +1 -0
- flwr/common/retry_invoker.py +75 -0
- flwr/common/secure_aggregation/secaggplus_utils.py +2 -2
- flwr/common/telemetry.py +2 -1
- flwr/common/typing.py +12 -0
- flwr/common/version.py +1 -0
- flwr/proto/exec_pb2.py +38 -14
- flwr/proto/exec_pb2.pyi +107 -2
- flwr/proto/exec_pb2_grpc.py +102 -0
- flwr/proto/exec_pb2_grpc.pyi +39 -0
- flwr/proto/fab_pb2.py +4 -4
- flwr/proto/fab_pb2.pyi +4 -1
- flwr/proto/serverappio_pb2.py +18 -18
- flwr/proto/serverappio_pb2.pyi +8 -2
- flwr/proto/serverappio_pb2_grpc.py +34 -0
- flwr/proto/serverappio_pb2_grpc.pyi +13 -0
- flwr/proto/simulationio_pb2.py +2 -2
- flwr/proto/simulationio_pb2_grpc.py +34 -0
- flwr/proto/simulationio_pb2_grpc.pyi +13 -0
- flwr/server/app.py +53 -1
- flwr/server/compat/app_utils.py +7 -1
- flwr/server/driver/grpc_driver.py +11 -63
- flwr/server/driver/inmemory_driver.py +5 -1
- flwr/server/serverapp/app.py +9 -2
- flwr/server/strategy/dpfedavg_fixed.py +1 -0
- flwr/server/superlink/driver/serverappio_grpc.py +1 -0
- flwr/server/superlink/driver/serverappio_servicer.py +73 -23
- flwr/server/superlink/ffs/disk_ffs.py +1 -0
- flwr/server/superlink/fleet/grpc_adapter/grpc_adapter_servicer.py +1 -0
- flwr/server/superlink/fleet/grpc_bidi/flower_service_servicer.py +1 -0
- flwr/server/superlink/fleet/grpc_rere/fleet_servicer.py +32 -12
- flwr/server/superlink/fleet/message_handler/message_handler.py +31 -2
- flwr/server/superlink/fleet/rest_rere/rest_api.py +4 -1
- flwr/server/superlink/fleet/vce/__init__.py +1 -0
- flwr/server/superlink/fleet/vce/backend/__init__.py +1 -0
- flwr/server/superlink/fleet/vce/backend/raybackend.py +1 -0
- flwr/server/superlink/linkstate/in_memory_linkstate.py +14 -30
- flwr/server/superlink/linkstate/linkstate.py +13 -2
- flwr/server/superlink/linkstate/sqlite_linkstate.py +24 -44
- flwr/server/superlink/simulation/simulationio_servicer.py +20 -0
- flwr/server/superlink/utils.py +65 -0
- flwr/simulation/app.py +1 -0
- flwr/simulation/ray_transport/ray_actor.py +1 -0
- flwr/simulation/ray_transport/utils.py +1 -0
- flwr/simulation/run_simulation.py +1 -0
- flwr/superexec/app.py +1 -0
- flwr/superexec/deployment.py +1 -0
- flwr/superexec/exec_grpc.py +19 -1
- flwr/superexec/exec_servicer.py +76 -2
- flwr/superexec/exec_user_auth_interceptor.py +101 -0
- flwr/superexec/executor.py +1 -0
- {flwr_nightly-1.14.0.dev20241202.dist-info → flwr_nightly-1.14.0.dev20241214.dist-info}/METADATA +8 -7
- {flwr_nightly-1.14.0.dev20241202.dist-info → flwr_nightly-1.14.0.dev20241214.dist-info}/RECORD +100 -100
- flwr/proto/common_pb2.py +0 -36
- flwr/proto/common_pb2.pyi +0 -121
- flwr/proto/common_pb2_grpc.py +0 -4
- flwr/proto/common_pb2_grpc.pyi +0 -4
- flwr/proto/control_pb2.py +0 -27
- flwr/proto/control_pb2.pyi +0 -7
- flwr/proto/control_pb2_grpc.py +0 -135
- flwr/proto/control_pb2_grpc.pyi +0 -53
- {flwr_nightly-1.14.0.dev20241202.dist-info → flwr_nightly-1.14.0.dev20241214.dist-info}/LICENSE +0 -0
- {flwr_nightly-1.14.0.dev20241202.dist-info → flwr_nightly-1.14.0.dev20241214.dist-info}/WHEEL +0 -0
- {flwr_nightly-1.14.0.dev20241202.dist-info → flwr_nightly-1.14.0.dev20241214.dist-info}/entry_points.txt +0 -0
flwr/proto/control_pb2_grpc.py
DELETED
|
@@ -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)
|
flwr/proto/control_pb2_grpc.pyi
DELETED
|
@@ -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: ...
|
{flwr_nightly-1.14.0.dev20241202.dist-info → flwr_nightly-1.14.0.dev20241214.dist-info}/LICENSE
RENAMED
|
File without changes
|
{flwr_nightly-1.14.0.dev20241202.dist-info → flwr_nightly-1.14.0.dev20241214.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|