@planqk/planqk-service-sdk 2.2.1 → 2.4.0

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.
Files changed (46) hide show
  1. package/README-node.md +1 -0
  2. package/README-python.md +7 -7
  3. package/README.md +1 -0
  4. package/notebooks/python-sdk.ipynb +56 -114
  5. package/package.json +1 -1
  6. package/planqk/service/_version.py +1 -1
  7. package/planqk/service/client.py +13 -12
  8. package/planqk/service/datapool.py +24 -0
  9. package/planqk/service/sdk/__init__.py +4 -30
  10. package/planqk/service/sdk/client.py +20 -19
  11. package/planqk/service/sdk/core/__init__.py +5 -0
  12. package/planqk/service/sdk/core/api_error.py +12 -6
  13. package/planqk/service/sdk/core/client_wrapper.py +12 -4
  14. package/planqk/service/sdk/core/datetime_utils.py +1 -3
  15. package/planqk/service/sdk/core/file.py +2 -5
  16. package/planqk/service/sdk/core/force_multipart.py +16 -0
  17. package/planqk/service/sdk/core/http_client.py +86 -118
  18. package/planqk/service/sdk/core/http_response.py +55 -0
  19. package/planqk/service/sdk/core/jsonable_encoder.py +1 -4
  20. package/planqk/service/sdk/core/pydantic_utilities.py +79 -147
  21. package/planqk/service/sdk/core/query_encoder.py +1 -3
  22. package/planqk/service/sdk/core/serialization.py +10 -10
  23. package/planqk/service/sdk/environment.py +1 -1
  24. package/planqk/service/sdk/service_api/__init__.py +4 -12
  25. package/planqk/service/sdk/service_api/client.py +138 -860
  26. package/planqk/service/sdk/service_api/raw_client.py +606 -0
  27. package/planqk/service/sdk/service_api/types/__init__.py +3 -7
  28. package/planqk/service/sdk/service_api/types/get_result_response.py +7 -11
  29. package/planqk/service/sdk/service_api/types/get_result_response_embedded.py +4 -6
  30. package/planqk/service/sdk/service_api/types/get_result_response_links.py +4 -6
  31. package/planqk/service/sdk/types/__init__.py +3 -11
  32. package/planqk/service/sdk/types/hal_link.py +3 -5
  33. package/planqk/service/sdk/types/service_execution.py +8 -16
  34. package/planqk/service/sdk/types/service_execution_status.py +1 -2
  35. package/pyproject.toml +1 -1
  36. package/uv.lock +250 -256
  37. package/planqk/service/sdk/errors/__init__.py +0 -15
  38. package/planqk/service/sdk/errors/bad_request_error.py +0 -9
  39. package/planqk/service/sdk/errors/forbidden_error.py +0 -9
  40. package/planqk/service/sdk/errors/internal_server_error.py +0 -9
  41. package/planqk/service/sdk/errors/not_found_error.py +0 -9
  42. package/planqk/service/sdk/errors/unauthorized_error.py +0 -9
  43. package/planqk/service/sdk/service_api/types/health_check_response.py +0 -24
  44. package/planqk/service/sdk/types/input_data.py +0 -5
  45. package/planqk/service/sdk/types/input_data_ref.py +0 -27
  46. package/planqk/service/sdk/types/input_params.py +0 -5
@@ -1,15 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from .bad_request_error import BadRequestError
4
- from .forbidden_error import ForbiddenError
5
- from .internal_server_error import InternalServerError
6
- from .not_found_error import NotFoundError
7
- from .unauthorized_error import UnauthorizedError
8
-
9
- __all__ = [
10
- "BadRequestError",
11
- "ForbiddenError",
12
- "InternalServerError",
13
- "NotFoundError",
14
- "UnauthorizedError",
15
- ]
@@ -1,9 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.api_error import ApiError
4
- import typing
5
-
6
-
7
- class BadRequestError(ApiError):
8
- def __init__(self, body: typing.Optional[typing.Any]):
9
- super().__init__(status_code=400, body=body)
@@ -1,9 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.api_error import ApiError
4
- import typing
5
-
6
-
7
- class ForbiddenError(ApiError):
8
- def __init__(self, body: typing.Optional[typing.Any]):
9
- super().__init__(status_code=403, body=body)
@@ -1,9 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.api_error import ApiError
4
- import typing
5
-
6
-
7
- class InternalServerError(ApiError):
8
- def __init__(self, body: typing.Optional[typing.Any]):
9
- super().__init__(status_code=500, body=body)
@@ -1,9 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.api_error import ApiError
4
- import typing
5
-
6
-
7
- class NotFoundError(ApiError):
8
- def __init__(self, body: typing.Optional[typing.Any]):
9
- super().__init__(status_code=404, body=body)
@@ -1,9 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.api_error import ApiError
4
- import typing
5
-
6
-
7
- class UnauthorizedError(ApiError):
8
- def __init__(self, body: typing.Optional[typing.Any]):
9
- super().__init__(status_code=401, body=body)
@@ -1,24 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ...core.pydantic_utilities import UniversalBaseModel
4
- import typing
5
- import pydantic
6
- from ...core.pydantic_utilities import IS_PYDANTIC_V2
7
-
8
-
9
- class HealthCheckResponse(UniversalBaseModel):
10
- status: typing.Optional[str] = pydantic.Field(default=None)
11
- """
12
- Status of the service
13
- """
14
-
15
- if IS_PYDANTIC_V2:
16
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
17
- extra="allow", frozen=True
18
- ) # type: ignore # Pydantic v2
19
- else:
20
-
21
- class Config:
22
- frozen = True
23
- smart_union = True
24
- extra = pydantic.Extra.allow
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- InputData = typing.Dict[str, typing.Dict[str, typing.Optional[typing.Any]]]
@@ -1,27 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- import typing_extensions
5
- from ..core.serialization import FieldMetadata
6
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
- import typing
8
- import pydantic
9
-
10
-
11
- class InputDataRef(UniversalBaseModel):
12
- data_pool_id: typing_extensions.Annotated[str, FieldMetadata(alias="dataPoolId")]
13
- data_source_descriptor_id: typing_extensions.Annotated[
14
- str, FieldMetadata(alias="dataSourceDescriptorId")
15
- ]
16
- file_id: typing_extensions.Annotated[str, FieldMetadata(alias="fileId")]
17
-
18
- if IS_PYDANTIC_V2:
19
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
20
- extra="allow", frozen=True
21
- ) # type: ignore # Pydantic v2
22
- else:
23
-
24
- class Config:
25
- frozen = True
26
- smart_union = True
27
- extra = pydantic.Extra.allow
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- InputParams = typing.Dict[str, typing.Dict[str, typing.Optional[typing.Any]]]