magic_hour 0.8.5__py3-none-any.whl → 0.9.1__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.
- magic_hour/client.py +1 -1
- magic_hour/environment.py +1 -1
- magic_hour/types/params/post_v1_animation_body_assets.py +2 -2
- magic_hour/types/params/post_v1_image_to_video_body_style.py +8 -0
- magic_hour/types/params/post_v1_video_to_video_body_assets.py +1 -1
- {magic_hour-0.8.5.dist-info → magic_hour-0.9.1.dist-info}/METADATA +1 -1
- {magic_hour-0.8.5.dist-info → magic_hour-0.9.1.dist-info}/RECORD +9 -9
- {magic_hour-0.8.5.dist-info → magic_hour-0.9.1.dist-info}/LICENSE +0 -0
- {magic_hour-0.8.5.dist-info → magic_hour-0.9.1.dist-info}/WHEEL +0 -0
magic_hour/client.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import httpx
|
|
2
2
|
import typing
|
|
3
3
|
|
|
4
|
+
from magic_hour.environment import Environment
|
|
4
5
|
from magic_hour.core import AsyncBaseClient, AuthBearer, SyncBaseClient
|
|
5
6
|
from magic_hour.resources.v1 import AsyncV1Client, V1Client
|
|
6
|
-
from magic_hour.environment import Environment
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class Client:
|
magic_hour/environment.py
CHANGED
|
@@ -10,7 +10,7 @@ class PostV1AnimationBodyAssets(typing_extensions.TypedDict):
|
|
|
10
10
|
|
|
11
11
|
audio_file_path: typing_extensions.NotRequired[str]
|
|
12
12
|
"""
|
|
13
|
-
The path of the input audio. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
|
|
13
|
+
The path of the input audio. This field is required if `audio_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
16
|
audio_source: typing_extensions.Required[
|
|
@@ -22,7 +22,7 @@ class PostV1AnimationBodyAssets(typing_extensions.TypedDict):
|
|
|
22
22
|
|
|
23
23
|
image_file_path: typing_extensions.NotRequired[str]
|
|
24
24
|
"""
|
|
25
|
-
An initial image to use a the first frame of the video. This
|
|
25
|
+
An initial image to use a the first frame of the video. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
28
|
youtube_url: typing_extensions.NotRequired[str]
|
|
@@ -8,6 +8,11 @@ class PostV1ImageToVideoBodyStyle(typing_extensions.TypedDict):
|
|
|
8
8
|
PostV1ImageToVideoBodyStyle
|
|
9
9
|
"""
|
|
10
10
|
|
|
11
|
+
high_quality: typing_extensions.NotRequired[bool]
|
|
12
|
+
"""
|
|
13
|
+
High Quality mode enhances detail, sharpness, and realism, making it ideal for portraits, animals, and intricate landscapes.
|
|
14
|
+
"""
|
|
15
|
+
|
|
11
16
|
prompt: typing_extensions.Required[typing.Optional[str]]
|
|
12
17
|
"""
|
|
13
18
|
The prompt used for the video.
|
|
@@ -24,6 +29,9 @@ class _SerializerPostV1ImageToVideoBodyStyle(pydantic.BaseModel):
|
|
|
24
29
|
populate_by_name=True,
|
|
25
30
|
)
|
|
26
31
|
|
|
32
|
+
high_quality: typing.Optional[bool] = pydantic.Field(
|
|
33
|
+
alias="high_quality", default=None
|
|
34
|
+
)
|
|
27
35
|
prompt: typing.Optional[str] = pydantic.Field(
|
|
28
36
|
alias="prompt",
|
|
29
37
|
)
|
|
@@ -10,7 +10,7 @@ class PostV1VideoToVideoBodyAssets(typing_extensions.TypedDict):
|
|
|
10
10
|
|
|
11
11
|
video_file_path: typing_extensions.NotRequired[str]
|
|
12
12
|
"""
|
|
13
|
-
The path of the input video. This field is required if `video_source` is `file`. This value
|
|
13
|
+
The path of the input video. This field is required if `video_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
16
|
video_source: typing_extensions.Required[
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
magic_hour/__init__.py,sha256=9mcpfN52bfc0cw9wEz7dXOVpOsUuGmVdqFQ79NdnGYU,203
|
|
2
|
-
magic_hour/client.py,sha256=
|
|
2
|
+
magic_hour/client.py,sha256=PL9UGz8eA4fSqP-xuo4znQYO27rOyr8fSf2z7DA6yBY,2014
|
|
3
3
|
magic_hour/core/__init__.py,sha256=i6cIezufptVYpQS9F90nLCDIliQVXjUBsufIXmuI_9g,1145
|
|
4
4
|
magic_hour/core/api_error.py,sha256=K1d47qRbhLBNEaUVbs0NPgxee24X3qGZ37gBhleUzEE,1760
|
|
5
5
|
magic_hour/core/auth.py,sha256=NSjPcmTyHelRag9FqH1ufbchBWQgGDpH2P0akfppIPo,9130
|
|
@@ -9,7 +9,7 @@ magic_hour/core/request.py,sha256=zdw-rie5wCy9MxIQ5ilhnZaBVPRyF8WAiZ5pGTam7Oc,52
|
|
|
9
9
|
magic_hour/core/response.py,sha256=Sl7nPL2axmz7em_6d9TkFSnQQKUpalWaVWbPPWoXJgM,10180
|
|
10
10
|
magic_hour/core/type_utils.py,sha256=4bU9WXnMXJ6YTtuqOMiB8t6Xw0RlfVWJ-IDBONlqEtQ,461
|
|
11
11
|
magic_hour/core/utils.py,sha256=Cp0SH9nBsdL53kCJSCsHgoJoo0HuXYmxShhQgeHw0KQ,1668
|
|
12
|
-
magic_hour/environment.py,sha256
|
|
12
|
+
magic_hour/environment.py,sha256=-a_MY13KPwDW1bPewtU5CrfDlilrSJy4kfawvD8MsPQ,167
|
|
13
13
|
magic_hour/resources/v1/__init__.py,sha256=Aj0sjVcoijjQyieNBxv2_uewPYC2vO2UG-ehoBgCz5E,86
|
|
14
14
|
magic_hour/resources/v1/ai_clothes_changer/README.md,sha256=KQTvbttct5GcdOJW3NG5gCsWF6G2qlwIoBjBd92TjUs,977
|
|
15
15
|
magic_hour/resources/v1/ai_clothes_changer/__init__.py,sha256=6W_Y2HxG2sDOBiJyzngK3Q2S3xfQgpK-j8xFRmBAhbQ,142
|
|
@@ -105,7 +105,7 @@ magic_hour/types/params/post_v1_ai_photo_editor_body_style.py,sha256=d_BCTM1MEHP
|
|
|
105
105
|
magic_hour/types/params/post_v1_ai_qr_code_generator_body.py,sha256=J0IT4WRRIBGZjfu_eCvq1UenT0irY1Cf5nxdl9K9TOE,1091
|
|
106
106
|
magic_hour/types/params/post_v1_ai_qr_code_generator_body_style.py,sha256=c523YFzkZb0nnzFzGbmX1YPuXuT_PEs7mOW_unLFOFw,831
|
|
107
107
|
magic_hour/types/params/post_v1_animation_body.py,sha256=AmO2QsJ09Q5MyjwdZTsasflibsQyYEUI7S1R028cToQ,2193
|
|
108
|
-
magic_hour/types/params/post_v1_animation_body_assets.py,sha256=
|
|
108
|
+
magic_hour/types/params/post_v1_animation_body_assets.py,sha256=tPItT9Ly-KUs_q886L8gVAuAExZoRlg7TbSmerAFP9I,1905
|
|
109
109
|
magic_hour/types/params/post_v1_animation_body_style.py,sha256=oBy3jEiP7ptqmoMxr9OUTaWyt_4MrBjRO46034FqAB4,8039
|
|
110
110
|
magic_hour/types/params/post_v1_face_swap_body.py,sha256=Hlvv6OFy9UuhaUVX-887dJx3uIKwS3MLphZEhvgLFtU,1995
|
|
111
111
|
magic_hour/types/params/post_v1_face_swap_body_assets.py,sha256=e8_1b8nE4HOas6DeZLxVHKPrlFKCDV2rjesqvfD-NUs,1828
|
|
@@ -117,15 +117,15 @@ magic_hour/types/params/post_v1_image_background_remover_body.py,sha256=NGJj0iwp
|
|
|
117
117
|
magic_hour/types/params/post_v1_image_background_remover_body_assets.py,sha256=ILA6p3oEM_kMwXXunnDI4bvECscS6Ugza2awenL3dMk,840
|
|
118
118
|
magic_hour/types/params/post_v1_image_to_video_body.py,sha256=r7xgMOKA8mKS_btf0glgEH4bkfsUwhXLBhqhJ6tTafM,2014
|
|
119
119
|
magic_hour/types/params/post_v1_image_to_video_body_assets.py,sha256=VwuT9RsSLbim46Vrq5EjpqPwFD0Gyip37_ndRjY6dpg,797
|
|
120
|
-
magic_hour/types/params/post_v1_image_to_video_body_style.py,sha256=
|
|
120
|
+
magic_hour/types/params/post_v1_image_to_video_body_style.py,sha256=V2gCgFwFVlDfM_mjYNVrBYDw2wuYf7FNqS80XOWDcfw,952
|
|
121
121
|
magic_hour/types/params/post_v1_lip_sync_body.py,sha256=9X-gk-hLBx8eXXTE4Rgo1EPTDwSOC5FQzBdw-rIFFm8,2430
|
|
122
122
|
magic_hour/types/params/post_v1_lip_sync_body_assets.py,sha256=taDZlsw2R6IW3g6OQEZQyWq0azjYci859CKpPWxNd9w,1823
|
|
123
123
|
magic_hour/types/params/post_v1_text_to_video_body.py,sha256=q9aFGvmh6xEu_1quAB1O5qqvn0Vt9dXt_7vxgxDqBkI,1418
|
|
124
124
|
magic_hour/types/params/post_v1_text_to_video_body_style.py,sha256=8-zyz32Gz3qkeuL4y-ZWxdx-fktecKoOKtkqQRoLDMY,593
|
|
125
125
|
magic_hour/types/params/post_v1_video_to_video_body.py,sha256=dbazkWaGco73sSirtD-Q6vnLzF4BZa4Od87UTih1_-o,2914
|
|
126
|
-
magic_hour/types/params/post_v1_video_to_video_body_assets.py,sha256=
|
|
126
|
+
magic_hour/types/params/post_v1_video_to_video_body_assets.py,sha256=0q7LCWMYJlAOjxl0b9F2BLIZbX40H16RJf8teg-TGGM,1498
|
|
127
127
|
magic_hour/types/params/post_v1_video_to_video_body_style.py,sha256=RQWr8VJqipM4YmNwGCQXWf7XT7O8Y2hgqxRRH1Vh7Cs,5457
|
|
128
|
-
magic_hour-0.
|
|
129
|
-
magic_hour-0.
|
|
130
|
-
magic_hour-0.
|
|
131
|
-
magic_hour-0.
|
|
128
|
+
magic_hour-0.9.1.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
|
|
129
|
+
magic_hour-0.9.1.dist-info/METADATA,sha256=52cv-U0-hb8CT5rILo8UjTgn9dsk4XpRIwisEoFAB7Q,4654
|
|
130
|
+
magic_hour-0.9.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
131
|
+
magic_hour-0.9.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|