magic_hour 0.31.0__py3-none-any.whl → 0.32.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 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.31.0"
9
+ MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.32.0"
10
10
 
11
11
 
12
12
  def _get_base_url(
@@ -29,7 +29,7 @@ class V1FaceSwapCreateBodyAssets(typing_extensions.TypedDict):
29
29
  * `individual-faces` - Swap individual faces in the target image or video. `source_faces` is required.
30
30
  """
31
31
 
32
- image_file_path: typing_extensions.Required[str]
32
+ image_file_path: typing_extensions.NotRequired[str]
33
33
  """
34
34
  The path of the input image with the face to be swapped. The value is required if `face_swap_mode` is `all-faces`.
35
35
 
@@ -67,8 +67,8 @@ class _SerializerV1FaceSwapCreateBodyAssets(pydantic.BaseModel):
67
67
  face_swap_mode: typing.Optional[
68
68
  typing_extensions.Literal["all-faces", "individual-faces"]
69
69
  ] = pydantic.Field(alias="face_swap_mode", default=None)
70
- image_file_path: str = pydantic.Field(
71
- alias="image_file_path",
70
+ image_file_path: typing.Optional[str] = pydantic.Field(
71
+ alias="image_file_path", default=None
72
72
  )
73
73
  video_file_path: typing.Optional[str] = pydantic.Field(
74
74
  alias="video_file_path", default=None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: magic_hour
3
- Version: 0.31.0
3
+ Version: 0.32.0
4
4
  Summary: Python SDK for Magic Hour API
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -10,7 +10,7 @@ magic_hour/core/request.py,sha256=_ikn8iZ2fU9Ubqnt7M9hdEnXGV6AAFHJYmDKBtxEY4I,52
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=TJ4rB_GcNGOULIQADV9K4fs_IOmeqVnxFMAXOiOpdLI,535
13
+ magic_hour/environment.py,sha256=RxoF7Qo-jAjff_KHXt_X0yIle-5RhUSpp9Rosq_ZzM0,535
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=x9cVTx9nHsyIutYjoUk1DeJg55cti6DAN_C-kBI_47Q,1564
16
16
  magic_hour/resources/v1/ai_clothes_changer/__init__.py,sha256=6W_Y2HxG2sDOBiJyzngK3Q2S3xfQgpK-j8xFRmBAhbQ,142
@@ -163,7 +163,7 @@ magic_hour/types/params/v1_auto_subtitle_generator_create_body_style_custom_conf
163
163
  magic_hour/types/params/v1_face_detection_create_body.py,sha256=GSk6zzi5jqb-oluAf5IpPfVuwXkKyKceWblieLZ572s,1277
164
164
  magic_hour/types/params/v1_face_detection_create_body_assets.py,sha256=tprBC360DJze2fyyQaWFH28CgW-kwg5sRvoBmYuHYyM,867
165
165
  magic_hour/types/params/v1_face_swap_create_body.py,sha256=ZLxWHSs5NHHeBxBAE-8AEgUwEpEhpYQC4fW9dkmDXxQ,2923
166
- magic_hour/types/params/v1_face_swap_create_body_assets.py,sha256=NVlEkU2pKmARCHaIWFqK62ga4z-CznBTAjbUW5rc92k,3138
166
+ magic_hour/types/params/v1_face_swap_create_body_assets.py,sha256=0l0aIaUoG2APn1bt1fwRGZo8PMFfLFtmuh06UKh1utw,3171
167
167
  magic_hour/types/params/v1_face_swap_create_body_assets_face_mappings_item.py,sha256=vqn76tk-LZ08Ugjle5XaXh5Cm-fv_asqNLlo8WMTKio,1541
168
168
  magic_hour/types/params/v1_face_swap_photo_create_body.py,sha256=OYsrz7d7i7eg28bR_YS5ucl6k_bMhmNrOt2dF7MYdM4,979
169
169
  magic_hour/types/params/v1_face_swap_photo_create_body_assets.py,sha256=K8LcgfMbAu9nhdPmZceKg1qgyMImxz3472kMi-I58GE,2573
@@ -184,7 +184,7 @@ magic_hour/types/params/v1_text_to_video_create_body_style.py,sha256=cEZO917hipE
184
184
  magic_hour/types/params/v1_video_to_video_create_body.py,sha256=Pgok6GUVHrpW6H3rwdVFA3O5YJvjgviCZkmmHddOSWo,3802
185
185
  magic_hour/types/params/v1_video_to_video_create_body_assets.py,sha256=_-6iA5d8ndka6iJWyWvlJwzRkQcmurJE6hkg-fDwBmQ,1531
186
186
  magic_hour/types/params/v1_video_to_video_create_body_style.py,sha256=RrDBhN2KQnCf9hGsnl3sAYvuFRsxth2JXfe5la0IYJg,5749
187
- magic_hour-0.31.0.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
188
- magic_hour-0.31.0.dist-info/METADATA,sha256=id5P_5FvkiXqEM09jEmcOVbiwrXKMsb4zbK13Ab8o9c,6092
189
- magic_hour-0.31.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
190
- magic_hour-0.31.0.dist-info/RECORD,,
187
+ magic_hour-0.32.0.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
188
+ magic_hour-0.32.0.dist-info/METADATA,sha256=xqVgiOvVFgrMyLfhcObuCqlaES0aKvicrwveCefwAx4,6092
189
+ magic_hour-0.32.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
190
+ magic_hour-0.32.0.dist-info/RECORD,,