flwr-nightly 1.8.0.dev20240314__py3-none-any.whl → 1.15.0.dev20250114__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 +132 -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 +298 -19
- 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 +1 -1
- 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 -8
- flwr/server/compat/driver_client_proxy.py +25 -58
- 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 +217 -81
- flwr/server/driver/inmemory_driver.py +182 -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 +363 -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 +153 -9
- 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 +581 -0
- flwr/server/superlink/linkstate/linkstate.py +389 -0
- flwr/server/superlink/{state/state_factory.py → linkstate/linkstate_factory.py} +19 -10
- flwr/server/superlink/linkstate/sqlite_linkstate.py +1236 -0
- flwr/server/superlink/linkstate/utils.py +389 -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 +31 -11
- 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 +402 -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.dev20240314.dist-info → flwr_nightly-1.15.0.dev20250114.dist-info}/METADATA +33 -26
- flwr_nightly-1.15.0.dev20250114.dist-info/RECORD +328 -0
- flwr_nightly-1.15.0.dev20250114.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.dev20240314.dist-info/RECORD +0 -211
- flwr_nightly-1.8.0.dev20240314.dist-info/entry_points.txt +0 -9
- {flwr_nightly-1.8.0.dev20240314.dist-info → flwr_nightly-1.15.0.dev20250114.dist-info}/LICENSE +0 -0
- {flwr_nightly-1.8.0.dev20240314.dist-info → flwr_nightly-1.15.0.dev20250114.dist-info}/WHEEL +0 -0
flwr/proto/run_pb2.py
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: flwr/proto/run.proto
|
4
|
+
# Protobuf Python Version: 4.25.0
|
5
|
+
"""Generated protocol buffer code."""
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
from flwr.proto import fab_pb2 as flwr_dot_proto_dot_fab__pb2
|
16
|
+
from flwr.proto import node_pb2 as flwr_dot_proto_dot_node__pb2
|
17
|
+
from flwr.proto import recordset_pb2 as flwr_dot_proto_dot_recordset__pb2
|
18
|
+
from flwr.proto import transport_pb2 as flwr_dot_proto_dot_transport__pb2
|
19
|
+
|
20
|
+
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14\x66lwr/proto/run.proto\x12\nflwr.proto\x1a\x14\x66lwr/proto/fab.proto\x1a\x15\x66lwr/proto/node.proto\x1a\x1a\x66lwr/proto/recordset.proto\x1a\x1a\x66lwr/proto/transport.proto\"\xce\x02\n\x03Run\x12\x0e\n\x06run_id\x18\x01 \x01(\x04\x12\x0e\n\x06\x66\x61\x62_id\x18\x02 \x01(\t\x12\x13\n\x0b\x66\x61\x62_version\x18\x03 \x01(\t\x12<\n\x0foverride_config\x18\x04 \x03(\x0b\x32#.flwr.proto.Run.OverrideConfigEntry\x12\x10\n\x08\x66\x61\x62_hash\x18\x05 \x01(\t\x12\x12\n\npending_at\x18\x06 \x01(\t\x12\x13\n\x0bstarting_at\x18\x07 \x01(\t\x12\x12\n\nrunning_at\x18\x08 \x01(\t\x12\x13\n\x0b\x66inished_at\x18\t \x01(\t\x12%\n\x06status\x18\n \x01(\x0b\x32\x15.flwr.proto.RunStatus\x1aI\n\x13OverrideConfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.flwr.proto.Scalar:\x02\x38\x01\"@\n\tRunStatus\x12\x0e\n\x06status\x18\x01 \x01(\t\x12\x12\n\nsub_status\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65tails\x18\x03 \x01(\t\"\xeb\x01\n\x10\x43reateRunRequest\x12\x0e\n\x06\x66\x61\x62_id\x18\x01 \x01(\t\x12\x13\n\x0b\x66\x61\x62_version\x18\x02 \x01(\t\x12I\n\x0foverride_config\x18\x03 \x03(\x0b\x32\x30.flwr.proto.CreateRunRequest.OverrideConfigEntry\x12\x1c\n\x03\x66\x61\x62\x18\x04 \x01(\x0b\x32\x0f.flwr.proto.Fab\x1aI\n\x13OverrideConfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.flwr.proto.Scalar:\x02\x38\x01\"#\n\x11\x43reateRunResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\x04\"?\n\rGetRunRequest\x12\x1e\n\x04node\x18\x01 \x01(\x0b\x32\x10.flwr.proto.Node\x12\x0e\n\x06run_id\x18\x02 \x01(\x04\".\n\x0eGetRunResponse\x12\x1c\n\x03run\x18\x01 \x01(\x0b\x32\x0f.flwr.proto.Run\"S\n\x16UpdateRunStatusRequest\x12\x0e\n\x06run_id\x18\x01 \x01(\x04\x12)\n\nrun_status\x18\x02 \x01(\x0b\x32\x15.flwr.proto.RunStatus\"\x19\n\x17UpdateRunStatusResponse\"F\n\x13GetRunStatusRequest\x12\x1e\n\x04node\x18\x01 \x01(\x0b\x32\x10.flwr.proto.Node\x12\x0f\n\x07run_ids\x18\x02 \x03(\x04\"\xb1\x01\n\x14GetRunStatusResponse\x12L\n\x0frun_status_dict\x18\x01 \x03(\x0b\x32\x33.flwr.proto.GetRunStatusResponse.RunStatusDictEntry\x1aK\n\x12RunStatusDictEntry\x12\x0b\n\x03key\x18\x01 \x01(\x04\x12$\n\x05value\x18\x02 \x01(\x0b\x32\x15.flwr.proto.RunStatus:\x02\x38\x01\"-\n\x1bGetFederationOptionsRequest\x12\x0e\n\x06run_id\x18\x01 \x01(\x04\"U\n\x1cGetFederationOptionsResponse\x12\x35\n\x12\x66\x65\x64\x65ration_options\x18\x01 \x01(\x0b\x32\x19.flwr.proto.ConfigsRecordb\x06proto3')
|
22
|
+
|
23
|
+
_globals = globals()
|
24
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
25
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.run_pb2', _globals)
|
26
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
27
|
+
DESCRIPTOR._options = None
|
28
|
+
_globals['_RUN_OVERRIDECONFIGENTRY']._options = None
|
29
|
+
_globals['_RUN_OVERRIDECONFIGENTRY']._serialized_options = b'8\001'
|
30
|
+
_globals['_CREATERUNREQUEST_OVERRIDECONFIGENTRY']._options = None
|
31
|
+
_globals['_CREATERUNREQUEST_OVERRIDECONFIGENTRY']._serialized_options = b'8\001'
|
32
|
+
_globals['_GETRUNSTATUSRESPONSE_RUNSTATUSDICTENTRY']._options = None
|
33
|
+
_globals['_GETRUNSTATUSRESPONSE_RUNSTATUSDICTENTRY']._serialized_options = b'8\001'
|
34
|
+
_globals['_RUN']._serialized_start=138
|
35
|
+
_globals['_RUN']._serialized_end=472
|
36
|
+
_globals['_RUN_OVERRIDECONFIGENTRY']._serialized_start=399
|
37
|
+
_globals['_RUN_OVERRIDECONFIGENTRY']._serialized_end=472
|
38
|
+
_globals['_RUNSTATUS']._serialized_start=474
|
39
|
+
_globals['_RUNSTATUS']._serialized_end=538
|
40
|
+
_globals['_CREATERUNREQUEST']._serialized_start=541
|
41
|
+
_globals['_CREATERUNREQUEST']._serialized_end=776
|
42
|
+
_globals['_CREATERUNREQUEST_OVERRIDECONFIGENTRY']._serialized_start=399
|
43
|
+
_globals['_CREATERUNREQUEST_OVERRIDECONFIGENTRY']._serialized_end=472
|
44
|
+
_globals['_CREATERUNRESPONSE']._serialized_start=778
|
45
|
+
_globals['_CREATERUNRESPONSE']._serialized_end=813
|
46
|
+
_globals['_GETRUNREQUEST']._serialized_start=815
|
47
|
+
_globals['_GETRUNREQUEST']._serialized_end=878
|
48
|
+
_globals['_GETRUNRESPONSE']._serialized_start=880
|
49
|
+
_globals['_GETRUNRESPONSE']._serialized_end=926
|
50
|
+
_globals['_UPDATERUNSTATUSREQUEST']._serialized_start=928
|
51
|
+
_globals['_UPDATERUNSTATUSREQUEST']._serialized_end=1011
|
52
|
+
_globals['_UPDATERUNSTATUSRESPONSE']._serialized_start=1013
|
53
|
+
_globals['_UPDATERUNSTATUSRESPONSE']._serialized_end=1038
|
54
|
+
_globals['_GETRUNSTATUSREQUEST']._serialized_start=1040
|
55
|
+
_globals['_GETRUNSTATUSREQUEST']._serialized_end=1110
|
56
|
+
_globals['_GETRUNSTATUSRESPONSE']._serialized_start=1113
|
57
|
+
_globals['_GETRUNSTATUSRESPONSE']._serialized_end=1290
|
58
|
+
_globals['_GETRUNSTATUSRESPONSE_RUNSTATUSDICTENTRY']._serialized_start=1215
|
59
|
+
_globals['_GETRUNSTATUSRESPONSE_RUNSTATUSDICTENTRY']._serialized_end=1290
|
60
|
+
_globals['_GETFEDERATIONOPTIONSREQUEST']._serialized_start=1292
|
61
|
+
_globals['_GETFEDERATIONOPTIONSREQUEST']._serialized_end=1337
|
62
|
+
_globals['_GETFEDERATIONOPTIONSRESPONSE']._serialized_start=1339
|
63
|
+
_globals['_GETFEDERATIONOPTIONSRESPONSE']._serialized_end=1424
|
64
|
+
# @@protoc_insertion_point(module_scope)
|
flwr/proto/run_pb2.pyi
ADDED
@@ -0,0 +1,268 @@
|
|
1
|
+
"""
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
3
|
+
isort:skip_file
|
4
|
+
"""
|
5
|
+
import builtins
|
6
|
+
import flwr.proto.fab_pb2
|
7
|
+
import flwr.proto.node_pb2
|
8
|
+
import flwr.proto.recordset_pb2
|
9
|
+
import flwr.proto.transport_pb2
|
10
|
+
import google.protobuf.descriptor
|
11
|
+
import google.protobuf.internal.containers
|
12
|
+
import google.protobuf.message
|
13
|
+
import typing
|
14
|
+
import typing_extensions
|
15
|
+
|
16
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
17
|
+
|
18
|
+
class Run(google.protobuf.message.Message):
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
20
|
+
class OverrideConfigEntry(google.protobuf.message.Message):
|
21
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
22
|
+
KEY_FIELD_NUMBER: builtins.int
|
23
|
+
VALUE_FIELD_NUMBER: builtins.int
|
24
|
+
key: typing.Text
|
25
|
+
@property
|
26
|
+
def value(self) -> flwr.proto.transport_pb2.Scalar: ...
|
27
|
+
def __init__(self,
|
28
|
+
*,
|
29
|
+
key: typing.Text = ...,
|
30
|
+
value: typing.Optional[flwr.proto.transport_pb2.Scalar] = ...,
|
31
|
+
) -> None: ...
|
32
|
+
def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ...
|
33
|
+
def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ...
|
34
|
+
|
35
|
+
RUN_ID_FIELD_NUMBER: builtins.int
|
36
|
+
FAB_ID_FIELD_NUMBER: builtins.int
|
37
|
+
FAB_VERSION_FIELD_NUMBER: builtins.int
|
38
|
+
OVERRIDE_CONFIG_FIELD_NUMBER: builtins.int
|
39
|
+
FAB_HASH_FIELD_NUMBER: builtins.int
|
40
|
+
PENDING_AT_FIELD_NUMBER: builtins.int
|
41
|
+
STARTING_AT_FIELD_NUMBER: builtins.int
|
42
|
+
RUNNING_AT_FIELD_NUMBER: builtins.int
|
43
|
+
FINISHED_AT_FIELD_NUMBER: builtins.int
|
44
|
+
STATUS_FIELD_NUMBER: builtins.int
|
45
|
+
run_id: builtins.int
|
46
|
+
fab_id: typing.Text
|
47
|
+
fab_version: typing.Text
|
48
|
+
@property
|
49
|
+
def override_config(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, flwr.proto.transport_pb2.Scalar]: ...
|
50
|
+
fab_hash: typing.Text
|
51
|
+
pending_at: typing.Text
|
52
|
+
starting_at: typing.Text
|
53
|
+
running_at: typing.Text
|
54
|
+
finished_at: typing.Text
|
55
|
+
@property
|
56
|
+
def status(self) -> global___RunStatus: ...
|
57
|
+
def __init__(self,
|
58
|
+
*,
|
59
|
+
run_id: builtins.int = ...,
|
60
|
+
fab_id: typing.Text = ...,
|
61
|
+
fab_version: typing.Text = ...,
|
62
|
+
override_config: typing.Optional[typing.Mapping[typing.Text, flwr.proto.transport_pb2.Scalar]] = ...,
|
63
|
+
fab_hash: typing.Text = ...,
|
64
|
+
pending_at: typing.Text = ...,
|
65
|
+
starting_at: typing.Text = ...,
|
66
|
+
running_at: typing.Text = ...,
|
67
|
+
finished_at: typing.Text = ...,
|
68
|
+
status: typing.Optional[global___RunStatus] = ...,
|
69
|
+
) -> None: ...
|
70
|
+
def HasField(self, field_name: typing_extensions.Literal["status",b"status"]) -> builtins.bool: ...
|
71
|
+
def ClearField(self, field_name: typing_extensions.Literal["fab_hash",b"fab_hash","fab_id",b"fab_id","fab_version",b"fab_version","finished_at",b"finished_at","override_config",b"override_config","pending_at",b"pending_at","run_id",b"run_id","running_at",b"running_at","starting_at",b"starting_at","status",b"status"]) -> None: ...
|
72
|
+
global___Run = Run
|
73
|
+
|
74
|
+
class RunStatus(google.protobuf.message.Message):
|
75
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
76
|
+
STATUS_FIELD_NUMBER: builtins.int
|
77
|
+
SUB_STATUS_FIELD_NUMBER: builtins.int
|
78
|
+
DETAILS_FIELD_NUMBER: builtins.int
|
79
|
+
status: typing.Text
|
80
|
+
""""starting", "running", "finished" """
|
81
|
+
|
82
|
+
sub_status: typing.Text
|
83
|
+
""""completed", "failed", "stopped" or "" (non-finished)"""
|
84
|
+
|
85
|
+
details: typing.Text
|
86
|
+
"""failure details"""
|
87
|
+
|
88
|
+
def __init__(self,
|
89
|
+
*,
|
90
|
+
status: typing.Text = ...,
|
91
|
+
sub_status: typing.Text = ...,
|
92
|
+
details: typing.Text = ...,
|
93
|
+
) -> None: ...
|
94
|
+
def ClearField(self, field_name: typing_extensions.Literal["details",b"details","status",b"status","sub_status",b"sub_status"]) -> None: ...
|
95
|
+
global___RunStatus = RunStatus
|
96
|
+
|
97
|
+
class CreateRunRequest(google.protobuf.message.Message):
|
98
|
+
"""CreateRun"""
|
99
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
100
|
+
class OverrideConfigEntry(google.protobuf.message.Message):
|
101
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
102
|
+
KEY_FIELD_NUMBER: builtins.int
|
103
|
+
VALUE_FIELD_NUMBER: builtins.int
|
104
|
+
key: typing.Text
|
105
|
+
@property
|
106
|
+
def value(self) -> flwr.proto.transport_pb2.Scalar: ...
|
107
|
+
def __init__(self,
|
108
|
+
*,
|
109
|
+
key: typing.Text = ...,
|
110
|
+
value: typing.Optional[flwr.proto.transport_pb2.Scalar] = ...,
|
111
|
+
) -> None: ...
|
112
|
+
def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ...
|
113
|
+
def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ...
|
114
|
+
|
115
|
+
FAB_ID_FIELD_NUMBER: builtins.int
|
116
|
+
FAB_VERSION_FIELD_NUMBER: builtins.int
|
117
|
+
OVERRIDE_CONFIG_FIELD_NUMBER: builtins.int
|
118
|
+
FAB_FIELD_NUMBER: builtins.int
|
119
|
+
fab_id: typing.Text
|
120
|
+
fab_version: typing.Text
|
121
|
+
@property
|
122
|
+
def override_config(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, flwr.proto.transport_pb2.Scalar]: ...
|
123
|
+
@property
|
124
|
+
def fab(self) -> flwr.proto.fab_pb2.Fab: ...
|
125
|
+
def __init__(self,
|
126
|
+
*,
|
127
|
+
fab_id: typing.Text = ...,
|
128
|
+
fab_version: typing.Text = ...,
|
129
|
+
override_config: typing.Optional[typing.Mapping[typing.Text, flwr.proto.transport_pb2.Scalar]] = ...,
|
130
|
+
fab: typing.Optional[flwr.proto.fab_pb2.Fab] = ...,
|
131
|
+
) -> None: ...
|
132
|
+
def HasField(self, field_name: typing_extensions.Literal["fab",b"fab"]) -> builtins.bool: ...
|
133
|
+
def ClearField(self, field_name: typing_extensions.Literal["fab",b"fab","fab_id",b"fab_id","fab_version",b"fab_version","override_config",b"override_config"]) -> None: ...
|
134
|
+
global___CreateRunRequest = CreateRunRequest
|
135
|
+
|
136
|
+
class CreateRunResponse(google.protobuf.message.Message):
|
137
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
138
|
+
RUN_ID_FIELD_NUMBER: builtins.int
|
139
|
+
run_id: builtins.int
|
140
|
+
def __init__(self,
|
141
|
+
*,
|
142
|
+
run_id: builtins.int = ...,
|
143
|
+
) -> None: ...
|
144
|
+
def ClearField(self, field_name: typing_extensions.Literal["run_id",b"run_id"]) -> None: ...
|
145
|
+
global___CreateRunResponse = CreateRunResponse
|
146
|
+
|
147
|
+
class GetRunRequest(google.protobuf.message.Message):
|
148
|
+
"""GetRun"""
|
149
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
150
|
+
NODE_FIELD_NUMBER: builtins.int
|
151
|
+
RUN_ID_FIELD_NUMBER: builtins.int
|
152
|
+
@property
|
153
|
+
def node(self) -> flwr.proto.node_pb2.Node: ...
|
154
|
+
run_id: builtins.int
|
155
|
+
def __init__(self,
|
156
|
+
*,
|
157
|
+
node: typing.Optional[flwr.proto.node_pb2.Node] = ...,
|
158
|
+
run_id: builtins.int = ...,
|
159
|
+
) -> None: ...
|
160
|
+
def HasField(self, field_name: typing_extensions.Literal["node",b"node"]) -> builtins.bool: ...
|
161
|
+
def ClearField(self, field_name: typing_extensions.Literal["node",b"node","run_id",b"run_id"]) -> None: ...
|
162
|
+
global___GetRunRequest = GetRunRequest
|
163
|
+
|
164
|
+
class GetRunResponse(google.protobuf.message.Message):
|
165
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
166
|
+
RUN_FIELD_NUMBER: builtins.int
|
167
|
+
@property
|
168
|
+
def run(self) -> global___Run: ...
|
169
|
+
def __init__(self,
|
170
|
+
*,
|
171
|
+
run: typing.Optional[global___Run] = ...,
|
172
|
+
) -> None: ...
|
173
|
+
def HasField(self, field_name: typing_extensions.Literal["run",b"run"]) -> builtins.bool: ...
|
174
|
+
def ClearField(self, field_name: typing_extensions.Literal["run",b"run"]) -> None: ...
|
175
|
+
global___GetRunResponse = GetRunResponse
|
176
|
+
|
177
|
+
class UpdateRunStatusRequest(google.protobuf.message.Message):
|
178
|
+
"""UpdateRunStatus"""
|
179
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
180
|
+
RUN_ID_FIELD_NUMBER: builtins.int
|
181
|
+
RUN_STATUS_FIELD_NUMBER: builtins.int
|
182
|
+
run_id: builtins.int
|
183
|
+
@property
|
184
|
+
def run_status(self) -> global___RunStatus: ...
|
185
|
+
def __init__(self,
|
186
|
+
*,
|
187
|
+
run_id: builtins.int = ...,
|
188
|
+
run_status: typing.Optional[global___RunStatus] = ...,
|
189
|
+
) -> None: ...
|
190
|
+
def HasField(self, field_name: typing_extensions.Literal["run_status",b"run_status"]) -> builtins.bool: ...
|
191
|
+
def ClearField(self, field_name: typing_extensions.Literal["run_id",b"run_id","run_status",b"run_status"]) -> None: ...
|
192
|
+
global___UpdateRunStatusRequest = UpdateRunStatusRequest
|
193
|
+
|
194
|
+
class UpdateRunStatusResponse(google.protobuf.message.Message):
|
195
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
196
|
+
def __init__(self,
|
197
|
+
) -> None: ...
|
198
|
+
global___UpdateRunStatusResponse = UpdateRunStatusResponse
|
199
|
+
|
200
|
+
class GetRunStatusRequest(google.protobuf.message.Message):
|
201
|
+
"""GetRunStatus"""
|
202
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
203
|
+
NODE_FIELD_NUMBER: builtins.int
|
204
|
+
RUN_IDS_FIELD_NUMBER: builtins.int
|
205
|
+
@property
|
206
|
+
def node(self) -> flwr.proto.node_pb2.Node: ...
|
207
|
+
@property
|
208
|
+
def run_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
|
209
|
+
def __init__(self,
|
210
|
+
*,
|
211
|
+
node: typing.Optional[flwr.proto.node_pb2.Node] = ...,
|
212
|
+
run_ids: typing.Optional[typing.Iterable[builtins.int]] = ...,
|
213
|
+
) -> None: ...
|
214
|
+
def HasField(self, field_name: typing_extensions.Literal["node",b"node"]) -> builtins.bool: ...
|
215
|
+
def ClearField(self, field_name: typing_extensions.Literal["node",b"node","run_ids",b"run_ids"]) -> None: ...
|
216
|
+
global___GetRunStatusRequest = GetRunStatusRequest
|
217
|
+
|
218
|
+
class GetRunStatusResponse(google.protobuf.message.Message):
|
219
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
220
|
+
class RunStatusDictEntry(google.protobuf.message.Message):
|
221
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
222
|
+
KEY_FIELD_NUMBER: builtins.int
|
223
|
+
VALUE_FIELD_NUMBER: builtins.int
|
224
|
+
key: builtins.int
|
225
|
+
@property
|
226
|
+
def value(self) -> global___RunStatus: ...
|
227
|
+
def __init__(self,
|
228
|
+
*,
|
229
|
+
key: builtins.int = ...,
|
230
|
+
value: typing.Optional[global___RunStatus] = ...,
|
231
|
+
) -> None: ...
|
232
|
+
def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ...
|
233
|
+
def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ...
|
234
|
+
|
235
|
+
RUN_STATUS_DICT_FIELD_NUMBER: builtins.int
|
236
|
+
@property
|
237
|
+
def run_status_dict(self) -> google.protobuf.internal.containers.MessageMap[builtins.int, global___RunStatus]: ...
|
238
|
+
def __init__(self,
|
239
|
+
*,
|
240
|
+
run_status_dict: typing.Optional[typing.Mapping[builtins.int, global___RunStatus]] = ...,
|
241
|
+
) -> None: ...
|
242
|
+
def ClearField(self, field_name: typing_extensions.Literal["run_status_dict",b"run_status_dict"]) -> None: ...
|
243
|
+
global___GetRunStatusResponse = GetRunStatusResponse
|
244
|
+
|
245
|
+
class GetFederationOptionsRequest(google.protobuf.message.Message):
|
246
|
+
"""Get Federation Options associated with run"""
|
247
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
248
|
+
RUN_ID_FIELD_NUMBER: builtins.int
|
249
|
+
run_id: builtins.int
|
250
|
+
def __init__(self,
|
251
|
+
*,
|
252
|
+
run_id: builtins.int = ...,
|
253
|
+
) -> None: ...
|
254
|
+
def ClearField(self, field_name: typing_extensions.Literal["run_id",b"run_id"]) -> None: ...
|
255
|
+
global___GetFederationOptionsRequest = GetFederationOptionsRequest
|
256
|
+
|
257
|
+
class GetFederationOptionsResponse(google.protobuf.message.Message):
|
258
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
259
|
+
FEDERATION_OPTIONS_FIELD_NUMBER: builtins.int
|
260
|
+
@property
|
261
|
+
def federation_options(self) -> flwr.proto.recordset_pb2.ConfigsRecord: ...
|
262
|
+
def __init__(self,
|
263
|
+
*,
|
264
|
+
federation_options: typing.Optional[flwr.proto.recordset_pb2.ConfigsRecord] = ...,
|
265
|
+
) -> None: ...
|
266
|
+
def HasField(self, field_name: typing_extensions.Literal["federation_options",b"federation_options"]) -> builtins.bool: ...
|
267
|
+
def ClearField(self, field_name: typing_extensions.Literal["federation_options",b"federation_options"]) -> None: ...
|
268
|
+
global___GetFederationOptionsResponse = GetFederationOptionsResponse
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: flwr/proto/serverappio.proto
|
4
|
+
# Protobuf Python Version: 4.25.0
|
5
|
+
"""Generated protocol buffer code."""
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
from flwr.proto import log_pb2 as flwr_dot_proto_dot_log__pb2
|
16
|
+
from flwr.proto import node_pb2 as flwr_dot_proto_dot_node__pb2
|
17
|
+
from flwr.proto import message_pb2 as flwr_dot_proto_dot_message__pb2
|
18
|
+
from flwr.proto import task_pb2 as flwr_dot_proto_dot_task__pb2
|
19
|
+
from flwr.proto import run_pb2 as flwr_dot_proto_dot_run__pb2
|
20
|
+
from flwr.proto import fab_pb2 as flwr_dot_proto_dot_fab__pb2
|
21
|
+
|
22
|
+
|
23
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lwr/proto/serverappio.proto\x12\nflwr.proto\x1a\x14\x66lwr/proto/log.proto\x1a\x15\x66lwr/proto/node.proto\x1a\x18\x66lwr/proto/message.proto\x1a\x15\x66lwr/proto/task.proto\x1a\x14\x66lwr/proto/run.proto\x1a\x14\x66lwr/proto/fab.proto\"!\n\x0fGetNodesRequest\x12\x0e\n\x06run_id\x18\x01 \x01(\x04\"3\n\x10GetNodesResponse\x12\x1f\n\x05nodes\x18\x01 \x03(\x0b\x32\x10.flwr.proto.Node\"P\n\x12PushTaskInsRequest\x12*\n\rtask_ins_list\x18\x01 \x03(\x0b\x32\x13.flwr.proto.TaskIns\x12\x0e\n\x06run_id\x18\x02 \x01(\x04\"\'\n\x13PushTaskInsResponse\x12\x10\n\x08task_ids\x18\x02 \x03(\t\"V\n\x12PullTaskResRequest\x12\x1e\n\x04node\x18\x01 \x01(\x0b\x32\x10.flwr.proto.Node\x12\x10\n\x08task_ids\x18\x02 \x03(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\x04\"A\n\x13PullTaskResResponse\x12*\n\rtask_res_list\x18\x01 \x03(\x0b\x32\x13.flwr.proto.TaskRes\"\x1c\n\x1aPullServerAppInputsRequest\"\x7f\n\x1bPullServerAppInputsResponse\x12$\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x13.flwr.proto.Context\x12\x1c\n\x03run\x18\x02 \x01(\x0b\x32\x0f.flwr.proto.Run\x12\x1c\n\x03\x66\x61\x62\x18\x03 \x01(\x0b\x32\x0f.flwr.proto.Fab\"S\n\x1bPushServerAppOutputsRequest\x12\x0e\n\x06run_id\x18\x01 \x01(\x04\x12$\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x13.flwr.proto.Context\"\x1e\n\x1cPushServerAppOutputsResponse2\x9f\x07\n\x0bServerAppIo\x12J\n\tCreateRun\x12\x1c.flwr.proto.CreateRunRequest\x1a\x1d.flwr.proto.CreateRunResponse\"\x00\x12G\n\x08GetNodes\x12\x1b.flwr.proto.GetNodesRequest\x1a\x1c.flwr.proto.GetNodesResponse\"\x00\x12P\n\x0bPushTaskIns\x12\x1e.flwr.proto.PushTaskInsRequest\x1a\x1f.flwr.proto.PushTaskInsResponse\"\x00\x12P\n\x0bPullTaskRes\x12\x1e.flwr.proto.PullTaskResRequest\x1a\x1f.flwr.proto.PullTaskResResponse\"\x00\x12\x41\n\x06GetRun\x12\x19.flwr.proto.GetRunRequest\x1a\x1a.flwr.proto.GetRunResponse\"\x00\x12\x41\n\x06GetFab\x12\x19.flwr.proto.GetFabRequest\x1a\x1a.flwr.proto.GetFabResponse\"\x00\x12h\n\x13PullServerAppInputs\x12&.flwr.proto.PullServerAppInputsRequest\x1a\'.flwr.proto.PullServerAppInputsResponse\"\x00\x12k\n\x14PushServerAppOutputs\x12\'.flwr.proto.PushServerAppOutputsRequest\x1a(.flwr.proto.PushServerAppOutputsResponse\"\x00\x12\\\n\x0fUpdateRunStatus\x12\".flwr.proto.UpdateRunStatusRequest\x1a#.flwr.proto.UpdateRunStatusResponse\"\x00\x12S\n\x0cGetRunStatus\x12\x1f.flwr.proto.GetRunStatusRequest\x1a .flwr.proto.GetRunStatusResponse\"\x00\x12G\n\x08PushLogs\x12\x1b.flwr.proto.PushLogsRequest\x1a\x1c.flwr.proto.PushLogsResponse\"\x00\x62\x06proto3')
|
24
|
+
|
25
|
+
_globals = globals()
|
26
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
27
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.serverappio_pb2', _globals)
|
28
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
29
|
+
DESCRIPTOR._options = None
|
30
|
+
_globals['_GETNODESREQUEST']._serialized_start=182
|
31
|
+
_globals['_GETNODESREQUEST']._serialized_end=215
|
32
|
+
_globals['_GETNODESRESPONSE']._serialized_start=217
|
33
|
+
_globals['_GETNODESRESPONSE']._serialized_end=268
|
34
|
+
_globals['_PUSHTASKINSREQUEST']._serialized_start=270
|
35
|
+
_globals['_PUSHTASKINSREQUEST']._serialized_end=350
|
36
|
+
_globals['_PUSHTASKINSRESPONSE']._serialized_start=352
|
37
|
+
_globals['_PUSHTASKINSRESPONSE']._serialized_end=391
|
38
|
+
_globals['_PULLTASKRESREQUEST']._serialized_start=393
|
39
|
+
_globals['_PULLTASKRESREQUEST']._serialized_end=479
|
40
|
+
_globals['_PULLTASKRESRESPONSE']._serialized_start=481
|
41
|
+
_globals['_PULLTASKRESRESPONSE']._serialized_end=546
|
42
|
+
_globals['_PULLSERVERAPPINPUTSREQUEST']._serialized_start=548
|
43
|
+
_globals['_PULLSERVERAPPINPUTSREQUEST']._serialized_end=576
|
44
|
+
_globals['_PULLSERVERAPPINPUTSRESPONSE']._serialized_start=578
|
45
|
+
_globals['_PULLSERVERAPPINPUTSRESPONSE']._serialized_end=705
|
46
|
+
_globals['_PUSHSERVERAPPOUTPUTSREQUEST']._serialized_start=707
|
47
|
+
_globals['_PUSHSERVERAPPOUTPUTSREQUEST']._serialized_end=790
|
48
|
+
_globals['_PUSHSERVERAPPOUTPUTSRESPONSE']._serialized_start=792
|
49
|
+
_globals['_PUSHSERVERAPPOUTPUTSRESPONSE']._serialized_end=822
|
50
|
+
_globals['_SERVERAPPIO']._serialized_start=825
|
51
|
+
_globals['_SERVERAPPIO']._serialized_end=1752
|
52
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -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
|