magic_hour 0.27.0__py3-none-any.whl → 0.28.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.27.0"
9
+ MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.28.0"
10
10
 
11
11
 
12
12
  def _get_base_url(
@@ -10,8 +10,8 @@ Create a talking photo from an image and audio or text input.
10
10
  | Parameter | Required | Description | Example |
11
11
  |-----------|:--------:|-------------|--------|
12
12
  | `assets` | ✓ | Provide the assets for creating a talking photo | `{"audio_file_path": "api-assets/id/1234.mp3", "image_file_path": "api-assets/id/1234.png"}` |
13
- | `end_seconds` | ✓ | The end time of the input audio in seconds. The maximum duration allowed is 30 seconds. | `15.0` |
14
- | `start_seconds` | ✓ | The start time of the input audio in seconds. The maximum duration allowed is 30 seconds. | `0.0` |
13
+ | `end_seconds` | ✓ | The end time of the input audio in seconds. The maximum duration allowed is 60 seconds. | `15.0` |
14
+ | `start_seconds` | ✓ | The start time of the input audio in seconds. The maximum duration allowed is 60 seconds. | `0.0` |
15
15
  | `name` | ✗ | The name of image | `"Talking Photo image"` |
16
16
  | `style` | ✗ | Attributes used to dictate the style of the output | `{"generation_mode": "expressive", "intensity": 1.5}` |
17
17
 
@@ -40,8 +40,8 @@ class AiTalkingPhotoClient:
40
40
  name: The name of image
41
41
  style: Attributes used to dictate the style of the output
42
42
  assets: Provide the assets for creating a talking photo
43
- end_seconds: The end time of the input audio in seconds. The maximum duration allowed is 30 seconds.
44
- start_seconds: The start time of the input audio in seconds. The maximum duration allowed is 30 seconds.
43
+ end_seconds: The end time of the input audio in seconds. The maximum duration allowed is 60 seconds.
44
+ start_seconds: The start time of the input audio in seconds. The maximum duration allowed is 60 seconds.
45
45
  request_options: Additional options to customize the HTTP request
46
46
 
47
47
  Returns:
@@ -113,8 +113,8 @@ class AsyncAiTalkingPhotoClient:
113
113
  name: The name of image
114
114
  style: Attributes used to dictate the style of the output
115
115
  assets: Provide the assets for creating a talking photo
116
- end_seconds: The end time of the input audio in seconds. The maximum duration allowed is 30 seconds.
117
- start_seconds: The start time of the input audio in seconds. The maximum duration allowed is 30 seconds.
116
+ end_seconds: The end time of the input audio in seconds. The maximum duration allowed is 60 seconds.
117
+ start_seconds: The start time of the input audio in seconds. The maximum duration allowed is 60 seconds.
118
118
  request_options: Additional options to customize the HTTP request
119
119
 
120
120
  Returns:
@@ -24,7 +24,7 @@ class V1AiTalkingPhotoCreateBody(typing_extensions.TypedDict):
24
24
 
25
25
  end_seconds: typing_extensions.Required[float]
26
26
  """
27
- The end time of the input audio in seconds. The maximum duration allowed is 30 seconds.
27
+ The end time of the input audio in seconds. The maximum duration allowed is 60 seconds.
28
28
  """
29
29
 
30
30
  name: typing_extensions.NotRequired[str]
@@ -34,7 +34,7 @@ class V1AiTalkingPhotoCreateBody(typing_extensions.TypedDict):
34
34
 
35
35
  start_seconds: typing_extensions.Required[float]
36
36
  """
37
- The start time of the input audio in seconds. The maximum duration allowed is 30 seconds.
37
+ The start time of the input audio in seconds. The maximum duration allowed is 60 seconds.
38
38
  """
39
39
 
40
40
  style: typing_extensions.NotRequired[V1AiTalkingPhotoCreateBodyStyle]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: magic_hour
3
- Version: 0.27.0
3
+ Version: 0.28.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=nDuJaqUs8aPAtnp7_Ybc_0rk7mKYOshyh2L1GIDolpY,535
13
+ magic_hour/environment.py,sha256=mJuTL4A7ciXoLQfXetLd0FkvpVQxiyLZ_8ekPav88hk,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
@@ -42,9 +42,9 @@ magic_hour/resources/v1/ai_photo_editor/client.py,sha256=EAh-urQN2XWHTO1WLLYhXgo
42
42
  magic_hour/resources/v1/ai_qr_code_generator/README.md,sha256=_CtKUro8XEdH_pALqG_F8UOXQ31EiVZ-_1iHQ04om64,1258
43
43
  magic_hour/resources/v1/ai_qr_code_generator/__init__.py,sha256=HnSTg7tB8M5LibZoCDRdE5Q71efmiqZIkNEve5SO1Mg,146
44
44
  magic_hour/resources/v1/ai_qr_code_generator/client.py,sha256=mmdGgUSVoMTazmGiB24mc2sXsfaAtx-Fbgcu_SncW-Q,3851
45
- magic_hour/resources/v1/ai_talking_photo/README.md,sha256=knbnvza-eKY5HdruLTs1FOXYOMpsnpkchySez0bJF_o,1886
45
+ magic_hour/resources/v1/ai_talking_photo/README.md,sha256=82qVtvtda_w_HhWWrYnkzzXgfe-IqUzaAYgujkpCEYg,1886
46
46
  magic_hour/resources/v1/ai_talking_photo/__init__.py,sha256=ZTDD_IRBoR7GSdGWCVEK2-LOEsKUdGEHZZvDHa9MOnA,134
47
- magic_hour/resources/v1/ai_talking_photo/client.py,sha256=Y4p5HAlbCAe2NNqekdllSZ0jRhzwCcjAIHO0zlqxi3Q,5311
47
+ magic_hour/resources/v1/ai_talking_photo/client.py,sha256=RXFOYza_YoymqiQ2BBmCQiF_JqD1dxO2OyA8BYyue_Q,5311
48
48
  magic_hour/resources/v1/animation/README.md,sha256=mCsyVlyEbffbtClSETSEMvdYksORQF_-_J5-VpoQvCI,2784
49
49
  magic_hour/resources/v1/animation/__init__.py,sha256=M6KUe6TEZl_DAdyn1HFQ2kHYanZo6xy3mvUdCN264hQ,114
50
50
  magic_hour/resources/v1/animation/client.py,sha256=YYjggl_hszTW-Sn9SFs3m7bz7PvtRTruhHSSnrkkD9c,6401
@@ -144,7 +144,7 @@ magic_hour/types/params/v1_ai_photo_editor_create_body_assets.py,sha256=xoDh4VwV
144
144
  magic_hour/types/params/v1_ai_photo_editor_create_body_style.py,sha256=EGPcoSjCDffoTbY3QB-85HVJ97p9swcZkMsYdW_O2JE,2752
145
145
  magic_hour/types/params/v1_ai_qr_code_generator_create_body.py,sha256=_O1654Mbl77SGi9lH4FmKkTwtCXCArH9BeSlgTuLyT0,1109
146
146
  magic_hour/types/params/v1_ai_qr_code_generator_create_body_style.py,sha256=i3ldwmoQPEnrw654PNIARmpsX-kUHZqaT8wjcc22JoA,839
147
- magic_hour/types/params/v1_ai_talking_photo_create_body.py,sha256=D8zvwqOoNf8DlWa7EOkDNXHt2PqrGzup0uxXDYP5RCI,1915
147
+ magic_hour/types/params/v1_ai_talking_photo_create_body.py,sha256=ZJzXPVd_ymnqpG14BOrtVLHag7F-lPo-DMSoqVNvt0g,1915
148
148
  magic_hour/types/params/v1_ai_talking_photo_create_body_assets.py,sha256=_xNq6uVb6h7TYsNGesEbpAvrGKmVgqXwVV7Hq7jyEO4,1230
149
149
  magic_hour/types/params/v1_ai_talking_photo_create_body_style.py,sha256=iXKnUrYrKC-9sRxZlthUpiqHgSSyQe0UjYNhhKRKI1Q,1434
150
150
  magic_hour/types/params/v1_animation_create_body.py,sha256=QB0zxAhNDV8BEd6vuTAUoZaF2E0PNKwfzV7OrsdueGk,2221
@@ -174,7 +174,7 @@ magic_hour/types/params/v1_text_to_video_create_body_style.py,sha256=cEZO917hipE
174
174
  magic_hour/types/params/v1_video_to_video_create_body.py,sha256=Pgok6GUVHrpW6H3rwdVFA3O5YJvjgviCZkmmHddOSWo,3802
175
175
  magic_hour/types/params/v1_video_to_video_create_body_assets.py,sha256=_-6iA5d8ndka6iJWyWvlJwzRkQcmurJE6hkg-fDwBmQ,1531
176
176
  magic_hour/types/params/v1_video_to_video_create_body_style.py,sha256=RrDBhN2KQnCf9hGsnl3sAYvuFRsxth2JXfe5la0IYJg,5749
177
- magic_hour-0.27.0.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
178
- magic_hour-0.27.0.dist-info/METADATA,sha256=a2PceNMJLIxt33oYo1yohkDbm4qB5smvup6KVjmDuTY,5840
179
- magic_hour-0.27.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
180
- magic_hour-0.27.0.dist-info/RECORD,,
177
+ magic_hour-0.28.0.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
178
+ magic_hour-0.28.0.dist-info/METADATA,sha256=AafaOB9P_UZsVmtHHCPAQJKzc6ZBHvOOYvmi1fywukM,5840
179
+ magic_hour-0.28.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
180
+ magic_hour-0.28.0.dist-info/RECORD,,