flwr-nightly 1.8.0.dev20240315__py3-none-any.whl → 1.15.0.dev20250115__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- flwr/cli/app.py +16 -2
- flwr/cli/build.py +181 -0
- flwr/cli/cli_user_auth_interceptor.py +90 -0
- flwr/cli/config_utils.py +343 -0
- flwr/cli/example.py +4 -1
- flwr/cli/install.py +253 -0
- flwr/cli/log.py +182 -0
- flwr/{server/superlink/state → cli/login}/__init__.py +4 -10
- flwr/cli/login/login.py +88 -0
- flwr/cli/ls.py +327 -0
- flwr/cli/new/__init__.py +1 -0
- flwr/cli/new/new.py +210 -66
- flwr/cli/new/templates/app/.gitignore.tpl +163 -0
- flwr/cli/new/templates/app/LICENSE.tpl +202 -0
- flwr/cli/new/templates/app/README.baseline.md.tpl +127 -0
- flwr/cli/new/templates/app/README.flowertune.md.tpl +66 -0
- flwr/cli/new/templates/app/README.md.tpl +16 -32
- flwr/cli/new/templates/app/code/__init__.baseline.py.tpl +1 -0
- flwr/cli/new/templates/app/code/__init__.py.tpl +1 -1
- flwr/cli/new/templates/app/code/client.baseline.py.tpl +58 -0
- flwr/cli/new/templates/app/code/client.huggingface.py.tpl +55 -0
- flwr/cli/new/templates/app/code/client.jax.py.tpl +50 -0
- flwr/cli/new/templates/app/code/client.mlx.py.tpl +73 -0
- flwr/cli/new/templates/app/code/client.numpy.py.tpl +7 -7
- flwr/cli/new/templates/app/code/client.pytorch.py.tpl +30 -21
- flwr/cli/new/templates/app/code/client.sklearn.py.tpl +63 -0
- flwr/cli/new/templates/app/code/client.tensorflow.py.tpl +57 -1
- flwr/cli/new/templates/app/code/dataset.baseline.py.tpl +36 -0
- flwr/cli/new/templates/app/code/flwr_tune/__init__.py +15 -0
- flwr/cli/new/templates/app/code/flwr_tune/client_app.py.tpl +126 -0
- flwr/cli/new/templates/app/code/flwr_tune/dataset.py.tpl +87 -0
- flwr/cli/new/templates/app/code/flwr_tune/models.py.tpl +78 -0
- flwr/cli/new/templates/app/code/flwr_tune/server_app.py.tpl +94 -0
- flwr/cli/new/templates/app/code/flwr_tune/strategy.py.tpl +83 -0
- flwr/cli/new/templates/app/code/model.baseline.py.tpl +80 -0
- flwr/cli/new/templates/app/code/server.baseline.py.tpl +46 -0
- flwr/cli/new/templates/app/code/server.huggingface.py.tpl +38 -0
- flwr/cli/new/templates/app/code/server.jax.py.tpl +26 -0
- flwr/cli/new/templates/app/code/server.mlx.py.tpl +31 -0
- flwr/cli/new/templates/app/code/server.numpy.py.tpl +22 -9
- flwr/cli/new/templates/app/code/server.pytorch.py.tpl +21 -18
- flwr/cli/new/templates/app/code/server.sklearn.py.tpl +36 -0
- flwr/cli/new/templates/app/code/server.tensorflow.py.tpl +29 -1
- flwr/cli/new/templates/app/code/strategy.baseline.py.tpl +1 -0
- flwr/cli/new/templates/app/code/task.huggingface.py.tpl +102 -0
- flwr/cli/new/templates/app/code/task.jax.py.tpl +57 -0
- flwr/cli/new/templates/app/code/task.mlx.py.tpl +102 -0
- flwr/cli/new/templates/app/code/task.numpy.py.tpl +7 -0
- flwr/cli/new/templates/app/code/task.pytorch.py.tpl +29 -24
- flwr/cli/new/templates/app/code/task.sklearn.py.tpl +67 -0
- flwr/cli/new/templates/app/code/task.tensorflow.py.tpl +53 -0
- flwr/cli/new/templates/app/code/utils.baseline.py.tpl +1 -0
- flwr/cli/new/templates/app/pyproject.baseline.toml.tpl +138 -0
- flwr/cli/new/templates/app/pyproject.flowertune.toml.tpl +68 -0
- flwr/cli/new/templates/app/pyproject.huggingface.toml.tpl +46 -0
- flwr/cli/new/templates/app/pyproject.jax.toml.tpl +35 -0
- flwr/cli/new/templates/app/pyproject.mlx.toml.tpl +39 -0
- flwr/cli/new/templates/app/pyproject.numpy.toml.tpl +25 -12
- flwr/cli/new/templates/app/pyproject.pytorch.toml.tpl +29 -14
- flwr/cli/new/templates/app/pyproject.sklearn.toml.tpl +35 -0
- flwr/cli/new/templates/app/pyproject.tensorflow.toml.tpl +29 -14
- flwr/cli/run/__init__.py +1 -0
- flwr/cli/run/run.py +212 -34
- flwr/cli/stop.py +130 -0
- flwr/cli/utils.py +240 -5
- flwr/client/__init__.py +3 -2
- flwr/client/app.py +432 -255
- flwr/client/client.py +1 -11
- flwr/client/client_app.py +74 -13
- flwr/client/clientapp/__init__.py +22 -0
- flwr/client/clientapp/app.py +259 -0
- flwr/client/clientapp/clientappio_servicer.py +244 -0
- flwr/client/clientapp/utils.py +115 -0
- flwr/client/dpfedavg_numpy_client.py +7 -8
- flwr/client/grpc_adapter_client/__init__.py +15 -0
- flwr/client/grpc_adapter_client/connection.py +98 -0
- flwr/client/grpc_client/connection.py +21 -7
- flwr/client/grpc_rere_client/__init__.py +1 -1
- flwr/client/grpc_rere_client/client_interceptor.py +176 -0
- flwr/client/grpc_rere_client/connection.py +163 -56
- flwr/client/grpc_rere_client/grpc_adapter.py +167 -0
- flwr/client/heartbeat.py +74 -0
- flwr/client/message_handler/__init__.py +1 -1
- flwr/client/message_handler/message_handler.py +10 -11
- flwr/client/mod/__init__.py +5 -5
- flwr/client/mod/centraldp_mods.py +4 -2
- flwr/client/mod/comms_mods.py +5 -4
- flwr/client/mod/localdp_mod.py +10 -5
- flwr/client/mod/secure_aggregation/__init__.py +1 -1
- flwr/client/mod/secure_aggregation/secaggplus_mod.py +26 -26
- flwr/client/mod/utils.py +2 -4
- flwr/client/nodestate/__init__.py +26 -0
- flwr/client/nodestate/in_memory_nodestate.py +38 -0
- flwr/client/nodestate/nodestate.py +31 -0
- flwr/client/nodestate/nodestate_factory.py +38 -0
- flwr/client/numpy_client.py +8 -31
- flwr/client/rest_client/__init__.py +1 -1
- flwr/client/rest_client/connection.py +199 -176
- flwr/client/run_info_store.py +112 -0
- flwr/client/supernode/__init__.py +24 -0
- flwr/client/supernode/app.py +321 -0
- flwr/client/typing.py +1 -0
- flwr/common/__init__.py +17 -11
- flwr/common/address.py +47 -3
- flwr/common/args.py +153 -0
- flwr/common/auth_plugin/__init__.py +24 -0
- flwr/common/auth_plugin/auth_plugin.py +121 -0
- flwr/common/config.py +243 -0
- flwr/common/constant.py +135 -1
- flwr/common/context.py +32 -2
- flwr/common/date.py +22 -4
- flwr/common/differential_privacy.py +2 -2
- flwr/common/dp.py +2 -4
- flwr/common/exit_handlers.py +3 -3
- flwr/common/grpc.py +164 -5
- flwr/common/logger.py +230 -12
- flwr/common/message.py +191 -106
- flwr/common/object_ref.py +179 -44
- flwr/common/pyproject.py +1 -0
- flwr/common/record/__init__.py +2 -1
- flwr/common/record/configsrecord.py +58 -18
- flwr/common/record/metricsrecord.py +57 -17
- flwr/common/record/parametersrecord.py +88 -20
- flwr/common/record/recordset.py +153 -30
- flwr/common/record/typeddict.py +30 -55
- flwr/common/recordset_compat.py +31 -12
- flwr/common/retry_invoker.py +123 -30
- flwr/common/secure_aggregation/__init__.py +1 -1
- flwr/common/secure_aggregation/crypto/__init__.py +1 -1
- flwr/common/secure_aggregation/crypto/shamir.py +11 -11
- flwr/common/secure_aggregation/crypto/symmetric_encryption.py +68 -4
- flwr/common/secure_aggregation/ndarrays_arithmetic.py +17 -17
- flwr/common/secure_aggregation/quantization.py +8 -8
- flwr/common/secure_aggregation/secaggplus_constants.py +1 -1
- flwr/common/secure_aggregation/secaggplus_utils.py +10 -12
- flwr/common/serde.py +304 -23
- flwr/common/telemetry.py +65 -29
- flwr/common/typing.py +120 -19
- flwr/common/version.py +17 -3
- flwr/proto/clientappio_pb2.py +45 -0
- flwr/proto/clientappio_pb2.pyi +132 -0
- flwr/proto/clientappio_pb2_grpc.py +135 -0
- flwr/proto/clientappio_pb2_grpc.pyi +53 -0
- flwr/proto/exec_pb2.py +62 -0
- flwr/proto/exec_pb2.pyi +212 -0
- flwr/proto/exec_pb2_grpc.py +237 -0
- flwr/proto/exec_pb2_grpc.pyi +93 -0
- flwr/proto/fab_pb2.py +31 -0
- flwr/proto/fab_pb2.pyi +65 -0
- flwr/proto/fab_pb2_grpc.py +4 -0
- flwr/proto/fab_pb2_grpc.pyi +4 -0
- flwr/proto/fleet_pb2.py +42 -23
- flwr/proto/fleet_pb2.pyi +123 -1
- flwr/proto/fleet_pb2_grpc.py +170 -0
- flwr/proto/fleet_pb2_grpc.pyi +61 -0
- flwr/proto/grpcadapter_pb2.py +32 -0
- flwr/proto/grpcadapter_pb2.pyi +43 -0
- flwr/proto/grpcadapter_pb2_grpc.py +66 -0
- flwr/proto/grpcadapter_pb2_grpc.pyi +24 -0
- flwr/proto/log_pb2.py +29 -0
- flwr/proto/log_pb2.pyi +39 -0
- flwr/proto/log_pb2_grpc.py +4 -0
- flwr/proto/log_pb2_grpc.pyi +4 -0
- flwr/proto/message_pb2.py +41 -0
- flwr/proto/message_pb2.pyi +128 -0
- flwr/proto/message_pb2_grpc.py +4 -0
- flwr/proto/message_pb2_grpc.pyi +4 -0
- flwr/proto/node_pb2.py +2 -2
- flwr/proto/node_pb2.pyi +1 -4
- flwr/proto/recordset_pb2.py +35 -33
- flwr/proto/recordset_pb2.pyi +40 -14
- flwr/proto/run_pb2.py +64 -0
- flwr/proto/run_pb2.pyi +268 -0
- flwr/proto/run_pb2_grpc.py +4 -0
- flwr/proto/run_pb2_grpc.pyi +4 -0
- flwr/proto/serverappio_pb2.py +52 -0
- flwr/proto/{driver_pb2.pyi → serverappio_pb2.pyi} +62 -20
- flwr/proto/serverappio_pb2_grpc.py +410 -0
- flwr/proto/serverappio_pb2_grpc.pyi +160 -0
- flwr/proto/simulationio_pb2.py +38 -0
- flwr/proto/simulationio_pb2.pyi +65 -0
- flwr/proto/simulationio_pb2_grpc.py +239 -0
- flwr/proto/simulationio_pb2_grpc.pyi +94 -0
- flwr/proto/task_pb2.py +7 -8
- flwr/proto/task_pb2.pyi +8 -5
- flwr/proto/transport_pb2.py +8 -8
- flwr/proto/transport_pb2.pyi +9 -6
- flwr/server/__init__.py +2 -10
- flwr/server/app.py +579 -402
- flwr/server/client_manager.py +8 -6
- flwr/server/compat/app.py +6 -62
- flwr/server/compat/app_utils.py +14 -9
- flwr/server/compat/driver_client_proxy.py +25 -59
- flwr/server/compat/legacy_context.py +5 -4
- flwr/server/driver/__init__.py +2 -0
- flwr/server/driver/driver.py +36 -131
- flwr/server/driver/grpc_driver.py +220 -81
- flwr/server/driver/inmemory_driver.py +183 -0
- flwr/server/history.py +28 -29
- flwr/server/run_serverapp.py +15 -126
- flwr/server/server.py +50 -44
- flwr/server/server_app.py +59 -10
- flwr/server/serverapp/__init__.py +22 -0
- flwr/server/serverapp/app.py +256 -0
- flwr/server/serverapp_components.py +52 -0
- flwr/server/strategy/__init__.py +2 -2
- flwr/server/strategy/aggregate.py +37 -23
- flwr/server/strategy/bulyan.py +9 -9
- flwr/server/strategy/dp_adaptive_clipping.py +25 -25
- flwr/server/strategy/dp_fixed_clipping.py +23 -22
- flwr/server/strategy/dpfedavg_adaptive.py +8 -8
- flwr/server/strategy/dpfedavg_fixed.py +13 -12
- flwr/server/strategy/fault_tolerant_fedavg.py +11 -11
- flwr/server/strategy/fedadagrad.py +9 -9
- flwr/server/strategy/fedadam.py +20 -10
- flwr/server/strategy/fedavg.py +16 -16
- flwr/server/strategy/fedavg_android.py +17 -17
- flwr/server/strategy/fedavgm.py +9 -9
- flwr/server/strategy/fedmedian.py +5 -5
- flwr/server/strategy/fedopt.py +6 -6
- flwr/server/strategy/fedprox.py +7 -7
- flwr/server/strategy/fedtrimmedavg.py +8 -8
- flwr/server/strategy/fedxgb_bagging.py +12 -12
- flwr/server/strategy/fedxgb_cyclic.py +10 -10
- flwr/server/strategy/fedxgb_nn_avg.py +6 -6
- flwr/server/strategy/fedyogi.py +9 -9
- flwr/server/strategy/krum.py +9 -9
- flwr/server/strategy/qfedavg.py +16 -16
- flwr/server/strategy/strategy.py +10 -10
- flwr/server/superlink/driver/__init__.py +2 -2
- flwr/server/superlink/driver/serverappio_grpc.py +61 -0
- flwr/server/superlink/driver/serverappio_servicer.py +361 -0
- flwr/server/superlink/ffs/__init__.py +24 -0
- flwr/server/superlink/ffs/disk_ffs.py +108 -0
- flwr/server/superlink/ffs/ffs.py +79 -0
- flwr/server/superlink/ffs/ffs_factory.py +47 -0
- flwr/server/superlink/fleet/__init__.py +1 -1
- flwr/server/superlink/fleet/grpc_adapter/__init__.py +15 -0
- flwr/server/superlink/fleet/grpc_adapter/grpc_adapter_servicer.py +162 -0
- flwr/server/superlink/fleet/grpc_bidi/__init__.py +1 -1
- flwr/server/superlink/fleet/grpc_bidi/flower_service_servicer.py +4 -2
- flwr/server/superlink/fleet/grpc_bidi/grpc_bridge.py +3 -2
- flwr/server/superlink/fleet/grpc_bidi/grpc_client_proxy.py +1 -1
- flwr/server/superlink/fleet/grpc_bidi/grpc_server.py +5 -154
- flwr/server/superlink/fleet/grpc_rere/__init__.py +1 -1
- flwr/server/superlink/fleet/grpc_rere/fleet_servicer.py +120 -13
- flwr/server/superlink/fleet/grpc_rere/server_interceptor.py +228 -0
- flwr/server/superlink/fleet/message_handler/__init__.py +1 -1
- flwr/server/superlink/fleet/message_handler/message_handler.py +156 -13
- flwr/server/superlink/fleet/rest_rere/__init__.py +1 -1
- flwr/server/superlink/fleet/rest_rere/rest_api.py +119 -81
- flwr/server/superlink/fleet/vce/__init__.py +1 -0
- flwr/server/superlink/fleet/vce/backend/__init__.py +4 -4
- flwr/server/superlink/fleet/vce/backend/backend.py +8 -9
- flwr/server/superlink/fleet/vce/backend/raybackend.py +87 -68
- flwr/server/superlink/fleet/vce/vce_api.py +208 -146
- flwr/server/superlink/linkstate/__init__.py +28 -0
- flwr/server/superlink/linkstate/in_memory_linkstate.py +569 -0
- flwr/server/superlink/linkstate/linkstate.py +376 -0
- flwr/server/superlink/{state/state_factory.py → linkstate/linkstate_factory.py} +19 -10
- flwr/server/superlink/linkstate/sqlite_linkstate.py +1196 -0
- flwr/server/superlink/linkstate/utils.py +399 -0
- flwr/server/superlink/simulation/__init__.py +15 -0
- flwr/server/superlink/simulation/simulationio_grpc.py +65 -0
- flwr/server/superlink/simulation/simulationio_servicer.py +186 -0
- flwr/server/superlink/utils.py +65 -0
- flwr/server/typing.py +2 -0
- flwr/server/utils/__init__.py +1 -1
- flwr/server/utils/tensorboard.py +5 -5
- flwr/server/utils/validator.py +40 -45
- flwr/server/workflow/default_workflows.py +70 -26
- flwr/server/workflow/secure_aggregation/secagg_workflow.py +1 -0
- flwr/server/workflow/secure_aggregation/secaggplus_workflow.py +40 -27
- flwr/simulation/__init__.py +12 -5
- flwr/simulation/app.py +247 -315
- flwr/simulation/legacy_app.py +404 -0
- flwr/simulation/ray_transport/__init__.py +1 -1
- flwr/simulation/ray_transport/ray_actor.py +42 -67
- flwr/simulation/ray_transport/ray_client_proxy.py +37 -17
- flwr/simulation/ray_transport/utils.py +1 -0
- flwr/simulation/run_simulation.py +306 -163
- flwr/simulation/simulationio_connection.py +89 -0
- flwr/superexec/__init__.py +15 -0
- flwr/superexec/app.py +59 -0
- flwr/superexec/deployment.py +188 -0
- flwr/superexec/exec_grpc.py +80 -0
- flwr/superexec/exec_servicer.py +231 -0
- flwr/superexec/exec_user_auth_interceptor.py +101 -0
- flwr/superexec/executor.py +96 -0
- flwr/superexec/simulation.py +124 -0
- {flwr_nightly-1.8.0.dev20240315.dist-info → flwr_nightly-1.15.0.dev20250115.dist-info}/METADATA +33 -26
- flwr_nightly-1.15.0.dev20250115.dist-info/RECORD +328 -0
- flwr_nightly-1.15.0.dev20250115.dist-info/entry_points.txt +12 -0
- flwr/cli/flower_toml.py +0 -140
- flwr/cli/new/templates/app/flower.toml.tpl +0 -13
- flwr/cli/new/templates/app/requirements.numpy.txt.tpl +0 -2
- flwr/cli/new/templates/app/requirements.pytorch.txt.tpl +0 -4
- flwr/cli/new/templates/app/requirements.tensorflow.txt.tpl +0 -4
- flwr/client/node_state.py +0 -48
- flwr/client/node_state_tests.py +0 -65
- flwr/proto/driver_pb2.py +0 -44
- flwr/proto/driver_pb2_grpc.py +0 -169
- flwr/proto/driver_pb2_grpc.pyi +0 -66
- flwr/server/superlink/driver/driver_grpc.py +0 -54
- flwr/server/superlink/driver/driver_servicer.py +0 -129
- flwr/server/superlink/state/in_memory_state.py +0 -230
- flwr/server/superlink/state/sqlite_state.py +0 -630
- flwr/server/superlink/state/state.py +0 -154
- flwr_nightly-1.8.0.dev20240315.dist-info/RECORD +0 -211
- flwr_nightly-1.8.0.dev20240315.dist-info/entry_points.txt +0 -9
- {flwr_nightly-1.8.0.dev20240315.dist-info → flwr_nightly-1.15.0.dev20250115.dist-info}/LICENSE +0 -0
- {flwr_nightly-1.8.0.dev20240315.dist-info → flwr_nightly-1.15.0.dev20250115.dist-info}/WHEEL +0 -0
@@ -3,7 +3,10 @@
|
|
3
3
|
isort:skip_file
|
4
4
|
"""
|
5
5
|
import builtins
|
6
|
+
import flwr.proto.fab_pb2
|
7
|
+
import flwr.proto.message_pb2
|
6
8
|
import flwr.proto.node_pb2
|
9
|
+
import flwr.proto.run_pb2
|
7
10
|
import flwr.proto.task_pb2
|
8
11
|
import google.protobuf.descriptor
|
9
12
|
import google.protobuf.internal.containers
|
@@ -13,24 +16,6 @@ import typing_extensions
|
|
13
16
|
|
14
17
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
15
18
|
|
16
|
-
class CreateRunRequest(google.protobuf.message.Message):
|
17
|
-
"""CreateRun"""
|
18
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
19
|
-
def __init__(self,
|
20
|
-
) -> None: ...
|
21
|
-
global___CreateRunRequest = CreateRunRequest
|
22
|
-
|
23
|
-
class CreateRunResponse(google.protobuf.message.Message):
|
24
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
25
|
-
RUN_ID_FIELD_NUMBER: builtins.int
|
26
|
-
run_id: builtins.int
|
27
|
-
def __init__(self,
|
28
|
-
*,
|
29
|
-
run_id: builtins.int = ...,
|
30
|
-
) -> None: ...
|
31
|
-
def ClearField(self, field_name: typing_extensions.Literal["run_id",b"run_id"]) -> None: ...
|
32
|
-
global___CreateRunResponse = CreateRunResponse
|
33
|
-
|
34
19
|
class GetNodesRequest(google.protobuf.message.Message):
|
35
20
|
"""GetNodes messages"""
|
36
21
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
@@ -59,13 +44,16 @@ class PushTaskInsRequest(google.protobuf.message.Message):
|
|
59
44
|
"""PushTaskIns messages"""
|
60
45
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
61
46
|
TASK_INS_LIST_FIELD_NUMBER: builtins.int
|
47
|
+
RUN_ID_FIELD_NUMBER: builtins.int
|
62
48
|
@property
|
63
49
|
def task_ins_list(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[flwr.proto.task_pb2.TaskIns]: ...
|
50
|
+
run_id: builtins.int
|
64
51
|
def __init__(self,
|
65
52
|
*,
|
66
53
|
task_ins_list: typing.Optional[typing.Iterable[flwr.proto.task_pb2.TaskIns]] = ...,
|
54
|
+
run_id: builtins.int = ...,
|
67
55
|
) -> None: ...
|
68
|
-
def ClearField(self, field_name: typing_extensions.Literal["task_ins_list",b"task_ins_list"]) -> None: ...
|
56
|
+
def ClearField(self, field_name: typing_extensions.Literal["run_id",b"run_id","task_ins_list",b"task_ins_list"]) -> None: ...
|
69
57
|
global___PushTaskInsRequest = PushTaskInsRequest
|
70
58
|
|
71
59
|
class PushTaskInsResponse(google.protobuf.message.Message):
|
@@ -85,17 +73,20 @@ class PullTaskResRequest(google.protobuf.message.Message):
|
|
85
73
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
86
74
|
NODE_FIELD_NUMBER: builtins.int
|
87
75
|
TASK_IDS_FIELD_NUMBER: builtins.int
|
76
|
+
RUN_ID_FIELD_NUMBER: builtins.int
|
88
77
|
@property
|
89
78
|
def node(self) -> flwr.proto.node_pb2.Node: ...
|
90
79
|
@property
|
91
80
|
def task_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
|
81
|
+
run_id: builtins.int
|
92
82
|
def __init__(self,
|
93
83
|
*,
|
94
84
|
node: typing.Optional[flwr.proto.node_pb2.Node] = ...,
|
95
85
|
task_ids: typing.Optional[typing.Iterable[typing.Text]] = ...,
|
86
|
+
run_id: builtins.int = ...,
|
96
87
|
) -> None: ...
|
97
88
|
def HasField(self, field_name: typing_extensions.Literal["node",b"node"]) -> builtins.bool: ...
|
98
|
-
def ClearField(self, field_name: typing_extensions.Literal["node",b"node","task_ids",b"task_ids"]) -> None: ...
|
89
|
+
def ClearField(self, field_name: typing_extensions.Literal["node",b"node","run_id",b"run_id","task_ids",b"task_ids"]) -> None: ...
|
99
90
|
global___PullTaskResRequest = PullTaskResRequest
|
100
91
|
|
101
92
|
class PullTaskResResponse(google.protobuf.message.Message):
|
@@ -109,3 +100,54 @@ class PullTaskResResponse(google.protobuf.message.Message):
|
|
109
100
|
) -> None: ...
|
110
101
|
def ClearField(self, field_name: typing_extensions.Literal["task_res_list",b"task_res_list"]) -> None: ...
|
111
102
|
global___PullTaskResResponse = PullTaskResResponse
|
103
|
+
|
104
|
+
class PullServerAppInputsRequest(google.protobuf.message.Message):
|
105
|
+
"""PullServerAppInputs messages"""
|
106
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
107
|
+
def __init__(self,
|
108
|
+
) -> None: ...
|
109
|
+
global___PullServerAppInputsRequest = PullServerAppInputsRequest
|
110
|
+
|
111
|
+
class PullServerAppInputsResponse(google.protobuf.message.Message):
|
112
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
113
|
+
CONTEXT_FIELD_NUMBER: builtins.int
|
114
|
+
RUN_FIELD_NUMBER: builtins.int
|
115
|
+
FAB_FIELD_NUMBER: builtins.int
|
116
|
+
@property
|
117
|
+
def context(self) -> flwr.proto.message_pb2.Context: ...
|
118
|
+
@property
|
119
|
+
def run(self) -> flwr.proto.run_pb2.Run: ...
|
120
|
+
@property
|
121
|
+
def fab(self) -> flwr.proto.fab_pb2.Fab: ...
|
122
|
+
def __init__(self,
|
123
|
+
*,
|
124
|
+
context: typing.Optional[flwr.proto.message_pb2.Context] = ...,
|
125
|
+
run: typing.Optional[flwr.proto.run_pb2.Run] = ...,
|
126
|
+
fab: typing.Optional[flwr.proto.fab_pb2.Fab] = ...,
|
127
|
+
) -> None: ...
|
128
|
+
def HasField(self, field_name: typing_extensions.Literal["context",b"context","fab",b"fab","run",b"run"]) -> builtins.bool: ...
|
129
|
+
def ClearField(self, field_name: typing_extensions.Literal["context",b"context","fab",b"fab","run",b"run"]) -> None: ...
|
130
|
+
global___PullServerAppInputsResponse = PullServerAppInputsResponse
|
131
|
+
|
132
|
+
class PushServerAppOutputsRequest(google.protobuf.message.Message):
|
133
|
+
"""PushServerAppOutputs messages"""
|
134
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
135
|
+
RUN_ID_FIELD_NUMBER: builtins.int
|
136
|
+
CONTEXT_FIELD_NUMBER: builtins.int
|
137
|
+
run_id: builtins.int
|
138
|
+
@property
|
139
|
+
def context(self) -> flwr.proto.message_pb2.Context: ...
|
140
|
+
def __init__(self,
|
141
|
+
*,
|
142
|
+
run_id: builtins.int = ...,
|
143
|
+
context: typing.Optional[flwr.proto.message_pb2.Context] = ...,
|
144
|
+
) -> None: ...
|
145
|
+
def HasField(self, field_name: typing_extensions.Literal["context",b"context"]) -> builtins.bool: ...
|
146
|
+
def ClearField(self, field_name: typing_extensions.Literal["context",b"context","run_id",b"run_id"]) -> None: ...
|
147
|
+
global___PushServerAppOutputsRequest = PushServerAppOutputsRequest
|
148
|
+
|
149
|
+
class PushServerAppOutputsResponse(google.protobuf.message.Message):
|
150
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
151
|
+
def __init__(self,
|
152
|
+
) -> None: ...
|
153
|
+
global___PushServerAppOutputsResponse = PushServerAppOutputsResponse
|
@@ -0,0 +1,410 @@
|
|
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 fab_pb2 as flwr_dot_proto_dot_fab__pb2
|
6
|
+
from flwr.proto import log_pb2 as flwr_dot_proto_dot_log__pb2
|
7
|
+
from flwr.proto import run_pb2 as flwr_dot_proto_dot_run__pb2
|
8
|
+
from flwr.proto import serverappio_pb2 as flwr_dot_proto_dot_serverappio__pb2
|
9
|
+
|
10
|
+
|
11
|
+
class ServerAppIoStub(object):
|
12
|
+
"""Missing associated documentation comment in .proto file."""
|
13
|
+
|
14
|
+
def __init__(self, channel):
|
15
|
+
"""Constructor.
|
16
|
+
|
17
|
+
Args:
|
18
|
+
channel: A grpc.Channel.
|
19
|
+
"""
|
20
|
+
self.CreateRun = channel.unary_unary(
|
21
|
+
'/flwr.proto.ServerAppIo/CreateRun',
|
22
|
+
request_serializer=flwr_dot_proto_dot_run__pb2.CreateRunRequest.SerializeToString,
|
23
|
+
response_deserializer=flwr_dot_proto_dot_run__pb2.CreateRunResponse.FromString,
|
24
|
+
)
|
25
|
+
self.GetNodes = channel.unary_unary(
|
26
|
+
'/flwr.proto.ServerAppIo/GetNodes',
|
27
|
+
request_serializer=flwr_dot_proto_dot_serverappio__pb2.GetNodesRequest.SerializeToString,
|
28
|
+
response_deserializer=flwr_dot_proto_dot_serverappio__pb2.GetNodesResponse.FromString,
|
29
|
+
)
|
30
|
+
self.PushTaskIns = channel.unary_unary(
|
31
|
+
'/flwr.proto.ServerAppIo/PushTaskIns',
|
32
|
+
request_serializer=flwr_dot_proto_dot_serverappio__pb2.PushTaskInsRequest.SerializeToString,
|
33
|
+
response_deserializer=flwr_dot_proto_dot_serverappio__pb2.PushTaskInsResponse.FromString,
|
34
|
+
)
|
35
|
+
self.PullTaskRes = channel.unary_unary(
|
36
|
+
'/flwr.proto.ServerAppIo/PullTaskRes',
|
37
|
+
request_serializer=flwr_dot_proto_dot_serverappio__pb2.PullTaskResRequest.SerializeToString,
|
38
|
+
response_deserializer=flwr_dot_proto_dot_serverappio__pb2.PullTaskResResponse.FromString,
|
39
|
+
)
|
40
|
+
self.GetRun = channel.unary_unary(
|
41
|
+
'/flwr.proto.ServerAppIo/GetRun',
|
42
|
+
request_serializer=flwr_dot_proto_dot_run__pb2.GetRunRequest.SerializeToString,
|
43
|
+
response_deserializer=flwr_dot_proto_dot_run__pb2.GetRunResponse.FromString,
|
44
|
+
)
|
45
|
+
self.GetFab = channel.unary_unary(
|
46
|
+
'/flwr.proto.ServerAppIo/GetFab',
|
47
|
+
request_serializer=flwr_dot_proto_dot_fab__pb2.GetFabRequest.SerializeToString,
|
48
|
+
response_deserializer=flwr_dot_proto_dot_fab__pb2.GetFabResponse.FromString,
|
49
|
+
)
|
50
|
+
self.PullServerAppInputs = channel.unary_unary(
|
51
|
+
'/flwr.proto.ServerAppIo/PullServerAppInputs',
|
52
|
+
request_serializer=flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsRequest.SerializeToString,
|
53
|
+
response_deserializer=flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsResponse.FromString,
|
54
|
+
)
|
55
|
+
self.PushServerAppOutputs = channel.unary_unary(
|
56
|
+
'/flwr.proto.ServerAppIo/PushServerAppOutputs',
|
57
|
+
request_serializer=flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsRequest.SerializeToString,
|
58
|
+
response_deserializer=flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsResponse.FromString,
|
59
|
+
)
|
60
|
+
self.UpdateRunStatus = channel.unary_unary(
|
61
|
+
'/flwr.proto.ServerAppIo/UpdateRunStatus',
|
62
|
+
request_serializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.SerializeToString,
|
63
|
+
response_deserializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusResponse.FromString,
|
64
|
+
)
|
65
|
+
self.GetRunStatus = channel.unary_unary(
|
66
|
+
'/flwr.proto.ServerAppIo/GetRunStatus',
|
67
|
+
request_serializer=flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.SerializeToString,
|
68
|
+
response_deserializer=flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.FromString,
|
69
|
+
)
|
70
|
+
self.PushLogs = channel.unary_unary(
|
71
|
+
'/flwr.proto.ServerAppIo/PushLogs',
|
72
|
+
request_serializer=flwr_dot_proto_dot_log__pb2.PushLogsRequest.SerializeToString,
|
73
|
+
response_deserializer=flwr_dot_proto_dot_log__pb2.PushLogsResponse.FromString,
|
74
|
+
)
|
75
|
+
|
76
|
+
|
77
|
+
class ServerAppIoServicer(object):
|
78
|
+
"""Missing associated documentation comment in .proto file."""
|
79
|
+
|
80
|
+
def CreateRun(self, request, context):
|
81
|
+
"""Request run_id
|
82
|
+
"""
|
83
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
84
|
+
context.set_details('Method not implemented!')
|
85
|
+
raise NotImplementedError('Method not implemented!')
|
86
|
+
|
87
|
+
def GetNodes(self, request, context):
|
88
|
+
"""Return a set of nodes
|
89
|
+
"""
|
90
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
91
|
+
context.set_details('Method not implemented!')
|
92
|
+
raise NotImplementedError('Method not implemented!')
|
93
|
+
|
94
|
+
def PushTaskIns(self, request, context):
|
95
|
+
"""Create one or more tasks
|
96
|
+
"""
|
97
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
98
|
+
context.set_details('Method not implemented!')
|
99
|
+
raise NotImplementedError('Method not implemented!')
|
100
|
+
|
101
|
+
def PullTaskRes(self, request, context):
|
102
|
+
"""Get task results
|
103
|
+
"""
|
104
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
105
|
+
context.set_details('Method not implemented!')
|
106
|
+
raise NotImplementedError('Method not implemented!')
|
107
|
+
|
108
|
+
def GetRun(self, request, context):
|
109
|
+
"""Get run details
|
110
|
+
"""
|
111
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
112
|
+
context.set_details('Method not implemented!')
|
113
|
+
raise NotImplementedError('Method not implemented!')
|
114
|
+
|
115
|
+
def GetFab(self, request, context):
|
116
|
+
"""Get FAB
|
117
|
+
"""
|
118
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
119
|
+
context.set_details('Method not implemented!')
|
120
|
+
raise NotImplementedError('Method not implemented!')
|
121
|
+
|
122
|
+
def PullServerAppInputs(self, request, context):
|
123
|
+
"""Pull ServerApp inputs
|
124
|
+
"""
|
125
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
126
|
+
context.set_details('Method not implemented!')
|
127
|
+
raise NotImplementedError('Method not implemented!')
|
128
|
+
|
129
|
+
def PushServerAppOutputs(self, request, context):
|
130
|
+
"""Push ServerApp outputs
|
131
|
+
"""
|
132
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
133
|
+
context.set_details('Method not implemented!')
|
134
|
+
raise NotImplementedError('Method not implemented!')
|
135
|
+
|
136
|
+
def UpdateRunStatus(self, request, context):
|
137
|
+
"""Update the status of a given run
|
138
|
+
"""
|
139
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
140
|
+
context.set_details('Method not implemented!')
|
141
|
+
raise NotImplementedError('Method not implemented!')
|
142
|
+
|
143
|
+
def GetRunStatus(self, request, context):
|
144
|
+
"""Get the status of a given run
|
145
|
+
"""
|
146
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
147
|
+
context.set_details('Method not implemented!')
|
148
|
+
raise NotImplementedError('Method not implemented!')
|
149
|
+
|
150
|
+
def PushLogs(self, request, context):
|
151
|
+
"""Push ServerApp logs
|
152
|
+
"""
|
153
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
154
|
+
context.set_details('Method not implemented!')
|
155
|
+
raise NotImplementedError('Method not implemented!')
|
156
|
+
|
157
|
+
|
158
|
+
def add_ServerAppIoServicer_to_server(servicer, server):
|
159
|
+
rpc_method_handlers = {
|
160
|
+
'CreateRun': grpc.unary_unary_rpc_method_handler(
|
161
|
+
servicer.CreateRun,
|
162
|
+
request_deserializer=flwr_dot_proto_dot_run__pb2.CreateRunRequest.FromString,
|
163
|
+
response_serializer=flwr_dot_proto_dot_run__pb2.CreateRunResponse.SerializeToString,
|
164
|
+
),
|
165
|
+
'GetNodes': grpc.unary_unary_rpc_method_handler(
|
166
|
+
servicer.GetNodes,
|
167
|
+
request_deserializer=flwr_dot_proto_dot_serverappio__pb2.GetNodesRequest.FromString,
|
168
|
+
response_serializer=flwr_dot_proto_dot_serverappio__pb2.GetNodesResponse.SerializeToString,
|
169
|
+
),
|
170
|
+
'PushTaskIns': grpc.unary_unary_rpc_method_handler(
|
171
|
+
servicer.PushTaskIns,
|
172
|
+
request_deserializer=flwr_dot_proto_dot_serverappio__pb2.PushTaskInsRequest.FromString,
|
173
|
+
response_serializer=flwr_dot_proto_dot_serverappio__pb2.PushTaskInsResponse.SerializeToString,
|
174
|
+
),
|
175
|
+
'PullTaskRes': grpc.unary_unary_rpc_method_handler(
|
176
|
+
servicer.PullTaskRes,
|
177
|
+
request_deserializer=flwr_dot_proto_dot_serverappio__pb2.PullTaskResRequest.FromString,
|
178
|
+
response_serializer=flwr_dot_proto_dot_serverappio__pb2.PullTaskResResponse.SerializeToString,
|
179
|
+
),
|
180
|
+
'GetRun': grpc.unary_unary_rpc_method_handler(
|
181
|
+
servicer.GetRun,
|
182
|
+
request_deserializer=flwr_dot_proto_dot_run__pb2.GetRunRequest.FromString,
|
183
|
+
response_serializer=flwr_dot_proto_dot_run__pb2.GetRunResponse.SerializeToString,
|
184
|
+
),
|
185
|
+
'GetFab': grpc.unary_unary_rpc_method_handler(
|
186
|
+
servicer.GetFab,
|
187
|
+
request_deserializer=flwr_dot_proto_dot_fab__pb2.GetFabRequest.FromString,
|
188
|
+
response_serializer=flwr_dot_proto_dot_fab__pb2.GetFabResponse.SerializeToString,
|
189
|
+
),
|
190
|
+
'PullServerAppInputs': grpc.unary_unary_rpc_method_handler(
|
191
|
+
servicer.PullServerAppInputs,
|
192
|
+
request_deserializer=flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsRequest.FromString,
|
193
|
+
response_serializer=flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsResponse.SerializeToString,
|
194
|
+
),
|
195
|
+
'PushServerAppOutputs': grpc.unary_unary_rpc_method_handler(
|
196
|
+
servicer.PushServerAppOutputs,
|
197
|
+
request_deserializer=flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsRequest.FromString,
|
198
|
+
response_serializer=flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsResponse.SerializeToString,
|
199
|
+
),
|
200
|
+
'UpdateRunStatus': grpc.unary_unary_rpc_method_handler(
|
201
|
+
servicer.UpdateRunStatus,
|
202
|
+
request_deserializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.FromString,
|
203
|
+
response_serializer=flwr_dot_proto_dot_run__pb2.UpdateRunStatusResponse.SerializeToString,
|
204
|
+
),
|
205
|
+
'GetRunStatus': grpc.unary_unary_rpc_method_handler(
|
206
|
+
servicer.GetRunStatus,
|
207
|
+
request_deserializer=flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.FromString,
|
208
|
+
response_serializer=flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.SerializeToString,
|
209
|
+
),
|
210
|
+
'PushLogs': grpc.unary_unary_rpc_method_handler(
|
211
|
+
servicer.PushLogs,
|
212
|
+
request_deserializer=flwr_dot_proto_dot_log__pb2.PushLogsRequest.FromString,
|
213
|
+
response_serializer=flwr_dot_proto_dot_log__pb2.PushLogsResponse.SerializeToString,
|
214
|
+
),
|
215
|
+
}
|
216
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
217
|
+
'flwr.proto.ServerAppIo', rpc_method_handlers)
|
218
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
219
|
+
|
220
|
+
|
221
|
+
# This class is part of an EXPERIMENTAL API.
|
222
|
+
class ServerAppIo(object):
|
223
|
+
"""Missing associated documentation comment in .proto file."""
|
224
|
+
|
225
|
+
@staticmethod
|
226
|
+
def CreateRun(request,
|
227
|
+
target,
|
228
|
+
options=(),
|
229
|
+
channel_credentials=None,
|
230
|
+
call_credentials=None,
|
231
|
+
insecure=False,
|
232
|
+
compression=None,
|
233
|
+
wait_for_ready=None,
|
234
|
+
timeout=None,
|
235
|
+
metadata=None):
|
236
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/CreateRun',
|
237
|
+
flwr_dot_proto_dot_run__pb2.CreateRunRequest.SerializeToString,
|
238
|
+
flwr_dot_proto_dot_run__pb2.CreateRunResponse.FromString,
|
239
|
+
options, channel_credentials,
|
240
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
241
|
+
|
242
|
+
@staticmethod
|
243
|
+
def GetNodes(request,
|
244
|
+
target,
|
245
|
+
options=(),
|
246
|
+
channel_credentials=None,
|
247
|
+
call_credentials=None,
|
248
|
+
insecure=False,
|
249
|
+
compression=None,
|
250
|
+
wait_for_ready=None,
|
251
|
+
timeout=None,
|
252
|
+
metadata=None):
|
253
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/GetNodes',
|
254
|
+
flwr_dot_proto_dot_serverappio__pb2.GetNodesRequest.SerializeToString,
|
255
|
+
flwr_dot_proto_dot_serverappio__pb2.GetNodesResponse.FromString,
|
256
|
+
options, channel_credentials,
|
257
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
258
|
+
|
259
|
+
@staticmethod
|
260
|
+
def PushTaskIns(request,
|
261
|
+
target,
|
262
|
+
options=(),
|
263
|
+
channel_credentials=None,
|
264
|
+
call_credentials=None,
|
265
|
+
insecure=False,
|
266
|
+
compression=None,
|
267
|
+
wait_for_ready=None,
|
268
|
+
timeout=None,
|
269
|
+
metadata=None):
|
270
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PushTaskIns',
|
271
|
+
flwr_dot_proto_dot_serverappio__pb2.PushTaskInsRequest.SerializeToString,
|
272
|
+
flwr_dot_proto_dot_serverappio__pb2.PushTaskInsResponse.FromString,
|
273
|
+
options, channel_credentials,
|
274
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
275
|
+
|
276
|
+
@staticmethod
|
277
|
+
def PullTaskRes(request,
|
278
|
+
target,
|
279
|
+
options=(),
|
280
|
+
channel_credentials=None,
|
281
|
+
call_credentials=None,
|
282
|
+
insecure=False,
|
283
|
+
compression=None,
|
284
|
+
wait_for_ready=None,
|
285
|
+
timeout=None,
|
286
|
+
metadata=None):
|
287
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PullTaskRes',
|
288
|
+
flwr_dot_proto_dot_serverappio__pb2.PullTaskResRequest.SerializeToString,
|
289
|
+
flwr_dot_proto_dot_serverappio__pb2.PullTaskResResponse.FromString,
|
290
|
+
options, channel_credentials,
|
291
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
292
|
+
|
293
|
+
@staticmethod
|
294
|
+
def GetRun(request,
|
295
|
+
target,
|
296
|
+
options=(),
|
297
|
+
channel_credentials=None,
|
298
|
+
call_credentials=None,
|
299
|
+
insecure=False,
|
300
|
+
compression=None,
|
301
|
+
wait_for_ready=None,
|
302
|
+
timeout=None,
|
303
|
+
metadata=None):
|
304
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/GetRun',
|
305
|
+
flwr_dot_proto_dot_run__pb2.GetRunRequest.SerializeToString,
|
306
|
+
flwr_dot_proto_dot_run__pb2.GetRunResponse.FromString,
|
307
|
+
options, channel_credentials,
|
308
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
309
|
+
|
310
|
+
@staticmethod
|
311
|
+
def GetFab(request,
|
312
|
+
target,
|
313
|
+
options=(),
|
314
|
+
channel_credentials=None,
|
315
|
+
call_credentials=None,
|
316
|
+
insecure=False,
|
317
|
+
compression=None,
|
318
|
+
wait_for_ready=None,
|
319
|
+
timeout=None,
|
320
|
+
metadata=None):
|
321
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/GetFab',
|
322
|
+
flwr_dot_proto_dot_fab__pb2.GetFabRequest.SerializeToString,
|
323
|
+
flwr_dot_proto_dot_fab__pb2.GetFabResponse.FromString,
|
324
|
+
options, channel_credentials,
|
325
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
326
|
+
|
327
|
+
@staticmethod
|
328
|
+
def PullServerAppInputs(request,
|
329
|
+
target,
|
330
|
+
options=(),
|
331
|
+
channel_credentials=None,
|
332
|
+
call_credentials=None,
|
333
|
+
insecure=False,
|
334
|
+
compression=None,
|
335
|
+
wait_for_ready=None,
|
336
|
+
timeout=None,
|
337
|
+
metadata=None):
|
338
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PullServerAppInputs',
|
339
|
+
flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsRequest.SerializeToString,
|
340
|
+
flwr_dot_proto_dot_serverappio__pb2.PullServerAppInputsResponse.FromString,
|
341
|
+
options, channel_credentials,
|
342
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
343
|
+
|
344
|
+
@staticmethod
|
345
|
+
def PushServerAppOutputs(request,
|
346
|
+
target,
|
347
|
+
options=(),
|
348
|
+
channel_credentials=None,
|
349
|
+
call_credentials=None,
|
350
|
+
insecure=False,
|
351
|
+
compression=None,
|
352
|
+
wait_for_ready=None,
|
353
|
+
timeout=None,
|
354
|
+
metadata=None):
|
355
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PushServerAppOutputs',
|
356
|
+
flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsRequest.SerializeToString,
|
357
|
+
flwr_dot_proto_dot_serverappio__pb2.PushServerAppOutputsResponse.FromString,
|
358
|
+
options, channel_credentials,
|
359
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
360
|
+
|
361
|
+
@staticmethod
|
362
|
+
def UpdateRunStatus(request,
|
363
|
+
target,
|
364
|
+
options=(),
|
365
|
+
channel_credentials=None,
|
366
|
+
call_credentials=None,
|
367
|
+
insecure=False,
|
368
|
+
compression=None,
|
369
|
+
wait_for_ready=None,
|
370
|
+
timeout=None,
|
371
|
+
metadata=None):
|
372
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/UpdateRunStatus',
|
373
|
+
flwr_dot_proto_dot_run__pb2.UpdateRunStatusRequest.SerializeToString,
|
374
|
+
flwr_dot_proto_dot_run__pb2.UpdateRunStatusResponse.FromString,
|
375
|
+
options, channel_credentials,
|
376
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
377
|
+
|
378
|
+
@staticmethod
|
379
|
+
def GetRunStatus(request,
|
380
|
+
target,
|
381
|
+
options=(),
|
382
|
+
channel_credentials=None,
|
383
|
+
call_credentials=None,
|
384
|
+
insecure=False,
|
385
|
+
compression=None,
|
386
|
+
wait_for_ready=None,
|
387
|
+
timeout=None,
|
388
|
+
metadata=None):
|
389
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/GetRunStatus',
|
390
|
+
flwr_dot_proto_dot_run__pb2.GetRunStatusRequest.SerializeToString,
|
391
|
+
flwr_dot_proto_dot_run__pb2.GetRunStatusResponse.FromString,
|
392
|
+
options, channel_credentials,
|
393
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
394
|
+
|
395
|
+
@staticmethod
|
396
|
+
def PushLogs(request,
|
397
|
+
target,
|
398
|
+
options=(),
|
399
|
+
channel_credentials=None,
|
400
|
+
call_credentials=None,
|
401
|
+
insecure=False,
|
402
|
+
compression=None,
|
403
|
+
wait_for_ready=None,
|
404
|
+
timeout=None,
|
405
|
+
metadata=None):
|
406
|
+
return grpc.experimental.unary_unary(request, target, '/flwr.proto.ServerAppIo/PushLogs',
|
407
|
+
flwr_dot_proto_dot_log__pb2.PushLogsRequest.SerializeToString,
|
408
|
+
flwr_dot_proto_dot_log__pb2.PushLogsResponse.FromString,
|
409
|
+
options, channel_credentials,
|
410
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|