proxy-platform 0.3.2__tar.gz → 0.3.3__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 (41) hide show
  1. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/PKG-INFO +1 -1
  2. proxy_platform-0.3.3/proxy_platform/__init__.py +3 -0
  3. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/main_public.py +10 -41
  4. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform.egg-info/PKG-INFO +1 -1
  5. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/pyproject.toml +1 -1
  6. proxy_platform-0.3.2/proxy_platform/__init__.py +0 -3
  7. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/README.md +0 -0
  8. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/README.public.md +0 -0
  9. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/client.py +0 -0
  10. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/commands/__init__.py +0 -0
  11. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/commands/auth.py +0 -0
  12. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/commands/clusters.py +0 -0
  13. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/commands/deployments.py +0 -0
  14. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/commands/feedback.py +0 -0
  15. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/commands/firewalls.py +0 -0
  16. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/commands/orders.py +0 -0
  17. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/commands/products.py +0 -0
  18. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/commands/support.py +0 -0
  19. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/commands/users.py +0 -0
  20. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/config.py +0 -0
  21. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform/main.py +0 -0
  22. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform.egg-info/SOURCES.txt +0 -0
  23. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform.egg-info/dependency_links.txt +0 -0
  24. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform.egg-info/entry_points.txt +0 -0
  25. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform.egg-info/requires.txt +0 -0
  26. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/proxy_platform.egg-info/top_level.txt +0 -0
  27. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/setup.cfg +0 -0
  28. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/setup.py +0 -0
  29. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/tests/test_admin_feedback.py +0 -0
  30. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/tests/test_auth.py +0 -0
  31. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/tests/test_client.py +0 -0
  32. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/tests/test_clusters.py +0 -0
  33. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/tests/test_config.py +0 -0
  34. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/tests/test_deployments.py +0 -0
  35. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/tests/test_dev.py +0 -0
  36. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/tests/test_feedback.py +0 -0
  37. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/tests/test_firewalls.py +0 -0
  38. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/tests/test_main.py +0 -0
  39. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/tests/test_orders.py +0 -0
  40. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/tests/test_products.py +0 -0
  41. {proxy_platform-0.3.2 → proxy_platform-0.3.3}/tests/test_users.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: proxy-platform
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: CLI client for the Proxy Platform
5
5
  Author: Proxy Platform B.V.
6
6
  License: Proprietary - Proxy Platform B.V.
@@ -0,0 +1,3 @@
1
+ """Proxy Platform CLI."""
2
+
3
+ __version__ = "0.3.3"
@@ -1,4 +1,4 @@
1
- """Public CLI application entry point (no admin commands)."""
1
+ """Public CLI application entry point (no admin commands, production-only)."""
2
2
 
3
3
  import logging
4
4
 
@@ -6,13 +6,15 @@ import typer
6
6
  from rich.console import Console
7
7
  from rich.logging import RichHandler
8
8
 
9
- from . import __version__
10
- from .commands import auth, clusters, feedback, firewalls, orders, products, support, users
11
- from .config import ENVIRONMENTS, get_current_environment, set_environment
9
+ from . import __version__, config
10
+
11
+ config.get_current_environment = lambda: "production"
12
+
13
+ from .commands import auth, clusters, feedback, firewalls, orders, products, support, users # noqa: E402
12
14
 
13
15
  app = typer.Typer(
14
- name="pbd",
15
- help="PBD CLI - Command line client for the PBD platform",
16
+ name="proxy-platform",
17
+ help="Proxy Platform CLI",
16
18
  add_completion=True,
17
19
  )
18
20
  console = Console()
@@ -45,7 +47,7 @@ def main_callback(
45
47
  help="Enable verbose output with debug logging",
46
48
  ),
47
49
  ) -> None:
48
- """PBD CLI - Command line client for the PBD platform.
50
+ """Proxy Platform CLI.
49
51
 
50
52
  Use --verbose to see detailed debug output including API calls and responses.
51
53
  """
@@ -65,40 +67,7 @@ app.add_typer(users.app, name="users", help="User management commands")
65
67
  @app.command()
66
68
  def version() -> None:
67
69
  """Show CLI version."""
68
- console.print(f"PBD CLI version: [bold cyan]{__version__}[/bold cyan]")
69
-
70
-
71
- @app.command()
72
- def env(
73
- environment: str | None = typer.Argument(
74
- None,
75
- help="Environment to switch to (development, test, acceptance, production)",
76
- ),
77
- show: bool = typer.Option(
78
- False,
79
- "--show",
80
- "-s",
81
- help="Show current environment",
82
- ),
83
- ) -> None:
84
- """Manage environment settings."""
85
- if show or environment is None:
86
- current = get_current_environment()
87
- console.print(f"Current environment: [bold cyan]{current}[/bold cyan]")
88
- console.print("\nAvailable environments:")
89
- for env_name, urls in ENVIRONMENTS.items():
90
- marker = "→" if env_name == current else " "
91
- console.print(f"{marker} [yellow]{env_name}[/yellow]")
92
- console.print(f" User API: {urls['user_api']}")
93
- return
94
-
95
- if environment not in ENVIRONMENTS:
96
- console.print(f"[red]Error: Invalid environment '{environment}'[/red]")
97
- console.print(f"Available: {', '.join(ENVIRONMENTS.keys())}")
98
- raise typer.Exit(1)
99
-
100
- set_environment(environment)
101
- console.print(f"[green]✓[/green] Switched to [bold cyan]{environment}[/bold cyan] environment")
70
+ console.print(f"Proxy Platform CLI version: [bold cyan]{__version__}[/bold cyan]")
102
71
 
103
72
 
104
73
  @app.command(name="login")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: proxy-platform
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: CLI client for the Proxy Platform
5
5
  Author: Proxy Platform B.V.
6
6
  License: Proprietary - Proxy Platform B.V.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "proxy-platform"
7
- version = "0.3.2"
7
+ version = "0.3.3"
8
8
  description = "CLI client for the Proxy Platform"
9
9
  authors = [{ name = "Proxy Platform B.V." }]
10
10
  readme = "README.public.md"
@@ -1,3 +0,0 @@
1
- """PBD CLI - Command line client for PBD APIs."""
2
-
3
- __version__ = "0.2.0"
File without changes
File without changes
File without changes