Skip to content

Commit 1493af9

Browse files
committed
feat(client): fix import
1 parent 549c4d1 commit 1493af9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scaleway_qaas_client/client.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@
5858
from scaleway_qaas_client.quantum_as_a_service_api_client.client import Client
5959

6060

61-
__DEFAULT_URL = "https://api.scaleway.com/qaas/v1alpha1"
61+
_DEFAULT_URL = "https://api.scaleway.com/qaas/v1alpha1"
6262

6363

6464
class QaaSClient:
65-
def __init__(self, project_id: str, secret_key: str, url: str = __DEFAULT_URL):
65+
def __init__(self, project_id: str, secret_key: str, url: str = _DEFAULT_URL):
6666
self.__project_id = project_id
6767

6868
self.__client = Client(
@@ -72,6 +72,9 @@ def __init__(self, project_id: str, secret_key: str, url: str = __DEFAULT_URL):
7272
verify_ssl="https" in url,
7373
)
7474

75+
def __repr__(self) -> str:
76+
return f"<QaaSClient(url={self.__client._base_url},project_id={self.__project_id})>"
77+
7578
def get_platform(self, platform_id: str) -> ScalewayQaasV1Alpha1Platform:
7679
platform = _get_platform_sync(client=self.__client, platform_id=platform_id)
7780

0 commit comments

Comments
 (0)