proxy-platform 0.3.1__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.
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/PKG-INFO +4 -4
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/README.public.md +1 -1
- proxy_platform-0.3.3/proxy_platform/__init__.py +3 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/main_public.py +10 -41
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform.egg-info/PKG-INFO +4 -4
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/pyproject.toml +3 -3
- proxy_platform-0.3.1/proxy_platform/__init__.py +0 -3
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/README.md +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/client.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/commands/__init__.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/commands/auth.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/commands/clusters.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/commands/deployments.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/commands/feedback.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/commands/firewalls.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/commands/orders.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/commands/products.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/commands/support.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/commands/users.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/config.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform/main.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform.egg-info/SOURCES.txt +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform.egg-info/dependency_links.txt +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform.egg-info/entry_points.txt +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform.egg-info/requires.txt +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/proxy_platform.egg-info/top_level.txt +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/setup.cfg +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/setup.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/tests/test_admin_feedback.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/tests/test_auth.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/tests/test_client.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/tests/test_clusters.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/tests/test_config.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/tests/test_deployments.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/tests/test_dev.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/tests/test_feedback.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/tests/test_firewalls.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/tests/test_main.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/tests/test_orders.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/tests/test_products.py +0 -0
- {proxy_platform-0.3.1 → proxy_platform-0.3.3}/tests/test_users.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: proxy-platform
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: CLI client for the Proxy Platform
|
|
5
|
-
Author: Proxy Platform
|
|
6
|
-
License: Proprietary
|
|
5
|
+
Author: Proxy Platform B.V.
|
|
6
|
+
License: Proprietary - Proxy Platform B.V.
|
|
7
7
|
Requires-Python: >=3.11
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
Requires-Dist: typer[all]>=0.15.0
|
|
@@ -96,4 +96,4 @@ Configuration and tokens are stored in `~/.proxy-platform/`. Tokens are saved wi
|
|
|
96
96
|
|
|
97
97
|
## License
|
|
98
98
|
|
|
99
|
-
Proprietary. © Proxy
|
|
99
|
+
Proprietary. © Proxy Platform B.V.
|
|
@@ -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
|
-
|
|
11
|
-
|
|
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="
|
|
15
|
-
help="
|
|
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
|
-
"""
|
|
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"
|
|
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,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: proxy-platform
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: CLI client for the Proxy Platform
|
|
5
|
-
Author: Proxy Platform
|
|
6
|
-
License: Proprietary
|
|
5
|
+
Author: Proxy Platform B.V.
|
|
6
|
+
License: Proprietary - Proxy Platform B.V.
|
|
7
7
|
Requires-Python: >=3.11
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
Requires-Dist: typer[all]>=0.15.0
|
|
@@ -96,4 +96,4 @@ Configuration and tokens are stored in `~/.proxy-platform/`. Tokens are saved wi
|
|
|
96
96
|
|
|
97
97
|
## License
|
|
98
98
|
|
|
99
|
-
Proprietary. © Proxy
|
|
99
|
+
Proprietary. © Proxy Platform B.V.
|
|
@@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "proxy-platform"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.3"
|
|
8
8
|
description = "CLI client for the Proxy Platform"
|
|
9
|
-
authors = [{ name = "Proxy Platform
|
|
9
|
+
authors = [{ name = "Proxy Platform B.V." }]
|
|
10
10
|
readme = "README.public.md"
|
|
11
11
|
requires-python = ">=3.11"
|
|
12
|
-
license = { text = "Proprietary" }
|
|
12
|
+
license = { text = "Proprietary - Proxy Platform B.V." }
|
|
13
13
|
dependencies = [
|
|
14
14
|
"typer[all]>=0.15.0",
|
|
15
15
|
"rich==13.7.1",
|
|
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
|
|
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
|