remotivelabs-cli 0.3.4__tar.gz → 0.3.5__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.
Potentially problematic release.
This version of remotivelabs-cli might be problematic. Click here for more details.
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/PKG-INFO +1 -1
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/signals.py +1 -1
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/core.py +12 -1
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/utils/rest_helper.py +3 -1
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/pyproject.toml +1 -1
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/LICENSE +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/README.md +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/.DS_Store +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/api/cloud/tokens.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/discovery.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/export.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/files.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/lib/__about__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/lib/broker.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/lib/client.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/lib/helper.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/lib/signalcreator.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/license_flows.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/licenses.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/playback.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/record.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/broker/scripting.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/auth/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/auth/cmd.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/auth/login.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/auth_tokens.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/brokers.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/configs.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/licenses/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/licenses/cmd.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/organisations.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/projects.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/recordings.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/recordings_playback.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/resumable_upload.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/sample_recordings.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/service_account_tokens.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/service_accounts.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/storage/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/storage/cmd.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/storage/copy.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/storage/uri_or_path.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/cloud/uri.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/connect/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/connect/connect.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/connect/protopie/protopie.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/remotive.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/config_file.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/migration/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/migration/migrate_all_token_files.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/migration/migrate_config_file.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/migration/migrate_legacy_dirs.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/migration/migrate_token_file.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/migration/migration_tools.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/state_file.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/token_file.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/tools/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/tools/can/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/tools/can/can.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/tools/tools.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/topology/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/topology/cmd.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/topology/start_trial.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/typer/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/typer/typer_utils.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/utils/__init__.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/utils/console.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/utils/time.py +0 -0
- {remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/utils/versions.py +0 -0
|
@@ -198,7 +198,7 @@ def namespaces(
|
|
|
198
198
|
|
|
199
199
|
@app.command()
|
|
200
200
|
def frame_distribution(
|
|
201
|
-
url: str = typer.Option(
|
|
201
|
+
url: str = typer.Option(DEFAULT_GRPC_URL, help="Broker URL", envvar="REMOTIVE_BROKER_URL"),
|
|
202
202
|
api_key: str = typer.Option(None, help="Cloud Broker API-KEY or access token", envvar="REMOTIVE_BROKER_API_KEY"),
|
|
203
203
|
namespace: str = typer.Option(..., help="Namespace"),
|
|
204
204
|
) -> None:
|
|
@@ -22,6 +22,10 @@ CONFIG_DIR_PATH = Path.home() / ".config" / "remotive"
|
|
|
22
22
|
CLI_CONFIG_FILE_NAME = "config.json"
|
|
23
23
|
CLI_INTERNAL_STATE_FILE_NAME = "app-state.json"
|
|
24
24
|
|
|
25
|
+
TOKEN_ENV = "REMOTIVE_CLOUD_AUTH_TOKEN"
|
|
26
|
+
# Deprecated in favour of name used in topology-cli
|
|
27
|
+
DEPR_TOKEN_ENV = "REMOTIVE_CLOUD_ACCESS_TOKEN"
|
|
28
|
+
|
|
25
29
|
|
|
26
30
|
class InvalidSettingsFilePathError(Exception):
|
|
27
31
|
"""Raised when trying to access an invalid settings file or file path"""
|
|
@@ -91,8 +95,15 @@ class Settings:
|
|
|
91
95
|
|
|
92
96
|
def get_active_token(self) -> str | None:
|
|
93
97
|
"""
|
|
94
|
-
Get the token secret for the current active account
|
|
98
|
+
Get the token secret for the current active account or token specified by env variable
|
|
95
99
|
"""
|
|
100
|
+
|
|
101
|
+
token = os.environ[DEPR_TOKEN_ENV] if DEPR_TOKEN_ENV in os.environ else None
|
|
102
|
+
if not token:
|
|
103
|
+
token = os.environ[TOKEN_ENV] if TOKEN_ENV in os.environ else None
|
|
104
|
+
if token:
|
|
105
|
+
return token
|
|
106
|
+
|
|
96
107
|
token_file = self.get_active_token_file()
|
|
97
108
|
return token_file.token if token_file else None
|
|
98
109
|
|
|
@@ -85,6 +85,7 @@ class RestHelper:
|
|
|
85
85
|
TODO: remove setting org, as we already set the default organization as env in remotive.py?
|
|
86
86
|
TODO: don't sys.exit, raise error instead
|
|
87
87
|
"""
|
|
88
|
+
|
|
88
89
|
if "REMOTIVE_CLOUD_ORGANIZATION" not in os.environ:
|
|
89
90
|
active_account = settings.get_active_account()
|
|
90
91
|
if active_account:
|
|
@@ -94,7 +95,8 @@ class RestHelper:
|
|
|
94
95
|
|
|
95
96
|
token = access_token
|
|
96
97
|
if not token:
|
|
97
|
-
token =
|
|
98
|
+
token = settings.get_active_token()
|
|
99
|
+
|
|
98
100
|
if not token:
|
|
99
101
|
if quiet:
|
|
100
102
|
return
|
|
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
|
|
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
|
{remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/migration/migrate_all_token_files.py
RENAMED
|
File without changes
|
{remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/migration/migrate_config_file.py
RENAMED
|
File without changes
|
{remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/migration/migrate_legacy_dirs.py
RENAMED
|
File without changes
|
{remotivelabs_cli-0.3.4 → remotivelabs_cli-0.3.5}/cli/settings/migration/migrate_token_file.py
RENAMED
|
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
|