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.
Files changed (22) hide show
  1. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/PKG-INFO +1 -1
  2. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/__init__.py +1 -1
  3. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_commands.py +4 -8
  4. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_deploy.py +1 -1
  5. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/pyproject.toml +1 -1
  6. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/.gitignore +0 -0
  7. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/LICENSE +0 -0
  8. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/README.md +0 -0
  9. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_api_types.py +0 -0
  10. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_changes.py +0 -0
  11. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_cloud_env.py +0 -0
  12. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_definitions.py +0 -0
  13. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_devtool_hooks.py +0 -0
  14. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_devtool_publish_rpc.py +0 -0
  15. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_oauth.py +0 -0
  16. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_parser.py +0 -0
  17. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/_run_sync.py +0 -0
  18. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/cli.py +0 -0
  19. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/cloud-env.toml +0 -0
  20. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/cloud_devtools.css +0 -0
  21. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/cloud_devtools.js +0 -0
  22. {plotly_cloud-0.4.0 → plotly_cloud-0.4.1}/plotly_cloud/exceptions.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plotly-cloud
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Python extension for Plotly Cloud with CLI and Dash dev tools integration
5
5
  Project-URL: Repository, https://github.com/plotly/plotly-cloud-extension
6
6
  License-File: LICENSE
@@ -1,3 +1,3 @@
1
1
  """Plotly Cloud Extension package."""
2
2
 
3
- __version__ = "0.4.0"
3
+ __version__ = "0.4.1"
@@ -449,7 +449,7 @@ class PublishCommand(BaseCommand):
449
449
  },
450
450
  {
451
451
  "name": "--team",
452
- "help": "Team name or slug to assign the app to (alternative to --team-id)",
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/slug to team_id
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 or slug",
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/slug to team_id if needed
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)
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "plotly-cloud"
7
- version = "0.4.0"
7
+ version = "0.4.1"
8
8
  description = "Python extension for Plotly Cloud with CLI and Dash dev tools integration"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
File without changes
File without changes
File without changes