flwr-nightly 1.10.0.dev20240619__py3-none-any.whl → 1.10.0.dev20240624__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (98) hide show
  1. flwr/cli/app.py +3 -0
  2. flwr/cli/build.py +3 -7
  3. flwr/cli/new/new.py +104 -28
  4. flwr/cli/new/templates/app/README.flowertune.md.tpl +56 -0
  5. flwr/cli/new/templates/app/code/flwr_tune/__init__.py +15 -0
  6. flwr/cli/new/templates/app/code/flwr_tune/app.py.tpl +86 -0
  7. flwr/cli/new/templates/app/code/flwr_tune/client.py.tpl +124 -0
  8. flwr/cli/new/templates/app/code/flwr_tune/config.yaml.tpl +34 -0
  9. flwr/cli/new/templates/app/code/flwr_tune/dataset.py.tpl +57 -0
  10. flwr/cli/new/templates/app/code/flwr_tune/models.py.tpl +59 -0
  11. flwr/cli/new/templates/app/code/flwr_tune/server.py.tpl +48 -0
  12. flwr/cli/new/templates/app/code/flwr_tune/static_config.yaml.tpl +11 -0
  13. flwr/cli/new/templates/app/pyproject.flowertune.toml.tpl +42 -0
  14. flwr/cli/run/run.py +8 -1
  15. flwr/client/client_app.py +1 -1
  16. flwr/client/dpfedavg_numpy_client.py +1 -1
  17. flwr/client/grpc_rere_client/__init__.py +1 -1
  18. flwr/client/grpc_rere_client/connection.py +1 -1
  19. flwr/client/message_handler/__init__.py +1 -1
  20. flwr/client/message_handler/message_handler.py +1 -1
  21. flwr/client/mod/__init__.py +1 -1
  22. flwr/client/mod/secure_aggregation/__init__.py +1 -1
  23. flwr/client/mod/utils.py +1 -1
  24. flwr/client/rest_client/__init__.py +1 -1
  25. flwr/client/rest_client/connection.py +1 -1
  26. flwr/client/supernode/app.py +1 -1
  27. flwr/common/address.py +1 -1
  28. flwr/common/config.py +8 -6
  29. flwr/common/constant.py +1 -1
  30. flwr/common/date.py +1 -1
  31. flwr/common/dp.py +1 -1
  32. flwr/common/grpc.py +1 -1
  33. flwr/common/secure_aggregation/__init__.py +1 -1
  34. flwr/common/secure_aggregation/crypto/__init__.py +1 -1
  35. flwr/common/secure_aggregation/crypto/shamir.py +1 -1
  36. flwr/common/secure_aggregation/crypto/symmetric_encryption.py +1 -1
  37. flwr/common/secure_aggregation/ndarrays_arithmetic.py +1 -1
  38. flwr/common/secure_aggregation/quantization.py +1 -1
  39. flwr/common/secure_aggregation/secaggplus_constants.py +1 -1
  40. flwr/common/secure_aggregation/secaggplus_utils.py +1 -1
  41. flwr/common/version.py +14 -0
  42. flwr/server/compat/app.py +1 -1
  43. flwr/server/compat/app_utils.py +1 -1
  44. flwr/server/compat/driver_client_proxy.py +1 -1
  45. flwr/server/driver/driver.py +6 -0
  46. flwr/server/driver/grpc_driver.py +85 -63
  47. flwr/server/driver/inmemory_driver.py +28 -26
  48. flwr/server/run_serverapp.py +61 -18
  49. flwr/server/strategy/bulyan.py +1 -1
  50. flwr/server/strategy/dpfedavg_adaptive.py +1 -1
  51. flwr/server/strategy/dpfedavg_fixed.py +1 -1
  52. flwr/server/strategy/fedadagrad.py +1 -1
  53. flwr/server/strategy/fedadam.py +1 -1
  54. flwr/server/strategy/fedavg_android.py +1 -1
  55. flwr/server/strategy/fedavgm.py +1 -1
  56. flwr/server/strategy/fedmedian.py +1 -1
  57. flwr/server/strategy/fedopt.py +1 -1
  58. flwr/server/strategy/fedprox.py +1 -1
  59. flwr/server/strategy/fedxgb_bagging.py +1 -1
  60. flwr/server/strategy/fedxgb_cyclic.py +1 -1
  61. flwr/server/strategy/fedxgb_nn_avg.py +1 -1
  62. flwr/server/strategy/fedyogi.py +1 -1
  63. flwr/server/strategy/krum.py +1 -1
  64. flwr/server/strategy/qfedavg.py +1 -1
  65. flwr/server/superlink/driver/__init__.py +1 -1
  66. flwr/server/superlink/driver/driver_grpc.py +1 -1
  67. flwr/server/superlink/driver/driver_servicer.py +15 -3
  68. flwr/server/superlink/fleet/__init__.py +1 -1
  69. flwr/server/superlink/fleet/grpc_bidi/__init__.py +1 -1
  70. flwr/server/superlink/fleet/grpc_bidi/flower_service_servicer.py +1 -1
  71. flwr/server/superlink/fleet/grpc_bidi/grpc_bridge.py +1 -1
  72. flwr/server/superlink/fleet/grpc_bidi/grpc_client_proxy.py +1 -1
  73. flwr/server/superlink/fleet/grpc_bidi/grpc_server.py +1 -1
  74. flwr/server/superlink/fleet/grpc_rere/__init__.py +1 -1
  75. flwr/server/superlink/fleet/grpc_rere/fleet_servicer.py +1 -1
  76. flwr/server/superlink/fleet/message_handler/__init__.py +1 -1
  77. flwr/server/superlink/fleet/message_handler/message_handler.py +1 -1
  78. flwr/server/superlink/fleet/rest_rere/__init__.py +1 -1
  79. flwr/server/superlink/fleet/rest_rere/rest_api.py +1 -1
  80. flwr/server/superlink/fleet/vce/backend/raybackend.py +44 -25
  81. flwr/server/superlink/state/__init__.py +1 -1
  82. flwr/server/superlink/state/in_memory_state.py +1 -1
  83. flwr/server/superlink/state/sqlite_state.py +1 -1
  84. flwr/server/superlink/state/state.py +1 -1
  85. flwr/server/superlink/state/state_factory.py +11 -2
  86. flwr/server/utils/__init__.py +1 -1
  87. flwr/server/utils/tensorboard.py +1 -1
  88. flwr/simulation/__init__.py +1 -1
  89. flwr/simulation/app.py +1 -1
  90. flwr/simulation/ray_transport/__init__.py +1 -1
  91. flwr/simulation/ray_transport/ray_actor.py +0 -6
  92. flwr/simulation/ray_transport/ray_client_proxy.py +1 -1
  93. flwr/simulation/run_simulation.py +47 -28
  94. {flwr_nightly-1.10.0.dev20240619.dist-info → flwr_nightly-1.10.0.dev20240624.dist-info}/METADATA +2 -1
  95. {flwr_nightly-1.10.0.dev20240619.dist-info → flwr_nightly-1.10.0.dev20240624.dist-info}/RECORD +98 -88
  96. {flwr_nightly-1.10.0.dev20240619.dist-info → flwr_nightly-1.10.0.dev20240624.dist-info}/LICENSE +0 -0
  97. {flwr_nightly-1.10.0.dev20240619.dist-info → flwr_nightly-1.10.0.dev20240624.dist-info}/WHEEL +0 -0
  98. {flwr_nightly-1.10.0.dev20240619.dist-info → flwr_nightly-1.10.0.dev20240624.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,48 @@
1
+ """$project_name: A Flower / FlowerTune app."""
2
+
3
+ from $import_name.client import set_parameters
4
+ from $import_name.models import get_model
5
+
6
+
7
+ # Get function that will be executed by the strategy's evaluate() method
8
+ # Here we use it to save global model checkpoints
9
+ def get_evaluate_fn(model_cfg, save_every_round, total_round, save_path):
10
+ """Return an evaluation function for saving global model."""
11
+
12
+ def evaluate(server_round: int, parameters, config):
13
+ # Save model
14
+ if server_round != 0 and (
15
+ server_round == total_round or server_round % save_every_round == 0
16
+ ):
17
+ # Init model
18
+ model = get_model(model_cfg)
19
+ set_parameters(model, parameters)
20
+
21
+ model.save_pretrained(f"{save_path}/peft_{server_round}")
22
+
23
+ return 0.0, {}
24
+
25
+ return evaluate
26
+
27
+
28
+ def get_on_fit_config():
29
+ """
30
+ Return a function that will be used to construct the config
31
+ that the client's fit() method will receive.
32
+ """
33
+
34
+ def fit_config_fn(server_round: int):
35
+ fit_config = {"current_round": server_round}
36
+ return fit_config
37
+
38
+ return fit_config_fn
39
+
40
+
41
+ def fit_weighted_average(metrics):
42
+ """Aggregate (federated) evaluation metrics."""
43
+ # Multiply accuracy of each client by number of examples used
44
+ losses = [num_examples * m["train_loss"] for num_examples, m in metrics]
45
+ examples = [num_examples for num_examples, _ in metrics]
46
+
47
+ # Aggregate and return custom metric (weighted average)
48
+ return {"train_loss": sum(losses) / sum(examples)}
@@ -0,0 +1,11 @@
1
+ # Federated Instruction Tuning (static)
2
+ ---
3
+ dataset:
4
+ name: $dataset_name
5
+
6
+ # FL experimental settings
7
+ num_clients: $num_clients # total number of clients
8
+ num_rounds: 200
9
+ partitioner:
10
+ _target_: flwr_datasets.partitioner.IidPartitioner
11
+ num_partitions: $num_clients
@@ -0,0 +1,42 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "$package_name"
7
+ version = "1.0.0"
8
+ description = ""
9
+ authors = [
10
+ { name = "The Flower Authors", email = "hello@flower.ai" },
11
+ ]
12
+ license = { text = "Apache License (2.0)" }
13
+ dependencies = [
14
+ "flwr[simulation]>=1.9.0,<2.0",
15
+ "flwr-datasets>=0.1.0,<1.0.0",
16
+ "hydra-core==1.3.2",
17
+ "trl==0.8.1",
18
+ "bitsandbytes==0.43.0",
19
+ "scipy==1.13.0",
20
+ "peft==0.6.2",
21
+ "transformers==4.39.3",
22
+ "sentencepiece==0.2.0",
23
+ ]
24
+
25
+ [tool.hatch.build.targets.wheel]
26
+ packages = ["."]
27
+
28
+ [flower]
29
+ publisher = "$username"
30
+
31
+ [flower.components]
32
+ serverapp = "$import_name.app:server"
33
+ clientapp = "$import_name.app:client"
34
+
35
+ [flower.engine]
36
+ name = "simulation"
37
+
38
+ [flower.engine.simulation.supernode]
39
+ num = $num_clients
40
+
41
+ [flower.engine.simulation]
42
+ backend_config = { client_resources = { num_cpus = 8, num_gpus = 1.0 } }
flwr/cli/run/run.py CHANGED
@@ -41,7 +41,10 @@ class Engine(str, Enum):
41
41
  def run(
42
42
  engine: Annotated[
43
43
  Optional[Engine],
44
- typer.Option(case_sensitive=False, help="The execution engine to run the app"),
44
+ typer.Option(
45
+ case_sensitive=False,
46
+ help="The engine to run FL with (currently only simulation is supported).",
47
+ ),
45
48
  ] = None,
46
49
  use_superexec: Annotated[
47
50
  bool,
@@ -87,12 +90,16 @@ def run(
87
90
 
88
91
  if engine == Engine.SIMULATION:
89
92
  num_supernodes = config["flower"]["engine"]["simulation"]["supernode"]["num"]
93
+ backend_config = config["flower"]["engine"]["simulation"].get(
94
+ "backend_config", None
95
+ )
90
96
 
91
97
  typer.secho("Starting run... ", fg=typer.colors.BLUE)
92
98
  _run_simulation(
93
99
  server_app_attr=server_app_ref,
94
100
  client_app_attr=client_app_ref,
95
101
  num_supernodes=num_supernodes,
102
+ backend_config=backend_config,
96
103
  )
97
104
  else:
98
105
  typer.secho(
flwr/client/client_app.py CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2024 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2022 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2022 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2022 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2024 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2024 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
flwr/client/mod/utils.py CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2024 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -267,7 +267,7 @@ def _parse_args_run_supernode() -> argparse.ArgumentParser:
267
267
  "--flwr-dir",
268
268
  default=None,
269
269
  help="""The path containing installed Flower Apps.
270
- By default, this value isequal to:
270
+ By default, this value is equal to:
271
271
 
272
272
  - `$FLWR_HOME/` if `$FLWR_HOME` is defined
273
273
  - `$XDG_DATA_HOME/.flwr/` if `$XDG_DATA_HOME` is defined
flwr/common/address.py CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
flwr/common/config.py CHANGED
@@ -24,14 +24,16 @@ from flwr.cli.config_utils import validate_fields
24
24
  from flwr.common.constant import APP_DIR, FAB_CONFIG_FILE, FLWR_HOME
25
25
 
26
26
 
27
- def get_flwr_dir() -> Path:
27
+ def get_flwr_dir(provided_path: Optional[str] = None) -> Path:
28
28
  """Return the Flower home directory based on env variables."""
29
- return Path(
30
- os.getenv(
31
- FLWR_HOME,
32
- f"{os.getenv('XDG_DATA_HOME', os.getenv('HOME'))}/.flwr",
29
+ if provided_path is None or not Path(provided_path).is_dir():
30
+ return Path(
31
+ os.getenv(
32
+ FLWR_HOME,
33
+ f"{os.getenv('XDG_DATA_HOME', os.getenv('HOME'))}/.flwr",
34
+ )
33
35
  )
34
- )
36
+ return Path(provided_path).absolute()
35
37
 
36
38
 
37
39
  def get_project_dir(
flwr/common/constant.py CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
flwr/common/date.py CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
flwr/common/dp.py CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2022 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
flwr/common/grpc.py CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2022 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
flwr/common/version.py CHANGED
@@ -1,3 +1,17 @@
1
+ # Copyright 2023 Flower Labs GmbH. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # ==============================================================================
1
15
  """Flower package version helper."""
2
16
 
3
17
  import importlib.metadata as importlib_metadata
flwr/server/compat/app.py CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2022 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2024 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -91,7 +91,7 @@ def _update_client_manager(
91
91
  node_id=node_id,
92
92
  driver=driver,
93
93
  anonymous=False,
94
- run_id=driver.run_id, # type: ignore
94
+ run_id=driver.run.run_id,
95
95
  )
96
96
  if client_manager.register(client_proxy):
97
97
  registered_nodes[node_id] = client_proxy
@@ -1,4 +1,4 @@
1
- # Copyright 2020 Flower Labs GmbH. All Rights Reserved.
1
+ # Copyright 2024 Flower Labs GmbH. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -19,11 +19,17 @@ from abc import ABC, abstractmethod
19
19
  from typing import Iterable, List, Optional
20
20
 
21
21
  from flwr.common import Message, RecordSet
22
+ from flwr.common.typing import Run
22
23
 
23
24
 
24
25
  class Driver(ABC):
25
26
  """Abstract base Driver class for the Driver API."""
26
27
 
28
+ @property
29
+ @abstractmethod
30
+ def run(self) -> Run:
31
+ """Run information."""
32
+
27
33
  @abstractmethod
28
34
  def create_message( # pylint: disable=too-many-arguments
29
35
  self,