magic_hour 0.36.2__py3-none-any.whl → 0.38.0__py3-none-any.whl

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 magic_hour might be problematic. Click here for more details.

Files changed (46) hide show
  1. magic_hour/__init__.py +1 -1
  2. magic_hour/client.py +1 -1
  3. magic_hour/environment.py +1 -1
  4. magic_hour/resources/v1/ai_clothes_changer/client.py +8 -8
  5. magic_hour/resources/v1/ai_face_editor/client.py +8 -8
  6. magic_hour/resources/v1/ai_gif_generator/client.py +26 -11
  7. magic_hour/resources/v1/ai_headshot_generator/client.py +8 -8
  8. magic_hour/resources/v1/ai_image_editor/client.py +8 -8
  9. magic_hour/resources/v1/ai_image_generator/client.py +7 -7
  10. magic_hour/resources/v1/ai_image_upscaler/client.py +8 -8
  11. magic_hour/resources/v1/ai_meme_generator/client.py +7 -7
  12. magic_hour/resources/v1/ai_photo_editor/client.py +8 -8
  13. magic_hour/resources/v1/ai_qr_code_generator/client.py +7 -7
  14. magic_hour/resources/v1/ai_talking_photo/client.py +8 -8
  15. magic_hour/resources/v1/animation/client.py +8 -8
  16. magic_hour/resources/v1/auto_subtitle_generator/client.py +8 -8
  17. magic_hour/resources/v1/client.py +1 -1
  18. magic_hour/resources/v1/face_detection/client.py +5 -5
  19. magic_hour/resources/v1/face_swap/client.py +8 -8
  20. magic_hour/resources/v1/face_swap_photo/client.py +8 -8
  21. magic_hour/resources/v1/files/client.py +1 -1
  22. magic_hour/resources/v1/files/upload_urls/client.py +2 -2
  23. magic_hour/resources/v1/image_background_remover/client.py +8 -8
  24. magic_hour/resources/v1/image_projects/client.py +4 -4
  25. magic_hour/resources/v1/image_to_video/client.py +8 -8
  26. magic_hour/resources/v1/lip_sync/client.py +8 -8
  27. magic_hour/resources/v1/photo_colorizer/client.py +8 -8
  28. magic_hour/resources/v1/text_to_video/client.py +7 -7
  29. magic_hour/resources/v1/video_projects/client.py +4 -4
  30. magic_hour/resources/v1/video_to_video/client.py +8 -8
  31. magic_hour/types/params/v1_ai_gif_generator_create_body.py +10 -0
  32. magic_hour/types/params/v1_ai_talking_photo_create_body_style.py +4 -3
  33. {magic_hour-0.36.2.dist-info → magic_hour-0.38.0.dist-info}/METADATA +2 -5
  34. {magic_hour-0.36.2.dist-info → magic_hour-0.38.0.dist-info}/RECORD +36 -46
  35. magic_hour/core/__init__.py +0 -50
  36. magic_hour/core/api_error.py +0 -56
  37. magic_hour/core/auth.py +0 -354
  38. magic_hour/core/base_client.py +0 -627
  39. magic_hour/core/binary_response.py +0 -23
  40. magic_hour/core/query.py +0 -124
  41. magic_hour/core/request.py +0 -162
  42. magic_hour/core/response.py +0 -297
  43. magic_hour/core/type_utils.py +0 -28
  44. magic_hour/core/utils.py +0 -55
  45. {magic_hour-0.36.2.dist-info → magic_hour-0.38.0.dist-info}/LICENSE +0 -0
  46. {magic_hour-0.36.2.dist-info → magic_hour-0.38.0.dist-info}/WHEEL +0 -0
magic_hour/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  from .client import AsyncClient, Client
2
- from .core import ApiError, BinaryResponse
3
2
  from .environment import Environment
3
+ from make_api_request import ApiError, BinaryResponse
4
4
 
5
5
 
6
6
  __all__ = ["ApiError", "AsyncClient", "BinaryResponse", "Client", "Environment"]
magic_hour/client.py CHANGED
@@ -1,9 +1,9 @@
1
1
  import httpx
2
2
  import typing
3
3
 
4
- from magic_hour.core import AsyncBaseClient, AuthBearer, SyncBaseClient
5
4
  from magic_hour.environment import Environment, _get_base_url
6
5
  from magic_hour.resources.v1 import AsyncV1Client, V1Client
6
+ from make_api_request import AsyncBaseClient, AuthBearer, SyncBaseClient
7
7
 
8
8
 
9
9
  class Client:
magic_hour/environment.py CHANGED
@@ -6,7 +6,7 @@ class Environment(enum.Enum):
6
6
  """Pre-defined base URLs for the API"""
7
7
 
8
8
  ENVIRONMENT = "https://api.magichour.ai"
9
- MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.36.0"
9
+ MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.38.0"
10
10
 
11
11
 
12
12
  def _get_base_url(
@@ -1,13 +1,5 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
4
- AsyncBaseClient,
5
- RequestOptions,
6
- SyncBaseClient,
7
- default_request_options,
8
- to_encodable,
9
- type_utils,
10
- )
11
3
  from magic_hour.helpers.logger import get_sdk_logger
12
4
  from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
13
5
  from magic_hour.resources.v1.image_projects.client import (
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
15
7
  ImageProjectsClient,
16
8
  )
17
9
  from magic_hour.types import models, params
10
+ from make_api_request import (
11
+ AsyncBaseClient,
12
+ RequestOptions,
13
+ SyncBaseClient,
14
+ default_request_options,
15
+ to_encodable,
16
+ type_utils,
17
+ )
18
18
 
19
19
 
20
20
  logger = get_sdk_logger(__name__)
@@ -1,13 +1,5 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
4
- AsyncBaseClient,
5
- RequestOptions,
6
- SyncBaseClient,
7
- default_request_options,
8
- to_encodable,
9
- type_utils,
10
- )
11
3
  from magic_hour.helpers.logger import get_sdk_logger
12
4
  from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
13
5
  from magic_hour.resources.v1.image_projects.client import (
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
15
7
  ImageProjectsClient,
16
8
  )
17
9
  from magic_hour.types import models, params
10
+ from make_api_request import (
11
+ AsyncBaseClient,
12
+ RequestOptions,
13
+ SyncBaseClient,
14
+ default_request_options,
15
+ to_encodable,
16
+ type_utils,
17
+ )
18
18
 
19
19
 
20
20
  logger = get_sdk_logger(__name__)
@@ -1,6 +1,13 @@
1
1
  import typing
2
+ import typing_extensions
2
3
 
3
- from magic_hour.core import (
4
+ from magic_hour.helpers.logger import get_sdk_logger
5
+ from magic_hour.resources.v1.image_projects.client import (
6
+ AsyncImageProjectsClient,
7
+ ImageProjectsClient,
8
+ )
9
+ from magic_hour.types import models, params
10
+ from make_api_request import (
4
11
  AsyncBaseClient,
5
12
  RequestOptions,
6
13
  SyncBaseClient,
@@ -8,12 +15,6 @@ from magic_hour.core import (
8
15
  to_encodable,
9
16
  type_utils,
10
17
  )
11
- from magic_hour.helpers.logger import get_sdk_logger
12
- from magic_hour.resources.v1.image_projects.client import (
13
- AsyncImageProjectsClient,
14
- ImageProjectsClient,
15
- )
16
- from magic_hour.types import models, params
17
18
 
18
19
 
19
20
  logger = get_sdk_logger(__name__)
@@ -85,6 +86,10 @@ class AiGifGeneratorClient:
85
86
  name: typing.Union[
86
87
  typing.Optional[str], type_utils.NotGiven
87
88
  ] = type_utils.NOT_GIVEN,
89
+ output_format: typing.Union[
90
+ typing.Optional[typing_extensions.Literal["gif", "mp4", "webm"]],
91
+ type_utils.NotGiven,
92
+ ] = type_utils.NOT_GIVEN,
88
93
  request_options: typing.Optional[RequestOptions] = None,
89
94
  ) -> models.V1AiGifGeneratorCreateResponse:
90
95
  """
@@ -96,6 +101,7 @@ class AiGifGeneratorClient:
96
101
 
97
102
  Args:
98
103
  name: The name of gif. This value is mainly used for your own identification of the gif.
104
+ output_format: The output file format for the generated animation.
99
105
  style: V1AiGifGeneratorCreateBodyStyle
100
106
  request_options: Additional options to customize the HTTP request
101
107
 
@@ -109,12 +115,14 @@ class AiGifGeneratorClient:
109
115
  Examples:
110
116
  ```py
111
117
  client.v1.ai_gif_generator.create(
112
- style={"prompt": "Cute dancing cat, pixel art"}, name="Ai Gif gif"
118
+ style={"prompt": "Cute dancing cat, pixel art"},
119
+ name="Ai Gif gif",
120
+ output_format="gif",
113
121
  )
114
122
  ```
115
123
  """
116
124
  _json = to_encodable(
117
- item={"name": name, "style": style},
125
+ item={"name": name, "output_format": output_format, "style": style},
118
126
  dump_with=params._SerializerV1AiGifGeneratorCreateBody,
119
127
  )
120
128
  return self._base_client.request(
@@ -193,6 +201,10 @@ class AsyncAiGifGeneratorClient:
193
201
  name: typing.Union[
194
202
  typing.Optional[str], type_utils.NotGiven
195
203
  ] = type_utils.NOT_GIVEN,
204
+ output_format: typing.Union[
205
+ typing.Optional[typing_extensions.Literal["gif", "mp4", "webm"]],
206
+ type_utils.NotGiven,
207
+ ] = type_utils.NOT_GIVEN,
196
208
  request_options: typing.Optional[RequestOptions] = None,
197
209
  ) -> models.V1AiGifGeneratorCreateResponse:
198
210
  """
@@ -204,6 +216,7 @@ class AsyncAiGifGeneratorClient:
204
216
 
205
217
  Args:
206
218
  name: The name of gif. This value is mainly used for your own identification of the gif.
219
+ output_format: The output file format for the generated animation.
207
220
  style: V1AiGifGeneratorCreateBodyStyle
208
221
  request_options: Additional options to customize the HTTP request
209
222
 
@@ -217,12 +230,14 @@ class AsyncAiGifGeneratorClient:
217
230
  Examples:
218
231
  ```py
219
232
  await client.v1.ai_gif_generator.create(
220
- style={"prompt": "Cute dancing cat, pixel art"}, name="Ai Gif gif"
233
+ style={"prompt": "Cute dancing cat, pixel art"},
234
+ name="Ai Gif gif",
235
+ output_format="gif",
221
236
  )
222
237
  ```
223
238
  """
224
239
  _json = to_encodable(
225
- item={"name": name, "style": style},
240
+ item={"name": name, "output_format": output_format, "style": style},
226
241
  dump_with=params._SerializerV1AiGifGeneratorCreateBody,
227
242
  )
228
243
  return await self._base_client.request(
@@ -1,13 +1,5 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
4
- AsyncBaseClient,
5
- RequestOptions,
6
- SyncBaseClient,
7
- default_request_options,
8
- to_encodable,
9
- type_utils,
10
- )
11
3
  from magic_hour.helpers.logger import get_sdk_logger
12
4
  from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
13
5
  from magic_hour.resources.v1.image_projects.client import (
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
15
7
  ImageProjectsClient,
16
8
  )
17
9
  from magic_hour.types import models, params
10
+ from make_api_request import (
11
+ AsyncBaseClient,
12
+ RequestOptions,
13
+ SyncBaseClient,
14
+ default_request_options,
15
+ to_encodable,
16
+ type_utils,
17
+ )
18
18
 
19
19
 
20
20
  logger = get_sdk_logger(__name__)
@@ -1,13 +1,5 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
4
- AsyncBaseClient,
5
- RequestOptions,
6
- SyncBaseClient,
7
- default_request_options,
8
- to_encodable,
9
- type_utils,
10
- )
11
3
  from magic_hour.helpers.logger import get_sdk_logger
12
4
  from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
13
5
  from magic_hour.resources.v1.image_projects.client import (
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
15
7
  ImageProjectsClient,
16
8
  )
17
9
  from magic_hour.types import models, params
10
+ from make_api_request import (
11
+ AsyncBaseClient,
12
+ RequestOptions,
13
+ SyncBaseClient,
14
+ default_request_options,
15
+ to_encodable,
16
+ type_utils,
17
+ )
18
18
 
19
19
 
20
20
  logger = get_sdk_logger(__name__)
@@ -1,7 +1,13 @@
1
1
  import typing
2
2
  import typing_extensions
3
3
 
4
- from magic_hour.core import (
4
+ from magic_hour.helpers.logger import get_sdk_logger
5
+ from magic_hour.resources.v1.image_projects.client import (
6
+ AsyncImageProjectsClient,
7
+ ImageProjectsClient,
8
+ )
9
+ from magic_hour.types import models, params
10
+ from make_api_request import (
5
11
  AsyncBaseClient,
6
12
  RequestOptions,
7
13
  SyncBaseClient,
@@ -9,12 +15,6 @@ from magic_hour.core import (
9
15
  to_encodable,
10
16
  type_utils,
11
17
  )
12
- from magic_hour.helpers.logger import get_sdk_logger
13
- from magic_hour.resources.v1.image_projects.client import (
14
- AsyncImageProjectsClient,
15
- ImageProjectsClient,
16
- )
17
- from magic_hour.types import models, params
18
18
 
19
19
 
20
20
  logger = get_sdk_logger(__name__)
@@ -1,13 +1,5 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
4
- AsyncBaseClient,
5
- RequestOptions,
6
- SyncBaseClient,
7
- default_request_options,
8
- to_encodable,
9
- type_utils,
10
- )
11
3
  from magic_hour.helpers.logger import get_sdk_logger
12
4
  from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
13
5
  from magic_hour.resources.v1.image_projects.client import (
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
15
7
  ImageProjectsClient,
16
8
  )
17
9
  from magic_hour.types import models, params
10
+ from make_api_request import (
11
+ AsyncBaseClient,
12
+ RequestOptions,
13
+ SyncBaseClient,
14
+ default_request_options,
15
+ to_encodable,
16
+ type_utils,
17
+ )
18
18
 
19
19
 
20
20
  logger = get_sdk_logger(__name__)
@@ -1,6 +1,12 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
3
+ from magic_hour.helpers.logger import get_sdk_logger
4
+ from magic_hour.resources.v1.image_projects.client import (
5
+ AsyncImageProjectsClient,
6
+ ImageProjectsClient,
7
+ )
8
+ from magic_hour.types import models, params
9
+ from make_api_request import (
4
10
  AsyncBaseClient,
5
11
  RequestOptions,
6
12
  SyncBaseClient,
@@ -8,12 +14,6 @@ from magic_hour.core import (
8
14
  to_encodable,
9
15
  type_utils,
10
16
  )
11
- from magic_hour.helpers.logger import get_sdk_logger
12
- from magic_hour.resources.v1.image_projects.client import (
13
- AsyncImageProjectsClient,
14
- ImageProjectsClient,
15
- )
16
- from magic_hour.types import models, params
17
17
 
18
18
 
19
19
  logger = get_sdk_logger(__name__)
@@ -1,13 +1,5 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
4
- AsyncBaseClient,
5
- RequestOptions,
6
- SyncBaseClient,
7
- default_request_options,
8
- to_encodable,
9
- type_utils,
10
- )
11
3
  from magic_hour.helpers.logger import get_sdk_logger
12
4
  from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
13
5
  from magic_hour.resources.v1.image_projects.client import (
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
15
7
  ImageProjectsClient,
16
8
  )
17
9
  from magic_hour.types import models, params
10
+ from make_api_request import (
11
+ AsyncBaseClient,
12
+ RequestOptions,
13
+ SyncBaseClient,
14
+ default_request_options,
15
+ to_encodable,
16
+ type_utils,
17
+ )
18
18
 
19
19
 
20
20
  logger = get_sdk_logger(__name__)
@@ -1,6 +1,12 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
3
+ from magic_hour.helpers.logger import get_sdk_logger
4
+ from magic_hour.resources.v1.image_projects.client import (
5
+ AsyncImageProjectsClient,
6
+ ImageProjectsClient,
7
+ )
8
+ from magic_hour.types import models, params
9
+ from make_api_request import (
4
10
  AsyncBaseClient,
5
11
  RequestOptions,
6
12
  SyncBaseClient,
@@ -8,12 +14,6 @@ from magic_hour.core import (
8
14
  to_encodable,
9
15
  type_utils,
10
16
  )
11
- from magic_hour.helpers.logger import get_sdk_logger
12
- from magic_hour.resources.v1.image_projects.client import (
13
- AsyncImageProjectsClient,
14
- ImageProjectsClient,
15
- )
16
- from magic_hour.types import models, params
17
17
 
18
18
 
19
19
  logger = get_sdk_logger(__name__)
@@ -1,13 +1,5 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
4
- AsyncBaseClient,
5
- RequestOptions,
6
- SyncBaseClient,
7
- default_request_options,
8
- to_encodable,
9
- type_utils,
10
- )
11
3
  from magic_hour.helpers.logger import get_sdk_logger
12
4
  from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
13
5
  from magic_hour.resources.v1.video_projects.client import (
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.video_projects.client import (
15
7
  VideoProjectsClient,
16
8
  )
17
9
  from magic_hour.types import models, params
10
+ from make_api_request import (
11
+ AsyncBaseClient,
12
+ RequestOptions,
13
+ SyncBaseClient,
14
+ default_request_options,
15
+ to_encodable,
16
+ type_utils,
17
+ )
18
18
 
19
19
 
20
20
  logger = get_sdk_logger(__name__)
@@ -1,13 +1,5 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
4
- AsyncBaseClient,
5
- RequestOptions,
6
- SyncBaseClient,
7
- default_request_options,
8
- to_encodable,
9
- type_utils,
10
- )
11
3
  from magic_hour.helpers.logger import get_sdk_logger
12
4
  from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
13
5
  from magic_hour.resources.v1.video_projects.client import (
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.video_projects.client import (
15
7
  VideoProjectsClient,
16
8
  )
17
9
  from magic_hour.types import models, params
10
+ from make_api_request import (
11
+ AsyncBaseClient,
12
+ RequestOptions,
13
+ SyncBaseClient,
14
+ default_request_options,
15
+ to_encodable,
16
+ type_utils,
17
+ )
18
18
 
19
19
 
20
20
  logger = get_sdk_logger(__name__)
@@ -1,13 +1,5 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
4
- AsyncBaseClient,
5
- RequestOptions,
6
- SyncBaseClient,
7
- default_request_options,
8
- to_encodable,
9
- type_utils,
10
- )
11
3
  from magic_hour.helpers.logger import get_sdk_logger
12
4
  from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
13
5
  from magic_hour.resources.v1.video_projects.client import (
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.video_projects.client import (
15
7
  VideoProjectsClient,
16
8
  )
17
9
  from magic_hour.types import models, params
10
+ from make_api_request import (
11
+ AsyncBaseClient,
12
+ RequestOptions,
13
+ SyncBaseClient,
14
+ default_request_options,
15
+ to_encodable,
16
+ type_utils,
17
+ )
18
18
 
19
19
 
20
20
  logger = get_sdk_logger(__name__)
@@ -1,4 +1,3 @@
1
- from magic_hour.core import AsyncBaseClient, SyncBaseClient
2
1
  from magic_hour.resources.v1.ai_clothes_changer import (
3
2
  AiClothesChangerClient,
4
3
  AsyncAiClothesChangerClient,
@@ -87,6 +86,7 @@ from magic_hour.resources.v1.video_to_video import (
87
86
  AsyncVideoToVideoClient,
88
87
  VideoToVideoClient,
89
88
  )
89
+ from make_api_request import AsyncBaseClient, SyncBaseClient
90
90
 
91
91
 
92
92
  class V1Client:
@@ -4,7 +4,11 @@ import pydantic
4
4
  import time
5
5
  import typing
6
6
 
7
- from magic_hour.core import (
7
+ from magic_hour.helpers.download import download_files_async, download_files_sync
8
+ from magic_hour.helpers.logger import get_sdk_logger
9
+ from magic_hour.resources.v1.files import AsyncFilesClient, FilesClient
10
+ from magic_hour.types import models, params
11
+ from make_api_request import (
8
12
  AsyncBaseClient,
9
13
  RequestOptions,
10
14
  SyncBaseClient,
@@ -12,10 +16,6 @@ from magic_hour.core import (
12
16
  to_encodable,
13
17
  type_utils,
14
18
  )
15
- from magic_hour.helpers.download import download_files_async, download_files_sync
16
- from magic_hour.helpers.logger import get_sdk_logger
17
- from magic_hour.resources.v1.files import AsyncFilesClient, FilesClient
18
- from magic_hour.types import models, params
19
19
 
20
20
 
21
21
  logger = get_sdk_logger(__name__)
@@ -1,13 +1,5 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
4
- AsyncBaseClient,
5
- RequestOptions,
6
- SyncBaseClient,
7
- default_request_options,
8
- to_encodable,
9
- type_utils,
10
- )
11
3
  from magic_hour.helpers.logger import get_sdk_logger
12
4
  from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
13
5
  from magic_hour.resources.v1.video_projects.client import (
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.video_projects.client import (
15
7
  VideoProjectsClient,
16
8
  )
17
9
  from magic_hour.types import models, params
10
+ from make_api_request import (
11
+ AsyncBaseClient,
12
+ RequestOptions,
13
+ SyncBaseClient,
14
+ default_request_options,
15
+ to_encodable,
16
+ type_utils,
17
+ )
18
18
 
19
19
 
20
20
  logger = get_sdk_logger(__name__)
@@ -1,13 +1,5 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
4
- AsyncBaseClient,
5
- RequestOptions,
6
- SyncBaseClient,
7
- default_request_options,
8
- to_encodable,
9
- type_utils,
10
- )
11
3
  from magic_hour.helpers.logger import get_sdk_logger
12
4
  from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
13
5
  from magic_hour.resources.v1.image_projects.client import (
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
15
7
  ImageProjectsClient,
16
8
  )
17
9
  from magic_hour.types import models, params
10
+ from make_api_request import (
11
+ AsyncBaseClient,
12
+ RequestOptions,
13
+ SyncBaseClient,
14
+ default_request_options,
15
+ to_encodable,
16
+ type_utils,
17
+ )
18
18
 
19
19
 
20
20
  logger = get_sdk_logger(__name__)
@@ -6,7 +6,6 @@ import pathlib
6
6
  import typing
7
7
  import typing_extensions
8
8
 
9
- from magic_hour.core import AsyncBaseClient, SyncBaseClient
10
9
  from magic_hour.helpers.logger import get_sdk_logger
11
10
  from magic_hour.resources.v1.files.upload_urls import (
12
11
  AsyncUploadUrlsClient,
@@ -15,6 +14,7 @@ from magic_hour.resources.v1.files.upload_urls import (
15
14
  from magic_hour.types.params.v1_files_upload_urls_create_body_items_item import (
16
15
  V1FilesUploadUrlsCreateBodyItemsItem,
17
16
  )
17
+ from make_api_request import AsyncBaseClient, SyncBaseClient
18
18
  from pathlib import Path
19
19
 
20
20
 
@@ -1,13 +1,13 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
3
+ from magic_hour.types import models, params
4
+ from make_api_request import (
4
5
  AsyncBaseClient,
5
6
  RequestOptions,
6
7
  SyncBaseClient,
7
8
  default_request_options,
8
9
  to_encodable,
9
10
  )
10
- from magic_hour.types import models, params
11
11
 
12
12
 
13
13
  class UploadUrlsClient:
@@ -1,13 +1,5 @@
1
1
  import typing
2
2
 
3
- from magic_hour.core import (
4
- AsyncBaseClient,
5
- RequestOptions,
6
- SyncBaseClient,
7
- default_request_options,
8
- to_encodable,
9
- type_utils,
10
- )
11
3
  from magic_hour.helpers.logger import get_sdk_logger
12
4
  from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
13
5
  from magic_hour.resources.v1.image_projects.client import (
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
15
7
  ImageProjectsClient,
16
8
  )
17
9
  from magic_hour.types import models, params
10
+ from make_api_request import (
11
+ AsyncBaseClient,
12
+ RequestOptions,
13
+ SyncBaseClient,
14
+ default_request_options,
15
+ to_encodable,
16
+ type_utils,
17
+ )
18
18
 
19
19
 
20
20
  logger = get_sdk_logger(__name__)
@@ -4,15 +4,15 @@ import pydantic
4
4
  import time
5
5
  import typing
6
6
 
7
- from magic_hour.core import (
7
+ from magic_hour.helpers.download import download_files_async, download_files_sync
8
+ from magic_hour.helpers.logger import get_sdk_logger
9
+ from magic_hour.types import models
10
+ from make_api_request import (
8
11
  AsyncBaseClient,
9
12
  RequestOptions,
10
13
  SyncBaseClient,
11
14
  default_request_options,
12
15
  )
13
- from magic_hour.helpers.download import download_files_async, download_files_sync
14
- from magic_hour.helpers.logger import get_sdk_logger
15
- from magic_hour.types import models
16
16
 
17
17
 
18
18
  logger = get_sdk_logger(__name__)
@@ -1,14 +1,6 @@
1
1
  import typing
2
2
  import typing_extensions
3
3
 
4
- from magic_hour.core import (
5
- AsyncBaseClient,
6
- RequestOptions,
7
- SyncBaseClient,
8
- default_request_options,
9
- to_encodable,
10
- type_utils,
11
- )
12
4
  from magic_hour.helpers.logger import get_sdk_logger
13
5
  from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
14
6
  from magic_hour.resources.v1.video_projects.client import (
@@ -16,6 +8,14 @@ from magic_hour.resources.v1.video_projects.client import (
16
8
  VideoProjectsClient,
17
9
  )
18
10
  from magic_hour.types import models, params
11
+ from make_api_request import (
12
+ AsyncBaseClient,
13
+ RequestOptions,
14
+ SyncBaseClient,
15
+ default_request_options,
16
+ to_encodable,
17
+ type_utils,
18
+ )
19
19
 
20
20
 
21
21
  logger = get_sdk_logger(__name__)