magic_hour 0.9.5__py3-none-any.whl → 0.10.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.
- magic_hour/environment.py +1 -1
- magic_hour/resources/v1/ai_headshot_generator/client.py +12 -2
- magic_hour/types/params/__init__.py +6 -0
- magic_hour/types/params/post_v1_ai_headshot_generator_body.py +9 -0
- magic_hour/types/params/post_v1_ai_headshot_generator_body_style.py +27 -0
- {magic_hour-0.9.5.dist-info → magic_hour-0.10.0.dist-info}/METADATA +1 -1
- {magic_hour-0.9.5.dist-info → magic_hour-0.10.0.dist-info}/RECORD +9 -8
- {magic_hour-0.9.5.dist-info → magic_hour-0.10.0.dist-info}/LICENSE +0 -0
- {magic_hour-0.9.5.dist-info → magic_hour-0.10.0.dist-info}/WHEEL +0 -0
magic_hour/environment.py
CHANGED
|
@@ -22,6 +22,10 @@ class AiHeadshotGeneratorClient:
|
|
|
22
22
|
name: typing.Union[
|
|
23
23
|
typing.Optional[str], type_utils.NotGiven
|
|
24
24
|
] = type_utils.NOT_GIVEN,
|
|
25
|
+
style: typing.Union[
|
|
26
|
+
typing.Optional[params.PostV1AiHeadshotGeneratorBodyStyle],
|
|
27
|
+
type_utils.NotGiven,
|
|
28
|
+
] = type_utils.NOT_GIVEN,
|
|
25
29
|
request_options: typing.Optional[RequestOptions] = None,
|
|
26
30
|
) -> models.PostV1AiHeadshotGeneratorResponse:
|
|
27
31
|
"""
|
|
@@ -33,6 +37,7 @@ class AiHeadshotGeneratorClient:
|
|
|
33
37
|
|
|
34
38
|
Args:
|
|
35
39
|
name: The name of image
|
|
40
|
+
style: PostV1AiHeadshotGeneratorBodyStyle
|
|
36
41
|
assets: Provide the assets for headshot photo
|
|
37
42
|
request_options: Additional options to customize the HTTP request
|
|
38
43
|
|
|
@@ -52,7 +57,7 @@ class AiHeadshotGeneratorClient:
|
|
|
52
57
|
```
|
|
53
58
|
"""
|
|
54
59
|
_json = to_encodable(
|
|
55
|
-
item={"name": name, "assets": assets},
|
|
60
|
+
item={"name": name, "style": style, "assets": assets},
|
|
56
61
|
dump_with=params._SerializerPostV1AiHeadshotGeneratorBody,
|
|
57
62
|
)
|
|
58
63
|
return self._base_client.request(
|
|
@@ -76,6 +81,10 @@ class AsyncAiHeadshotGeneratorClient:
|
|
|
76
81
|
name: typing.Union[
|
|
77
82
|
typing.Optional[str], type_utils.NotGiven
|
|
78
83
|
] = type_utils.NOT_GIVEN,
|
|
84
|
+
style: typing.Union[
|
|
85
|
+
typing.Optional[params.PostV1AiHeadshotGeneratorBodyStyle],
|
|
86
|
+
type_utils.NotGiven,
|
|
87
|
+
] = type_utils.NOT_GIVEN,
|
|
79
88
|
request_options: typing.Optional[RequestOptions] = None,
|
|
80
89
|
) -> models.PostV1AiHeadshotGeneratorResponse:
|
|
81
90
|
"""
|
|
@@ -87,6 +96,7 @@ class AsyncAiHeadshotGeneratorClient:
|
|
|
87
96
|
|
|
88
97
|
Args:
|
|
89
98
|
name: The name of image
|
|
99
|
+
style: PostV1AiHeadshotGeneratorBodyStyle
|
|
90
100
|
assets: Provide the assets for headshot photo
|
|
91
101
|
request_options: Additional options to customize the HTTP request
|
|
92
102
|
|
|
@@ -106,7 +116,7 @@ class AsyncAiHeadshotGeneratorClient:
|
|
|
106
116
|
```
|
|
107
117
|
"""
|
|
108
118
|
_json = to_encodable(
|
|
109
|
-
item={"name": name, "assets": assets},
|
|
119
|
+
item={"name": name, "style": style, "assets": assets},
|
|
110
120
|
dump_with=params._SerializerPostV1AiHeadshotGeneratorBody,
|
|
111
121
|
)
|
|
112
122
|
return await self._base_client.request(
|
|
@@ -14,6 +14,10 @@ from .post_v1_ai_headshot_generator_body_assets import (
|
|
|
14
14
|
PostV1AiHeadshotGeneratorBodyAssets,
|
|
15
15
|
_SerializerPostV1AiHeadshotGeneratorBodyAssets,
|
|
16
16
|
)
|
|
17
|
+
from .post_v1_ai_headshot_generator_body_style import (
|
|
18
|
+
PostV1AiHeadshotGeneratorBodyStyle,
|
|
19
|
+
_SerializerPostV1AiHeadshotGeneratorBodyStyle,
|
|
20
|
+
)
|
|
17
21
|
from .post_v1_ai_image_generator_body import (
|
|
18
22
|
PostV1AiImageGeneratorBody,
|
|
19
23
|
_SerializerPostV1AiImageGeneratorBody,
|
|
@@ -136,6 +140,7 @@ __all__ = [
|
|
|
136
140
|
"PostV1AiClothesChangerBodyAssets",
|
|
137
141
|
"PostV1AiHeadshotGeneratorBody",
|
|
138
142
|
"PostV1AiHeadshotGeneratorBodyAssets",
|
|
143
|
+
"PostV1AiHeadshotGeneratorBodyStyle",
|
|
139
144
|
"PostV1AiImageGeneratorBody",
|
|
140
145
|
"PostV1AiImageGeneratorBodyStyle",
|
|
141
146
|
"PostV1AiImageUpscalerBody",
|
|
@@ -171,6 +176,7 @@ __all__ = [
|
|
|
171
176
|
"_SerializerPostV1AiClothesChangerBodyAssets",
|
|
172
177
|
"_SerializerPostV1AiHeadshotGeneratorBody",
|
|
173
178
|
"_SerializerPostV1AiHeadshotGeneratorBodyAssets",
|
|
179
|
+
"_SerializerPostV1AiHeadshotGeneratorBodyStyle",
|
|
174
180
|
"_SerializerPostV1AiImageGeneratorBody",
|
|
175
181
|
"_SerializerPostV1AiImageGeneratorBodyStyle",
|
|
176
182
|
"_SerializerPostV1AiImageUpscalerBody",
|
|
@@ -6,6 +6,10 @@ from .post_v1_ai_headshot_generator_body_assets import (
|
|
|
6
6
|
PostV1AiHeadshotGeneratorBodyAssets,
|
|
7
7
|
_SerializerPostV1AiHeadshotGeneratorBodyAssets,
|
|
8
8
|
)
|
|
9
|
+
from .post_v1_ai_headshot_generator_body_style import (
|
|
10
|
+
PostV1AiHeadshotGeneratorBodyStyle,
|
|
11
|
+
_SerializerPostV1AiHeadshotGeneratorBodyStyle,
|
|
12
|
+
)
|
|
9
13
|
|
|
10
14
|
|
|
11
15
|
class PostV1AiHeadshotGeneratorBody(typing_extensions.TypedDict):
|
|
@@ -23,6 +27,8 @@ class PostV1AiHeadshotGeneratorBody(typing_extensions.TypedDict):
|
|
|
23
27
|
The name of image
|
|
24
28
|
"""
|
|
25
29
|
|
|
30
|
+
style: typing_extensions.NotRequired[PostV1AiHeadshotGeneratorBodyStyle]
|
|
31
|
+
|
|
26
32
|
|
|
27
33
|
class _SerializerPostV1AiHeadshotGeneratorBody(pydantic.BaseModel):
|
|
28
34
|
"""
|
|
@@ -38,3 +44,6 @@ class _SerializerPostV1AiHeadshotGeneratorBody(pydantic.BaseModel):
|
|
|
38
44
|
alias="assets",
|
|
39
45
|
)
|
|
40
46
|
name: typing.Optional[str] = pydantic.Field(alias="name", default=None)
|
|
47
|
+
style: typing.Optional[_SerializerPostV1AiHeadshotGeneratorBodyStyle] = (
|
|
48
|
+
pydantic.Field(alias="style", default=None)
|
|
49
|
+
)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import pydantic
|
|
2
|
+
import typing
|
|
3
|
+
import typing_extensions
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class PostV1AiHeadshotGeneratorBodyStyle(typing_extensions.TypedDict):
|
|
7
|
+
"""
|
|
8
|
+
PostV1AiHeadshotGeneratorBodyStyle
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
prompt: typing_extensions.NotRequired[str]
|
|
12
|
+
"""
|
|
13
|
+
A prompt to guide the final image.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class _SerializerPostV1AiHeadshotGeneratorBodyStyle(pydantic.BaseModel):
|
|
18
|
+
"""
|
|
19
|
+
Serializer for PostV1AiHeadshotGeneratorBodyStyle handling case conversions
|
|
20
|
+
and file omissions as dictated by the API
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
model_config = pydantic.ConfigDict(
|
|
24
|
+
populate_by_name=True,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
prompt: typing.Optional[str] = pydantic.Field(alias="prompt", default=None)
|
|
@@ -10,14 +10,14 @@ magic_hour/core/request.py,sha256=lyHrh2VWY238D7JPbgZJlodTqBlHSmQn4fBJiBfE1Es,50
|
|
|
10
10
|
magic_hour/core/response.py,sha256=Sl7nPL2axmz7em_6d9TkFSnQQKUpalWaVWbPPWoXJgM,10180
|
|
11
11
|
magic_hour/core/type_utils.py,sha256=4bU9WXnMXJ6YTtuqOMiB8t6Xw0RlfVWJ-IDBONlqEtQ,461
|
|
12
12
|
magic_hour/core/utils.py,sha256=34SiC1vw2A0TkYHONgMA_d09soIIYiiBWRXCZGdwGIk,1669
|
|
13
|
-
magic_hour/environment.py,sha256=
|
|
13
|
+
magic_hour/environment.py,sha256=u8RctbazFpVyvBgXxMhxV3gpzzMWbd5_sOb5x5-O-NI,213
|
|
14
14
|
magic_hour/resources/v1/__init__.py,sha256=Aj0sjVcoijjQyieNBxv2_uewPYC2vO2UG-ehoBgCz5E,86
|
|
15
15
|
magic_hour/resources/v1/ai_clothes_changer/README.md,sha256=KQTvbttct5GcdOJW3NG5gCsWF6G2qlwIoBjBd92TjUs,977
|
|
16
16
|
magic_hour/resources/v1/ai_clothes_changer/__init__.py,sha256=6W_Y2HxG2sDOBiJyzngK3Q2S3xfQgpK-j8xFRmBAhbQ,142
|
|
17
17
|
magic_hour/resources/v1/ai_clothes_changer/client.py,sha256=AQNdWZdW3dMxcfOKRCh19lemru_OzF3btWDKkHC9-2E,3993
|
|
18
18
|
magic_hour/resources/v1/ai_headshot_generator/README.md,sha256=CWihzwUuDVoLBItSDJKGBW1EQthz2REmkLkaaA68yao,705
|
|
19
19
|
magic_hour/resources/v1/ai_headshot_generator/__init__.py,sha256=4WZ3jfrL2yPhQaPalMJrUEykwUoF3KBtop2VJEij-0s,154
|
|
20
|
-
magic_hour/resources/v1/ai_headshot_generator/client.py,sha256=
|
|
20
|
+
magic_hour/resources/v1/ai_headshot_generator/client.py,sha256=C7kRqZQZajwsGDSUdwpLSLEQnW9b4ITkAMB52WybHwY,4135
|
|
21
21
|
magic_hour/resources/v1/ai_image_generator/README.md,sha256=TWC2PMVr3owH5tg8G6g14tiWt8pw5wQVv-p-5wRZXEw,742
|
|
22
22
|
magic_hour/resources/v1/ai_image_generator/__init__.py,sha256=qZws7N5CALYAbnIUc2ERV8Cy-QJmHcJ9tU7W-epEnaQ,142
|
|
23
23
|
magic_hour/resources/v1/ai_image_generator/client.py,sha256=fahngku6yx2U4WU37sHLiENLUflEIDrbgJNbw8DFjGg,4440
|
|
@@ -90,11 +90,12 @@ magic_hour/types/models/post_v1_image_to_video_response.py,sha256=IZ-itRZq-5y4wd
|
|
|
90
90
|
magic_hour/types/models/post_v1_lip_sync_response.py,sha256=2dFcwP4NhTbkHAhgC1zbch2dImE2WBfM6aPkNOeTdwI,729
|
|
91
91
|
magic_hour/types/models/post_v1_text_to_video_response.py,sha256=j--7szYxsDP_MDHTGUvo5WVzOqw0zceW3WKO3LPuQfE,733
|
|
92
92
|
magic_hour/types/models/post_v1_video_to_video_response.py,sha256=X1SwCuS4vdLVEz_5fkWG1ujupsGVmSyaVSN4Kpnd928,734
|
|
93
|
-
magic_hour/types/params/__init__.py,sha256=
|
|
93
|
+
magic_hour/types/params/__init__.py,sha256=DB3r4nZyLMvOag47uuwXwEJf7oi7avTyazUoJGOqamE,7469
|
|
94
94
|
magic_hour/types/params/post_v1_ai_clothes_changer_body.py,sha256=XRezupzQiwgYK0CEQv_PKWwv-gJTtezrPREOXVn6huk,988
|
|
95
95
|
magic_hour/types/params/post_v1_ai_clothes_changer_body_assets.py,sha256=bU40FZKOnw0GW_dDpzjw-SjV37MlkgRALJKToMxfhpE,1503
|
|
96
|
-
magic_hour/types/params/post_v1_ai_headshot_generator_body.py,sha256=
|
|
96
|
+
magic_hour/types/params/post_v1_ai_headshot_generator_body.py,sha256=uNODQhYBrcT9lQPUgqJicPrQC7jmP6roJJGdS4hKci4,1377
|
|
97
97
|
magic_hour/types/params/post_v1_ai_headshot_generator_body_assets.py,sha256=QwZwXcWI8jbc_CwVlVWSvX9-pxyXU65kV-JQvXGKeWM,902
|
|
98
|
+
magic_hour/types/params/post_v1_ai_headshot_generator_body_style.py,sha256=UtJFD_pGExo1tk0-f3JsZLP3jhka4ZmzyyTL0XLyAjw,662
|
|
98
99
|
magic_hour/types/params/post_v1_ai_image_generator_body.py,sha256=LKGLC5vF3LTLP5UqTXqFInHSCAjjB2WWq9tnmp1TyEk,1370
|
|
99
100
|
magic_hour/types/params/post_v1_ai_image_generator_body_style.py,sha256=VQuheW7qAG7Fw6kq9AniHyOlg4J27WHfLGhRPaTq__s,613
|
|
100
101
|
magic_hour/types/params/post_v1_ai_image_upscaler_body.py,sha256=P4m5Pk0DniYwADWqb-82V6ICjcLF0Jt84OuSzoXslLs,1483
|
|
@@ -126,7 +127,7 @@ magic_hour/types/params/post_v1_text_to_video_body_style.py,sha256=aA9_N_a0Tdbwi
|
|
|
126
127
|
magic_hour/types/params/post_v1_video_to_video_body.py,sha256=2N3vg6UyyfpQ-ULtENSmY7TPlqyiRtjBVyVFi84WmIE,2914
|
|
127
128
|
magic_hour/types/params/post_v1_video_to_video_body_assets.py,sha256=h09tyrsAARJfPTJBYbpnffw0y5gUBpyR9d_fJWw3JZY,1525
|
|
128
129
|
magic_hour/types/params/post_v1_video_to_video_body_style.py,sha256=g9Q1B9mhuaGD4IsOEruKgWyNds_bk5uSuJ9zLMBfEY0,5457
|
|
129
|
-
magic_hour-0.
|
|
130
|
-
magic_hour-0.
|
|
131
|
-
magic_hour-0.
|
|
132
|
-
magic_hour-0.
|
|
130
|
+
magic_hour-0.10.0.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
|
|
131
|
+
magic_hour-0.10.0.dist-info/METADATA,sha256=52_3Zonx4fVBUNqVUDmSHBBH017OS64LnD0YghUce-8,4655
|
|
132
|
+
magic_hour-0.10.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
133
|
+
magic_hour-0.10.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|