cgcsdk 1.0.18__tar.gz → 1.1.0__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.
- {cgcsdk-1.0.18/cgcsdk.egg-info → cgcsdk-1.1.0}/PKG-INFO +1 -1
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/.env +2 -2
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/CHANGELOG.md +7 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/auth/auth_utils.py +1 -1
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/compute/compute_utils.py +2 -2
- {cgcsdk-1.0.18 → cgcsdk-1.1.0/cgcsdk.egg-info}/PKG-INFO +1 -1
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/LICENSE +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/MANIFEST.in +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/README.md +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/cgc.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/auth/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/auth/auth_cmd.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/auth/auth_logic.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/auth/auth_responses.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/cgc_cmd.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/cgc_cmd_responses.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/cgc_helpers.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/cgc_models.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/compute/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/compute/billing/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/compute/billing/billing_cmd.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/compute/billing/billing_responses.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/compute/billing/billing_utils.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/compute/compute_cmd.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/compute/compute_models.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/compute/compute_responses.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/db/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/db/db_cmd.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/db/db_models.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/debug/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/debug/debug_cmd.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/exceptions.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/jobs/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/jobs/job_utils.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/jobs/jobs_cmd.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/jobs/jobs_responses.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/resource/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/resource/resource_cmd.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/resource/resource_responses.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/user/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/user/keys_cmd.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/user/keys_models.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/user/keys_responses.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/user/keys_utils.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/user/secret_cmd.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/user/secret_models.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/user/secret_responses.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/user/secret_utils.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/volume/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/volume/data_model.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/volume/volume_cmd.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/volume/volume_models.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/volume/volume_responses.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/commands/volume/volume_utils.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/config.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/sdk/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/sdk/exceptions.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/sdk/job.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/sdk/postgresql.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/sdk/resource.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/server.crt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/telemetry/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/telemetry/basic.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/tests/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/tests/desired_responses/test_billing_invoice.txt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/tests/desired_responses/test_billing_status.txt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/tests/desired_responses/test_billing_stop_events_compute.txt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/tests/desired_responses/test_billing_stop_events_volume.txt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/tests/desired_responses/test_compute_list.txt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/tests/desired_responses/test_compute_list_no_labels.txt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/tests/desired_responses/test_tabulate_response.txt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/tests/desired_responses/test_volume_list.txt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/tests/responses_tests.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/click_group.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/config_utils.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/consts/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/consts/env_consts.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/consts/message_consts.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/cryptography/__init__.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/cryptography/aes_crypto.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/cryptography/encryption_module.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/cryptography/rsa_crypto.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/custom_exceptions.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/get_headers_data.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/message_utils.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/prepare_headers.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/requests_helper.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/response_utils.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/update.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/utils/version_control.py +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgcsdk.egg-info/SOURCES.txt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgcsdk.egg-info/dependency_links.txt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgcsdk.egg-info/entry_points.txt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgcsdk.egg-info/requires.txt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgcsdk.egg-info/top_level.txt +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/pyproject.toml +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/setup.cfg +0 -0
- {cgcsdk-1.0.18 → cgcsdk-1.1.0}/setup.py +0 -0
@@ -37,7 +37,7 @@ def _get_jwt_from_server(user_id: str = None, password: str = None) -> str:
|
|
37
37
|
"Content-Type": "application/x-www-form-urlencoded",
|
38
38
|
}
|
39
39
|
metric = "auth.jwt"
|
40
|
-
__payload = f"grant_type
|
40
|
+
__payload = f"grant_type=password&username={user_id}&password={password}"
|
41
41
|
__res = call_api(
|
42
42
|
request=EndpointTypes.post,
|
43
43
|
url=url,
|
@@ -113,11 +113,11 @@ def get_app_list(pod_list: list, detailed: bool) -> list:
|
|
113
113
|
pod["labels"].pop("entity")
|
114
114
|
if detailed:
|
115
115
|
pod["labels"]["url"] = pod["labels"]["pod_url"]
|
116
|
-
if pod_data["type"]
|
116
|
+
if pod_data["type"] == "nvidia-pytorch":
|
117
117
|
pod["labels"]["url"] += f"""/?token={pod["labels"]['app-token']}"""
|
118
118
|
else:
|
119
119
|
pod["labels"]["url"] = pod["labels"]["pod_url"]
|
120
|
-
pod["labels"].pop("app-token")
|
120
|
+
pod["labels"].pop("app-token", None)
|
121
121
|
pod["labels"].pop("pod_url")
|
122
122
|
pod["labels"].pop("resource-type")
|
123
123
|
pod["labels"].pop("api-key-id", None)
|
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
|
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
|
{cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/tests/desired_responses/test_billing_stop_events_compute.txt
RENAMED
File without changes
|
{cgcsdk-1.0.18 → cgcsdk-1.1.0}/cgc/tests/desired_responses/test_billing_stop_events_volume.txt
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
|
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
|