Skip to content

Add v1alpha #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions scaleway_qaas_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,52 +11,3 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from .client import QaaSClient
from .job_payload.models import (
QaaSCircuitData,
QaaSCircuitSerializationFormat,
QaaSJobBackendData,
QaaSJobClientData,
QaaSJobData,
QaaSJobRunData,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1Application as QaaSApplication,
)
from .quantum_as_a_service_api_client.models import ScalewayQaasV1Alpha1Job as QaaSJob
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1JobResult as QaaSJobResult,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1JobResult as QaaSJobResut,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1JobStatus as QaaSJobStatus,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1Platform as QaaSPlatform,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1PlatformAvailability as QaaSPlatformAvailability,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1PlatformTechnology as QaaSPlatformTechnology,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1Process as QaaSProcess,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1ProcessResult as QaaSProcessResult,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1ProcessStatus as QaaSProcessStatus,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1Session as QaaSSession,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1SessionStatus as QaaSSessionStatus,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1SessionAccess as QaaSSessionAccess,
)
62 changes: 62 additions & 0 deletions scaleway_qaas_client/v1alpha1/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Copyright 2025 Scaleway
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from .client import QaaSClient
from .job_payload.models import (
QaaSCircuitData,
QaaSCircuitSerializationFormat,
QaaSJobBackendData,
QaaSJobClientData,
QaaSJobData,
QaaSJobRunData,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1Application as QaaSApplication,
)
from .quantum_as_a_service_api_client.models import ScalewayQaasV1Alpha1Job as QaaSJob
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1JobResult as QaaSJobResult,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1JobResult as QaaSJobResut,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1JobStatus as QaaSJobStatus,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1Platform as QaaSPlatform,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1PlatformAvailability as QaaSPlatformAvailability,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1PlatformTechnology as QaaSPlatformTechnology,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1Process as QaaSProcess,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1ProcessResult as QaaSProcessResult,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1ProcessStatus as QaaSProcessStatus,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1Session as QaaSSession,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1SessionStatus as QaaSSessionStatus,
)
from .quantum_as_a_service_api_client.models import (
ScalewayQaasV1Alpha1SessionAccess as QaaSSessionAccess,
)
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __init__(self, project_id: str, secret_key: str, url: str = _DEFAULT_URL):
raise Exception("QaasClient: secret_key cannot be None")

self.__project_id = project_id
url = url if url else _DEFAULT_URL
url = url or _DEFAULT_URL

self.__client = AuthenticatedClient(
base_url=url,
Expand Down Expand Up @@ -226,7 +226,7 @@ def create_session(
if not platform_id:
raise Exception("create_session: platform_id cannot be None")

name = name if name else f"qs-{randomname.get_name()}"
name = name or f"qs-{randomname.get_name()}"

if isinstance(max_duration, str):
max_duration = f"{timeparse(max_duration)}s"
Expand Down Expand Up @@ -403,7 +403,7 @@ def create_job(
raise Exception("create_job: payload cannot be None")

payload = payload if isinstance(payload, str) else json.dumps(payload)
name = name if name else f"qj-{randomname.get_name()}"
name = name or f"qj-{randomname.get_name()}"

response = _create_job_sync(
client=self.__client,
Expand Down Expand Up @@ -588,7 +588,7 @@ def create_process(
if not input:
raise Exception("create_process: input cannot be None")

name = name if name else f"qp-{randomname.get_name()}"
name = name or f"qp-{randomname.get_name()}"

input = input if isinstance(input, str) else json.dumps(input)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

setup(
name="scaleway_qaas_client",
version="0.1.14",
version="0.1.15",
project_urls={
"Documentation": "https://www.scaleway.com/en/quantum-as-a-service/",
"Source": "https://github.com/scaleway/scaleway-qaas-client-pythom",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import time
import uuid

from scaleway_qaas_client import QaaSClient
from scaleway_qaas_client.v1alpha1 import QaaSClient

_RANDOM_UUID = str(uuid.uuid4())
_TEST_PLATFORM_NAME = os.environ.get("TEST_PLATFORM_NAME", "aer_simulation_pop_c16m128")
Expand Down
Loading