plotly-cloud 0.4.0__tar.gz → 0.4.1__tar.gz
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.
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/PKG-INFO +1 -1
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/__init__.py +1 -1
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_commands.py +4 -8
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_deploy.py +1 -1
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/pyproject.toml +1 -1
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/.gitignore +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/LICENSE +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/README.md +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_api_types.py +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_changes.py +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_cloud_env.py +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_definitions.py +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_devtool_hooks.py +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_devtool_publish_rpc.py +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_oauth.py +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_parser.py +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_run_sync.py +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/cli.py +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/cloud-env.toml +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/cloud_devtools.css +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/cloud_devtools.js +0 -0
- {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/exceptions.py +0 -0
|
@@ -449,7 +449,7 @@ class PublishCommand(BaseCommand):
|
|
|
449
449
|
},
|
|
450
450
|
{
|
|
451
451
|
"name": "--team",
|
|
452
|
-
"help": "Team name
|
|
452
|
+
"help": "Team name to assign the app to (alternative to --team-id)",
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
455
|
"name": "--output",
|
|
@@ -642,7 +642,7 @@ class PublishCommand(BaseCommand):
|
|
|
642
642
|
team_name_or_slug = getattr(args, "team", None)
|
|
643
643
|
|
|
644
644
|
if team_name_or_slug and not team_id:
|
|
645
|
-
# Need to resolve team name
|
|
645
|
+
# Need to resolve team name to team_id
|
|
646
646
|
team_resolve_task = progress.add_task(f"Resolving team '{team_name_or_slug}'...", total=None)
|
|
647
647
|
try:
|
|
648
648
|
teams = await deploy_client.list_teams()
|
|
@@ -650,7 +650,6 @@ class PublishCommand(BaseCommand):
|
|
|
650
650
|
for team in teams:
|
|
651
651
|
if (
|
|
652
652
|
team.get("name", "").lower() == team_name_or_slug.lower()
|
|
653
|
-
or team.get("team_slug", "").lower() == team_name_or_slug.lower()
|
|
654
653
|
or team.get("id", "").lower() == team_name_or_slug.lower()
|
|
655
654
|
):
|
|
656
655
|
matching_team = team
|
|
@@ -798,7 +797,7 @@ class ListCommand(BaseCommand):
|
|
|
798
797
|
arguments: List[CommandArgument] = [
|
|
799
798
|
{
|
|
800
799
|
"name": "--team",
|
|
801
|
-
"help": "Filter apps by team name
|
|
800
|
+
"help": "Filter apps by team name",
|
|
802
801
|
},
|
|
803
802
|
{
|
|
804
803
|
"name": "--team-id",
|
|
@@ -820,7 +819,7 @@ class ListCommand(BaseCommand):
|
|
|
820
819
|
raise ApplicationError("Unable to retrieve access token. Please try logging in again.")
|
|
821
820
|
|
|
822
821
|
async with DeploymentClient(oauth_client) as deploy_client:
|
|
823
|
-
# Resolve team name
|
|
822
|
+
# Resolve team name to team_id if needed
|
|
824
823
|
team_id = getattr(args, "team_id", None)
|
|
825
824
|
team_name_or_slug = getattr(args, "team", None)
|
|
826
825
|
|
|
@@ -829,7 +828,6 @@ class ListCommand(BaseCommand):
|
|
|
829
828
|
for team in teams:
|
|
830
829
|
if (
|
|
831
830
|
team.get("name", "").lower() == team_name_or_slug.lower()
|
|
832
|
-
or team.get("team_slug", "").lower() == team_name_or_slug.lower()
|
|
833
831
|
or team.get("id", "").lower() == team_name_or_slug.lower()
|
|
834
832
|
):
|
|
835
833
|
team_id = team.get("id")
|
|
@@ -999,7 +997,6 @@ class TeamsCommand(BaseCommand):
|
|
|
999
997
|
# Create a table for the teams
|
|
1000
998
|
table = Table(show_header=True, header_style="bold blue")
|
|
1001
999
|
table.add_column("Name", style="cyan", no_wrap=True)
|
|
1002
|
-
table.add_column("Slug", style="green")
|
|
1003
1000
|
table.add_column("Team ID", style="white", overflow="fold")
|
|
1004
1001
|
table.add_column("Created", style="magenta")
|
|
1005
1002
|
|
|
@@ -1007,7 +1004,6 @@ class TeamsCommand(BaseCommand):
|
|
|
1007
1004
|
for team in teams:
|
|
1008
1005
|
table.add_row(
|
|
1009
1006
|
team.get("name", "—"),
|
|
1010
|
-
team.get("team_slug", "—"),
|
|
1011
1007
|
team.get("id", "—"),
|
|
1012
1008
|
team.get("created_at", "—")[:10] if team.get("created_at") else "—", # Show only date
|
|
1013
1009
|
)
|
|
@@ -510,7 +510,7 @@ class DeploymentClient:
|
|
|
510
510
|
response = await self._client.get(url)
|
|
511
511
|
|
|
512
512
|
if response.status_code == 200:
|
|
513
|
-
memberships: list[UserTeamMembership] = response.json()
|
|
513
|
+
memberships: list[UserTeamMembership] = response.json()["teams"]
|
|
514
514
|
return [m["team"] for m in memberships]
|
|
515
515
|
|
|
516
516
|
token_refreshed = await self._refresh_token_if_needed(response)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|