Skip to content

Commit 75dba40

Browse files
authored
refactor(framework): Rename platform to Flower App Hub (#6736)
1 parent ea6a508 commit 75dba40

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

framework/py/flwr/cli/app_cmd/publish.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ def publish(
5757
),
5858
] = Path("."),
5959
) -> None:
60-
"""Publish a Flower App to the Flower Platform.
60+
"""Publish a Flower App to Flower Hub.
6161
62-
This command uploads your app project to the Flower Platform. Files are filtered
63-
based on .gitignore patterns and allowed file extensions.
62+
This command uploads your app project to Flower Hub. Files are filtered based on
63+
.gitignore patterns and allowed file extensions.
6464
"""
6565
auth_plugin = load_cli_auth_plugin_from_connection(SUPERGRID_ADDRESS)
6666
auth_plugin.load_tokens()

framework/py/flwr/cli/app_cmd/review.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def review(
5555
],
5656
) -> None:
5757
"""Download a FAB for <APP-ID>, unpack it for manual review, and upon confirmation
58-
sign & submit the review to the Platform."""
58+
sign & submit the review to Flower Hub."""
5959
auth_plugin = load_cli_auth_plugin_from_connection(SUPERGRID_ADDRESS)
6060

6161
auth_plugin.load_tokens()
@@ -182,7 +182,7 @@ def _sign_fab(
182182
def _submit_review(
183183
app_id: str, app_version: str, signature: bytes, signed_at: int, token: str
184184
) -> None:
185-
"""Submit review to Flower Platform API."""
185+
"""Submit review to Flower Hub."""
186186
signature_b64 = base64.urlsafe_b64encode(signature).rstrip(b"=").decode("ascii")
187187
url = f"{PLATFORM_API_URL}/hub/apps/signature"
188188
headers = {"Authorization": f"Bearer {token}", "Content-Type": "application/json"}

framework/py/flwr/supercore/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def parse_app_spec(app_spec: str) -> tuple[str, str | None]:
117117
def request_download_link(
118118
app_id: str, app_version: str | None, in_url: str, out_url: str
119119
) -> tuple[str, list[dict[str, str]] | None]:
120-
"""Request a download link for the given app from the Flower Platform API.
120+
"""Request a download link for the given app from Flower Hub.
121121
122122
Parameters
123123
----------

framework/py/flwr/superlink/servicer/control/control_servicer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -902,12 +902,12 @@ def _get_remote_fab(
902902
app_spec: str,
903903
context: grpc.ServicerContext,
904904
) -> tuple[bytes, dict[str, str]]:
905-
"""Get remote FAB from Flower platform API."""
905+
"""Get remote FAB from Flower Hub."""
906906
if fleet_api_type == TRANSPORT_TYPE_GRPC_ADAPTER:
907907
context.abort(
908908
grpc.StatusCode.FAILED_PRECONDITION,
909909
"The selected SuperLink transport type is not "
910-
"supported for connecting to Flower Platform.",
910+
"supported for connecting to Flower Hub.",
911911
)
912912

913913
# Parse and validate app specification
@@ -938,7 +938,7 @@ def _get_remote_fab(
938938
else {"valid_license": ""}
939939
)
940940

941-
# Download FAB from Flower platform API
941+
# Download FAB from Flower Hub
942942
try:
943943
r = requests.get(presigned_url, timeout=60)
944944
r.raise_for_status()

0 commit comments

Comments
 (0)