flwr 1.24.0__py3-none-any.whl → 1.26.0__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.
- flwr/__init__.py +1 -1
- flwr/app/__init__.py +4 -1
- flwr/app/message_type.py +29 -0
- flwr/app/metadata.py +5 -2
- flwr/app/user_config.py +19 -0
- flwr/cli/app.py +37 -19
- flwr/cli/app_cmd/publish.py +25 -75
- flwr/cli/app_cmd/review.py +25 -66
- flwr/cli/auth_plugin/auth_plugin.py +5 -10
- flwr/cli/auth_plugin/noop_auth_plugin.py +1 -2
- flwr/cli/auth_plugin/oidc_cli_plugin.py +38 -38
- flwr/cli/build.py +15 -28
- flwr/cli/config/__init__.py +21 -0
- flwr/cli/config/ls.py +71 -0
- flwr/cli/config_migration.py +297 -0
- flwr/cli/config_utils.py +63 -156
- flwr/cli/constant.py +71 -0
- flwr/cli/federation/__init__.py +0 -2
- flwr/cli/federation/ls.py +256 -64
- flwr/cli/flower_config.py +429 -0
- flwr/cli/install.py +23 -62
- flwr/cli/log.py +23 -37
- flwr/cli/login/login.py +29 -63
- flwr/cli/ls.py +72 -61
- flwr/cli/new/new.py +98 -309
- flwr/cli/pull.py +19 -37
- flwr/cli/run/run.py +87 -100
- flwr/cli/run_utils.py +23 -5
- flwr/cli/stop.py +33 -74
- flwr/cli/supernode/ls.py +35 -62
- flwr/cli/supernode/register.py +31 -80
- flwr/cli/supernode/unregister.py +24 -70
- flwr/cli/typing.py +200 -0
- flwr/cli/utils.py +160 -412
- flwr/client/grpc_adapter_client/connection.py +2 -2
- flwr/client/grpc_rere_client/connection.py +9 -6
- flwr/client/grpc_rere_client/grpc_adapter.py +1 -1
- flwr/client/message_handler/message_handler.py +2 -1
- flwr/client/mod/centraldp_mods.py +1 -1
- flwr/client/mod/localdp_mod.py +1 -1
- flwr/client/mod/secure_aggregation/secaggplus_mod.py +1 -1
- flwr/client/rest_client/connection.py +6 -4
- flwr/client/run_info_store.py +2 -1
- flwr/clientapp/client_app.py +2 -1
- flwr/common/__init__.py +3 -2
- flwr/common/args.py +5 -5
- flwr/common/config.py +12 -17
- flwr/common/constant.py +3 -16
- flwr/common/context.py +2 -1
- flwr/common/exit/exit.py +4 -4
- flwr/common/exit/exit_code.py +6 -0
- flwr/common/grpc.py +2 -1
- flwr/common/logger.py +1 -1
- flwr/common/message.py +1 -1
- flwr/common/retry_invoker.py +13 -5
- flwr/common/secure_aggregation/ndarrays_arithmetic.py +5 -2
- flwr/common/serde.py +13 -5
- flwr/common/telemetry.py +1 -1
- flwr/common/typing.py +10 -3
- flwr/compat/client/app.py +6 -9
- flwr/compat/client/grpc_client/connection.py +2 -1
- flwr/compat/common/constant.py +29 -0
- flwr/compat/server/app.py +1 -1
- flwr/proto/clientappio_pb2.py +2 -2
- flwr/proto/clientappio_pb2_grpc.py +104 -88
- flwr/proto/clientappio_pb2_grpc.pyi +140 -80
- flwr/proto/federation_pb2.py +5 -3
- flwr/proto/federation_pb2.pyi +32 -2
- flwr/proto/fleet_pb2.py +10 -10
- flwr/proto/fleet_pb2.pyi +5 -1
- flwr/proto/run_pb2.py +18 -26
- flwr/proto/run_pb2.pyi +10 -58
- flwr/proto/serverappio_pb2.py +2 -2
- flwr/proto/serverappio_pb2_grpc.py +138 -207
- flwr/proto/serverappio_pb2_grpc.pyi +189 -155
- flwr/proto/simulationio_pb2.py +2 -2
- flwr/proto/simulationio_pb2_grpc.py +62 -90
- flwr/proto/simulationio_pb2_grpc.pyi +95 -55
- flwr/server/app.py +7 -13
- flwr/server/compat/grid_client_proxy.py +2 -1
- flwr/server/grid/grpc_grid.py +5 -5
- flwr/server/serverapp/app.py +11 -4
- flwr/server/superlink/fleet/grpc_adapter/grpc_adapter_servicer.py +1 -1
- flwr/server/superlink/fleet/grpc_rere/node_auth_server_interceptor.py +13 -12
- flwr/server/superlink/fleet/message_handler/message_handler.py +42 -2
- flwr/server/superlink/linkstate/__init__.py +2 -2
- flwr/server/superlink/linkstate/in_memory_linkstate.py +36 -10
- flwr/server/superlink/linkstate/linkstate.py +34 -21
- flwr/server/superlink/linkstate/linkstate_factory.py +16 -8
- flwr/server/superlink/linkstate/{sqlite_linkstate.py → sql_linkstate.py} +471 -516
- flwr/server/superlink/linkstate/utils.py +49 -2
- flwr/server/superlink/serverappio/serverappio_servicer.py +1 -33
- flwr/server/superlink/simulation/simulationio_servicer.py +0 -19
- flwr/server/utils/validator.py +1 -1
- flwr/server/workflow/default_workflows.py +2 -1
- flwr/server/workflow/secure_aggregation/secaggplus_workflow.py +1 -1
- flwr/serverapp/strategy/bulyan.py +7 -1
- flwr/serverapp/strategy/dp_fixed_clipping.py +9 -1
- flwr/serverapp/strategy/fedavg.py +1 -1
- flwr/serverapp/strategy/fedxgb_cyclic.py +1 -1
- flwr/simulation/ray_transport/ray_client_proxy.py +2 -6
- flwr/simulation/run_simulation.py +3 -12
- flwr/simulation/simulationio_connection.py +3 -3
- flwr/{common → supercore}/address.py +7 -33
- flwr/supercore/app_utils.py +2 -1
- flwr/supercore/constant.py +27 -2
- flwr/supercore/corestate/{sqlite_corestate.py → sql_corestate.py} +19 -23
- flwr/supercore/credential_store/__init__.py +33 -0
- flwr/supercore/credential_store/credential_store.py +34 -0
- flwr/supercore/credential_store/file_credential_store.py +76 -0
- flwr/{common → supercore}/date.py +0 -11
- flwr/supercore/ffs/disk_ffs.py +1 -1
- flwr/supercore/object_store/object_store_factory.py +14 -6
- flwr/supercore/object_store/{sqlite_object_store.py → sql_object_store.py} +115 -117
- flwr/supercore/sql_mixin.py +315 -0
- flwr/{cli/new/templates → supercore/state}/__init__.py +2 -2
- flwr/{cli/new/templates/app/code/flwr_tune → supercore/state/alembic}/__init__.py +2 -2
- flwr/supercore/state/alembic/env.py +103 -0
- flwr/supercore/state/alembic/script.py.mako +43 -0
- flwr/supercore/state/alembic/utils.py +239 -0
- flwr/{cli/new/templates/app → supercore/state/alembic/versions}/__init__.py +2 -2
- flwr/supercore/state/alembic/versions/rev_2026_01_28_initialize_migration_of_state_tables.py +200 -0
- flwr/supercore/state/schema/README.md +121 -0
- flwr/{cli/new/templates/app/code → supercore/state/schema}/__init__.py +2 -2
- flwr/supercore/state/schema/corestate_tables.py +36 -0
- flwr/supercore/state/schema/linkstate_tables.py +152 -0
- flwr/supercore/state/schema/objectstore_tables.py +90 -0
- flwr/supercore/superexec/run_superexec.py +2 -2
- flwr/supercore/utils.py +225 -0
- flwr/superlink/federation/federation_manager.py +2 -2
- flwr/superlink/federation/noop_federation_manager.py +8 -6
- flwr/superlink/servicer/control/control_grpc.py +2 -0
- flwr/superlink/servicer/control/control_servicer.py +106 -21
- flwr/supernode/cli/flower_supernode.py +2 -1
- flwr/supernode/nodestate/in_memory_nodestate.py +62 -1
- flwr/supernode/nodestate/nodestate.py +45 -0
- flwr/supernode/runtime/run_clientapp.py +14 -14
- flwr/supernode/servicer/clientappio/clientappio_servicer.py +13 -5
- flwr/supernode/start_client_internal.py +17 -10
- {flwr-1.24.0.dist-info → flwr-1.26.0.dist-info}/METADATA +8 -8
- {flwr-1.24.0.dist-info → flwr-1.26.0.dist-info}/RECORD +144 -184
- flwr/cli/federation/show.py +0 -317
- flwr/cli/new/templates/app/.gitignore.tpl +0 -163
- flwr/cli/new/templates/app/LICENSE.tpl +0 -202
- flwr/cli/new/templates/app/README.baseline.md.tpl +0 -127
- flwr/cli/new/templates/app/README.flowertune.md.tpl +0 -68
- flwr/cli/new/templates/app/README.md.tpl +0 -37
- flwr/cli/new/templates/app/code/__init__.baseline.py.tpl +0 -1
- flwr/cli/new/templates/app/code/__init__.py.tpl +0 -1
- flwr/cli/new/templates/app/code/__init__.pytorch_legacy_api.py.tpl +0 -1
- flwr/cli/new/templates/app/code/client.baseline.py.tpl +0 -75
- flwr/cli/new/templates/app/code/client.huggingface.py.tpl +0 -93
- flwr/cli/new/templates/app/code/client.jax.py.tpl +0 -71
- flwr/cli/new/templates/app/code/client.mlx.py.tpl +0 -102
- flwr/cli/new/templates/app/code/client.numpy.py.tpl +0 -46
- flwr/cli/new/templates/app/code/client.pytorch.py.tpl +0 -80
- flwr/cli/new/templates/app/code/client.pytorch_legacy_api.py.tpl +0 -55
- flwr/cli/new/templates/app/code/client.sklearn.py.tpl +0 -108
- flwr/cli/new/templates/app/code/client.tensorflow.py.tpl +0 -82
- flwr/cli/new/templates/app/code/client.xgboost.py.tpl +0 -110
- flwr/cli/new/templates/app/code/dataset.baseline.py.tpl +0 -36
- flwr/cli/new/templates/app/code/flwr_tune/client_app.py.tpl +0 -92
- flwr/cli/new/templates/app/code/flwr_tune/dataset.py.tpl +0 -87
- flwr/cli/new/templates/app/code/flwr_tune/models.py.tpl +0 -56
- flwr/cli/new/templates/app/code/flwr_tune/server_app.py.tpl +0 -73
- flwr/cli/new/templates/app/code/flwr_tune/strategy.py.tpl +0 -78
- flwr/cli/new/templates/app/code/model.baseline.py.tpl +0 -66
- flwr/cli/new/templates/app/code/server.baseline.py.tpl +0 -43
- flwr/cli/new/templates/app/code/server.huggingface.py.tpl +0 -42
- flwr/cli/new/templates/app/code/server.jax.py.tpl +0 -39
- flwr/cli/new/templates/app/code/server.mlx.py.tpl +0 -41
- flwr/cli/new/templates/app/code/server.numpy.py.tpl +0 -38
- flwr/cli/new/templates/app/code/server.pytorch.py.tpl +0 -41
- flwr/cli/new/templates/app/code/server.pytorch_legacy_api.py.tpl +0 -31
- flwr/cli/new/templates/app/code/server.sklearn.py.tpl +0 -44
- flwr/cli/new/templates/app/code/server.tensorflow.py.tpl +0 -38
- flwr/cli/new/templates/app/code/server.xgboost.py.tpl +0 -56
- flwr/cli/new/templates/app/code/strategy.baseline.py.tpl +0 -1
- flwr/cli/new/templates/app/code/task.huggingface.py.tpl +0 -98
- flwr/cli/new/templates/app/code/task.jax.py.tpl +0 -57
- flwr/cli/new/templates/app/code/task.mlx.py.tpl +0 -102
- flwr/cli/new/templates/app/code/task.numpy.py.tpl +0 -7
- flwr/cli/new/templates/app/code/task.pytorch.py.tpl +0 -99
- flwr/cli/new/templates/app/code/task.pytorch_legacy_api.py.tpl +0 -111
- flwr/cli/new/templates/app/code/task.sklearn.py.tpl +0 -67
- flwr/cli/new/templates/app/code/task.tensorflow.py.tpl +0 -52
- flwr/cli/new/templates/app/code/task.xgboost.py.tpl +0 -67
- flwr/cli/new/templates/app/code/utils.baseline.py.tpl +0 -1
- flwr/cli/new/templates/app/pyproject.baseline.toml.tpl +0 -146
- flwr/cli/new/templates/app/pyproject.flowertune.toml.tpl +0 -80
- flwr/cli/new/templates/app/pyproject.huggingface.toml.tpl +0 -65
- flwr/cli/new/templates/app/pyproject.jax.toml.tpl +0 -52
- flwr/cli/new/templates/app/pyproject.mlx.toml.tpl +0 -56
- flwr/cli/new/templates/app/pyproject.numpy.toml.tpl +0 -49
- flwr/cli/new/templates/app/pyproject.pytorch.toml.tpl +0 -53
- flwr/cli/new/templates/app/pyproject.pytorch_legacy_api.toml.tpl +0 -53
- flwr/cli/new/templates/app/pyproject.sklearn.toml.tpl +0 -52
- flwr/cli/new/templates/app/pyproject.tensorflow.toml.tpl +0 -53
- flwr/cli/new/templates/app/pyproject.xgboost.toml.tpl +0 -61
- flwr/common/pyproject.py +0 -42
- flwr/supercore/sqlite_mixin.py +0 -159
- /flwr/{common → supercore}/version.py +0 -0
- {flwr-1.24.0.dist-info → flwr-1.26.0.dist-info}/WHEEL +0 -0
- {flwr-1.24.0.dist-info → flwr-1.26.0.dist-info}/entry_points.txt +0 -0
flwr/cli/federation/show.py
DELETED
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
# Copyright 2025 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
|
-
# ==============================================================================
|
|
15
|
-
"""Flower command line interface `federation show` command."""
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import io
|
|
19
|
-
from pathlib import Path
|
|
20
|
-
from typing import Annotated, Any
|
|
21
|
-
|
|
22
|
-
import typer
|
|
23
|
-
from rich.console import Console
|
|
24
|
-
from rich.table import Table
|
|
25
|
-
from rich.text import Text
|
|
26
|
-
|
|
27
|
-
from flwr.cli.config_utils import (
|
|
28
|
-
exit_if_no_address,
|
|
29
|
-
load_and_validate,
|
|
30
|
-
process_loaded_project_config,
|
|
31
|
-
validate_federation_in_project_config,
|
|
32
|
-
)
|
|
33
|
-
from flwr.cli.ls import _get_status_style
|
|
34
|
-
from flwr.common.constant import FAB_CONFIG_FILE, NOOP_ACCOUNT_NAME, CliOutputFormat
|
|
35
|
-
from flwr.common.logger import print_json_error, redirect_output, restore_output
|
|
36
|
-
from flwr.common.serde import run_from_proto
|
|
37
|
-
from flwr.proto.control_pb2 import ( # pylint: disable=E0611
|
|
38
|
-
ShowFederationRequest,
|
|
39
|
-
ShowFederationResponse,
|
|
40
|
-
)
|
|
41
|
-
from flwr.proto.control_pb2_grpc import ControlStub
|
|
42
|
-
from flwr.proto.node_pb2 import NodeInfo # pylint: disable=E0611
|
|
43
|
-
from flwr.supercore.constant import NOOP_FEDERATION
|
|
44
|
-
|
|
45
|
-
from ..run_utils import RunRow, format_runs
|
|
46
|
-
from ..utils import flwr_cli_grpc_exc_handler, init_channel, load_cli_auth_plugin
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
def show( # pylint: disable=R0914, R0913, R0917
|
|
50
|
-
app: Annotated[
|
|
51
|
-
Path,
|
|
52
|
-
typer.Argument(help="Path of the Flower project"),
|
|
53
|
-
] = Path("."),
|
|
54
|
-
federation: Annotated[
|
|
55
|
-
str | None,
|
|
56
|
-
typer.Argument(help="Name of the federation"),
|
|
57
|
-
] = None,
|
|
58
|
-
output_format: Annotated[
|
|
59
|
-
str,
|
|
60
|
-
typer.Option(
|
|
61
|
-
"--format",
|
|
62
|
-
case_sensitive=False,
|
|
63
|
-
help="Format output using 'default' view or 'json'",
|
|
64
|
-
),
|
|
65
|
-
] = CliOutputFormat.DEFAULT,
|
|
66
|
-
) -> None:
|
|
67
|
-
"""Show details of a federation.
|
|
68
|
-
|
|
69
|
-
Display comprehensive information about a federation including its members,
|
|
70
|
-
registered SuperNodes, and runs.
|
|
71
|
-
"""
|
|
72
|
-
suppress_output = output_format == CliOutputFormat.JSON
|
|
73
|
-
captured_output = io.StringIO()
|
|
74
|
-
try:
|
|
75
|
-
if suppress_output:
|
|
76
|
-
redirect_output(captured_output)
|
|
77
|
-
typer.secho("Loading project configuration... ", fg=typer.colors.BLUE)
|
|
78
|
-
|
|
79
|
-
pyproject_path = app / FAB_CONFIG_FILE if app else None
|
|
80
|
-
config, errors, warnings = load_and_validate(pyproject_path, check_module=False)
|
|
81
|
-
config = process_loaded_project_config(config, errors, warnings)
|
|
82
|
-
federation, federation_config = validate_federation_in_project_config(
|
|
83
|
-
federation, config
|
|
84
|
-
)
|
|
85
|
-
exit_if_no_address(federation_config, "federation show")
|
|
86
|
-
real_federation: str = federation_config.get("federation", NOOP_FEDERATION)
|
|
87
|
-
channel = None
|
|
88
|
-
try:
|
|
89
|
-
auth_plugin = load_cli_auth_plugin(app, federation, federation_config)
|
|
90
|
-
channel = init_channel(app, federation_config, auth_plugin)
|
|
91
|
-
stub = ControlStub(channel)
|
|
92
|
-
typer.echo(f"📄 Showing '{real_federation}' federation ...")
|
|
93
|
-
members, nodes, runs = _show_federation(stub, real_federation)
|
|
94
|
-
restore_output()
|
|
95
|
-
if output_format == CliOutputFormat.JSON:
|
|
96
|
-
Console().print_json(data=_to_json(members, nodes, runs))
|
|
97
|
-
else:
|
|
98
|
-
Console().print(_to_members_table(members))
|
|
99
|
-
Console().print(_to_nodes_table(nodes))
|
|
100
|
-
Console().print(_to_runs_table(runs))
|
|
101
|
-
finally:
|
|
102
|
-
if channel:
|
|
103
|
-
channel.close()
|
|
104
|
-
except (typer.Exit, Exception) as err: # pylint: disable=broad-except
|
|
105
|
-
if suppress_output:
|
|
106
|
-
restore_output()
|
|
107
|
-
e_message = captured_output.getvalue()
|
|
108
|
-
print_json_error(e_message, err)
|
|
109
|
-
else:
|
|
110
|
-
typer.secho(
|
|
111
|
-
f"{err}",
|
|
112
|
-
fg=typer.colors.RED,
|
|
113
|
-
bold=True,
|
|
114
|
-
err=True,
|
|
115
|
-
)
|
|
116
|
-
finally:
|
|
117
|
-
if suppress_output:
|
|
118
|
-
restore_output()
|
|
119
|
-
captured_output.close()
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
def _show_federation(
|
|
123
|
-
stub: ControlStub, federation: str
|
|
124
|
-
) -> tuple[list[str], list[NodeInfo], list[RunRow]]:
|
|
125
|
-
"""Show federation details.
|
|
126
|
-
|
|
127
|
-
Parameters
|
|
128
|
-
----------
|
|
129
|
-
stub : ControlStub
|
|
130
|
-
The gRPC stub for Control API communication.
|
|
131
|
-
federation : str
|
|
132
|
-
Name of the federation to show.
|
|
133
|
-
|
|
134
|
-
Returns
|
|
135
|
-
-------
|
|
136
|
-
tuple[list[str], list[NodeInfo], list[RunRow]]
|
|
137
|
-
A tuple containing (member_account_ids, nodes, runs).
|
|
138
|
-
"""
|
|
139
|
-
with flwr_cli_grpc_exc_handler():
|
|
140
|
-
res: ShowFederationResponse = stub.ShowFederation(
|
|
141
|
-
ShowFederationRequest(federation_name=federation)
|
|
142
|
-
)
|
|
143
|
-
|
|
144
|
-
fed_proto = res.federation
|
|
145
|
-
runs = [run_from_proto(run_proto) for run_proto in fed_proto.runs]
|
|
146
|
-
formatted_runs = format_runs(runs, res.now)
|
|
147
|
-
|
|
148
|
-
return list(fed_proto.member_aids), list(fed_proto.nodes), formatted_runs
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
def _to_members_table(member_aids: list[str]) -> Table:
|
|
152
|
-
"""Format the provided list of federation members as a rich Table.
|
|
153
|
-
|
|
154
|
-
Parameters
|
|
155
|
-
----------
|
|
156
|
-
member_aids : list[str]
|
|
157
|
-
List of member account identifiers.
|
|
158
|
-
|
|
159
|
-
Returns
|
|
160
|
-
-------
|
|
161
|
-
Table
|
|
162
|
-
Rich Table object with formatted member information.
|
|
163
|
-
"""
|
|
164
|
-
table = Table(title="Federation Members", header_style="bold cyan", show_lines=True)
|
|
165
|
-
|
|
166
|
-
table.add_column(
|
|
167
|
-
Text("Account ID", justify="center"), style="bright_black", no_wrap=True
|
|
168
|
-
)
|
|
169
|
-
table.add_column(Text("Role", justify="center"), style="bright_black", no_wrap=True)
|
|
170
|
-
|
|
171
|
-
for member_aid in member_aids:
|
|
172
|
-
table.add_row(member_aid, "Member")
|
|
173
|
-
|
|
174
|
-
return table
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
def _to_nodes_table(nodes: list[NodeInfo]) -> Table:
|
|
178
|
-
"""Format the provided list of federation nodes as a rich Table.
|
|
179
|
-
|
|
180
|
-
Parameters
|
|
181
|
-
----------
|
|
182
|
-
nodes : list[NodeInfo]
|
|
183
|
-
List of NodeInfo objects containing node details.
|
|
184
|
-
|
|
185
|
-
Returns
|
|
186
|
-
-------
|
|
187
|
-
Table
|
|
188
|
-
Rich Table object with formatted node information.
|
|
189
|
-
|
|
190
|
-
Raises
|
|
191
|
-
------
|
|
192
|
-
ValueError
|
|
193
|
-
If an unexpected node status is encountered.
|
|
194
|
-
"""
|
|
195
|
-
table = Table(
|
|
196
|
-
title="SuperNodes in the Federation", header_style="bold cyan", show_lines=True
|
|
197
|
-
)
|
|
198
|
-
|
|
199
|
-
# Add columns
|
|
200
|
-
table.add_column(
|
|
201
|
-
Text("Node ID", justify="center"), style="bright_black", no_wrap=True
|
|
202
|
-
)
|
|
203
|
-
table.add_column(Text("Owner", justify="center"))
|
|
204
|
-
table.add_column(Text("Status", justify="center"))
|
|
205
|
-
|
|
206
|
-
for row in nodes:
|
|
207
|
-
owner_name = row.owner_name
|
|
208
|
-
status = row.status
|
|
209
|
-
|
|
210
|
-
if status == "online":
|
|
211
|
-
status_style = "green"
|
|
212
|
-
elif status == "offline":
|
|
213
|
-
status_style = "bright_yellow"
|
|
214
|
-
elif status == "unregistered":
|
|
215
|
-
continue
|
|
216
|
-
elif status == "registered":
|
|
217
|
-
status_style = "blue"
|
|
218
|
-
else:
|
|
219
|
-
raise ValueError(f"Unexpected node status '{status}'")
|
|
220
|
-
|
|
221
|
-
formatted_row = (
|
|
222
|
-
f"[bold]{row.node_id}[/bold]",
|
|
223
|
-
(
|
|
224
|
-
f"{owner_name}"
|
|
225
|
-
if owner_name != NOOP_ACCOUNT_NAME
|
|
226
|
-
else f"[dim]{owner_name}[/dim]"
|
|
227
|
-
),
|
|
228
|
-
f"[{status_style}]{status}",
|
|
229
|
-
)
|
|
230
|
-
table.add_row(*formatted_row)
|
|
231
|
-
|
|
232
|
-
return table
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
def _to_runs_table(run_list: list[RunRow]) -> Table:
|
|
236
|
-
"""Format the provided list of federation runs as a rich Table.
|
|
237
|
-
|
|
238
|
-
Parameters
|
|
239
|
-
----------
|
|
240
|
-
run_list : list[RunRow]
|
|
241
|
-
List of RunRow objects containing run details.
|
|
242
|
-
|
|
243
|
-
Returns
|
|
244
|
-
-------
|
|
245
|
-
Table
|
|
246
|
-
Rich Table object with formatted run information.
|
|
247
|
-
"""
|
|
248
|
-
table = Table(
|
|
249
|
-
title="Runs in the Federation", header_style="bold cyan", show_lines=True
|
|
250
|
-
)
|
|
251
|
-
|
|
252
|
-
# Add columns
|
|
253
|
-
table.add_column(Text("Run ID", justify="center"), no_wrap=True)
|
|
254
|
-
table.add_column(Text("App", justify="center"))
|
|
255
|
-
table.add_column(Text("Status", justify="center"))
|
|
256
|
-
table.add_column(Text("Elapsed", justify="center"), style="blue")
|
|
257
|
-
|
|
258
|
-
for row in run_list:
|
|
259
|
-
status_style = _get_status_style(row.status_text)
|
|
260
|
-
|
|
261
|
-
formatted_row = (
|
|
262
|
-
f"[bold]{row.run_id}[/bold]",
|
|
263
|
-
f"@{row.fab_id}=={row.fab_version}",
|
|
264
|
-
f"[{status_style}]{row.status_text}[/{status_style}]",
|
|
265
|
-
row.elapsed,
|
|
266
|
-
)
|
|
267
|
-
table.add_row(*formatted_row)
|
|
268
|
-
|
|
269
|
-
return table
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
def _to_json(
|
|
273
|
-
members: list[str], nodes: list[NodeInfo], runs: list[RunRow]
|
|
274
|
-
) -> list[list[dict[str, str]]]:
|
|
275
|
-
"""Format the provided federation information to JSON serializable format.
|
|
276
|
-
|
|
277
|
-
Parameters
|
|
278
|
-
----------
|
|
279
|
-
members : list[str]
|
|
280
|
-
List of member account identifiers.
|
|
281
|
-
nodes : list[NodeInfo]
|
|
282
|
-
List of NodeInfo objects.
|
|
283
|
-
runs : list[RunRow]
|
|
284
|
-
List of RunRow objects.
|
|
285
|
-
|
|
286
|
-
Returns
|
|
287
|
-
-------
|
|
288
|
-
list[list[dict[str, str]]]
|
|
289
|
-
Nested list containing dictionaries for members, nodes, and runs.
|
|
290
|
-
"""
|
|
291
|
-
members_list: list[dict[str, Any]] = []
|
|
292
|
-
nodes_list: list[dict[str, Any]] = []
|
|
293
|
-
runs_list: list[dict[str, Any]] = []
|
|
294
|
-
|
|
295
|
-
for member in members:
|
|
296
|
-
members_list.append({"member_id": member, "role": "Member"})
|
|
297
|
-
|
|
298
|
-
for node in nodes:
|
|
299
|
-
nodes_list.append(
|
|
300
|
-
{
|
|
301
|
-
"node_id": node.node_id,
|
|
302
|
-
"owner": node.owner_name,
|
|
303
|
-
"status": node.status,
|
|
304
|
-
}
|
|
305
|
-
)
|
|
306
|
-
|
|
307
|
-
for run in runs:
|
|
308
|
-
runs_list.append(
|
|
309
|
-
{
|
|
310
|
-
"run_id": run.run_id,
|
|
311
|
-
"app": f"@{run.fab_id}=={run.fab_version}",
|
|
312
|
-
"status": run.status_text,
|
|
313
|
-
"elapsed": run.elapsed,
|
|
314
|
-
}
|
|
315
|
-
)
|
|
316
|
-
|
|
317
|
-
return [members_list, nodes_list, runs_list]
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
# Byte-compiled / optimized / DLL files
|
|
2
|
-
__pycache__/
|
|
3
|
-
*.py[cod]
|
|
4
|
-
*$py.class
|
|
5
|
-
|
|
6
|
-
# Flower directory
|
|
7
|
-
.flwr
|
|
8
|
-
|
|
9
|
-
# C extensions
|
|
10
|
-
*.so
|
|
11
|
-
|
|
12
|
-
# Distribution / packaging
|
|
13
|
-
.Python
|
|
14
|
-
build/
|
|
15
|
-
develop-eggs/
|
|
16
|
-
dist/
|
|
17
|
-
downloads/
|
|
18
|
-
eggs/
|
|
19
|
-
.eggs/
|
|
20
|
-
lib/
|
|
21
|
-
lib64/
|
|
22
|
-
parts/
|
|
23
|
-
sdist/
|
|
24
|
-
var/
|
|
25
|
-
wheels/
|
|
26
|
-
share/python-wheels/
|
|
27
|
-
*.egg-info/
|
|
28
|
-
.installed.cfg
|
|
29
|
-
*.egg
|
|
30
|
-
MANIFEST
|
|
31
|
-
|
|
32
|
-
# PyInstaller
|
|
33
|
-
# Usually these files are written by a python script from a template
|
|
34
|
-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
35
|
-
*.manifest
|
|
36
|
-
*.spec
|
|
37
|
-
|
|
38
|
-
# Installer logs
|
|
39
|
-
pip-log.txt
|
|
40
|
-
pip-delete-this-directory.txt
|
|
41
|
-
|
|
42
|
-
# Unit test / coverage reports
|
|
43
|
-
htmlcov/
|
|
44
|
-
.tox/
|
|
45
|
-
.nox/
|
|
46
|
-
.coverage
|
|
47
|
-
.coverage.*
|
|
48
|
-
.cache
|
|
49
|
-
nosetests.xml
|
|
50
|
-
coverage.xml
|
|
51
|
-
*.cover
|
|
52
|
-
*.py,cover
|
|
53
|
-
.hypothesis/
|
|
54
|
-
.pytest_cache/
|
|
55
|
-
cover/
|
|
56
|
-
|
|
57
|
-
# Translations
|
|
58
|
-
*.mo
|
|
59
|
-
*.pot
|
|
60
|
-
|
|
61
|
-
# Django stuff:
|
|
62
|
-
*.log
|
|
63
|
-
local_settings.py
|
|
64
|
-
db.sqlite3
|
|
65
|
-
db.sqlite3-journal
|
|
66
|
-
|
|
67
|
-
# Flask stuff:
|
|
68
|
-
instance/
|
|
69
|
-
.webassets-cache
|
|
70
|
-
|
|
71
|
-
# Scrapy stuff:
|
|
72
|
-
.scrapy
|
|
73
|
-
|
|
74
|
-
# Sphinx documentation
|
|
75
|
-
docs/_build/
|
|
76
|
-
|
|
77
|
-
# PyBuilder
|
|
78
|
-
.pybuilder/
|
|
79
|
-
target/
|
|
80
|
-
|
|
81
|
-
# Jupyter Notebook
|
|
82
|
-
.ipynb_checkpoints
|
|
83
|
-
|
|
84
|
-
# IPython
|
|
85
|
-
profile_default/
|
|
86
|
-
ipython_config.py
|
|
87
|
-
|
|
88
|
-
# pyenv
|
|
89
|
-
# For a library or package, you might want to ignore these files since the code is
|
|
90
|
-
# intended to run in multiple environments; otherwise, check them in:
|
|
91
|
-
# .python-version
|
|
92
|
-
|
|
93
|
-
# pipenv
|
|
94
|
-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
95
|
-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
96
|
-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
97
|
-
# install all needed dependencies.
|
|
98
|
-
#Pipfile.lock
|
|
99
|
-
|
|
100
|
-
# poetry
|
|
101
|
-
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
102
|
-
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
103
|
-
# commonly ignored for libraries.
|
|
104
|
-
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
105
|
-
#poetry.lock
|
|
106
|
-
|
|
107
|
-
# pdm
|
|
108
|
-
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
109
|
-
#pdm.lock
|
|
110
|
-
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
111
|
-
# in version control.
|
|
112
|
-
# https://pdm.fming.dev/#use-with-ide
|
|
113
|
-
.pdm.toml
|
|
114
|
-
|
|
115
|
-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
116
|
-
__pypackages__/
|
|
117
|
-
|
|
118
|
-
# Celery stuff
|
|
119
|
-
celerybeat-schedule
|
|
120
|
-
celerybeat.pid
|
|
121
|
-
|
|
122
|
-
# SageMath parsed files
|
|
123
|
-
*.sage.py
|
|
124
|
-
|
|
125
|
-
# Environments
|
|
126
|
-
.env
|
|
127
|
-
.venv
|
|
128
|
-
env/
|
|
129
|
-
venv/
|
|
130
|
-
ENV/
|
|
131
|
-
env.bak/
|
|
132
|
-
venv.bak/
|
|
133
|
-
|
|
134
|
-
# Spyder project settings
|
|
135
|
-
.spyderproject
|
|
136
|
-
.spyproject
|
|
137
|
-
|
|
138
|
-
# Rope project settings
|
|
139
|
-
.ropeproject
|
|
140
|
-
|
|
141
|
-
# mkdocs documentation
|
|
142
|
-
/site
|
|
143
|
-
|
|
144
|
-
# mypy
|
|
145
|
-
.mypy_cache/
|
|
146
|
-
.dmypy.json
|
|
147
|
-
dmypy.json
|
|
148
|
-
|
|
149
|
-
# Pyre type checker
|
|
150
|
-
.pyre/
|
|
151
|
-
|
|
152
|
-
# pytype static type analyzer
|
|
153
|
-
.pytype/
|
|
154
|
-
|
|
155
|
-
# Cython debug symbols
|
|
156
|
-
cython_debug/
|
|
157
|
-
|
|
158
|
-
# PyCharm
|
|
159
|
-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
160
|
-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
161
|
-
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
162
|
-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
163
|
-
#.idea/
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Apache License
|
|
3
|
-
Version 2.0, January 2004
|
|
4
|
-
http://www.apache.org/licenses/
|
|
5
|
-
|
|
6
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
-
|
|
8
|
-
1. Definitions.
|
|
9
|
-
|
|
10
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
-
|
|
13
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
-
the copyright owner that is granting the License.
|
|
15
|
-
|
|
16
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
-
other entities that control, are controlled by, or are under common
|
|
18
|
-
control with that entity. For the purposes of this definition,
|
|
19
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
-
direction or management of such entity, whether by contract or
|
|
21
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
-
|
|
24
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
-
exercising permissions granted by this License.
|
|
26
|
-
|
|
27
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
-
including but not limited to software source code, documentation
|
|
29
|
-
source, and configuration files.
|
|
30
|
-
|
|
31
|
-
"Object" form shall mean any form resulting from mechanical
|
|
32
|
-
transformation or translation of a Source form, including but
|
|
33
|
-
not limited to compiled object code, generated documentation,
|
|
34
|
-
and conversions to other media types.
|
|
35
|
-
|
|
36
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
-
Object form, made available under the License, as indicated by a
|
|
38
|
-
copyright notice that is included in or attached to the work
|
|
39
|
-
(an example is provided in the Appendix below).
|
|
40
|
-
|
|
41
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
-
form, that is based on (or derived from) the Work and for which the
|
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
-
of this License, Derivative Works shall not include works that remain
|
|
46
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
-
the Work and Derivative Works thereof.
|
|
48
|
-
|
|
49
|
-
"Contribution" shall mean any work of authorship, including
|
|
50
|
-
the original version of the Work and any modifications or additions
|
|
51
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
-
means any form of electronic, verbal, or written communication sent
|
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
-
excluding communication that is conspicuously marked or otherwise
|
|
61
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
-
|
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
-
subsequently incorporated within the Work.
|
|
66
|
-
|
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
|
73
|
-
|
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
-
|
|
181
|
-
To apply the Apache License to your work, attach the following
|
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
-
replaced with your own identifying information. (Don't include
|
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
-
comment syntax for the file format. We also recommend that a
|
|
186
|
-
file or class name and description of purpose be included on the
|
|
187
|
-
same "printed page" as the copyright notice for easier
|
|
188
|
-
identification within third-party archives.
|
|
189
|
-
|
|
190
|
-
Copyright [yyyy] [name of copyright owner]
|
|
191
|
-
|
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
you may not use this file except in compliance with the License.
|
|
194
|
-
You may obtain a copy of the License at
|
|
195
|
-
|
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
|
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
-
See the License for the specific language governing permissions and
|
|
202
|
-
limitations under the License.
|