magic_hour 0.9.0__py3-none-any.whl → 0.9.2__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 CHANGED
@@ -1,9 +1,9 @@
1
1
  import httpx
2
2
  import typing
3
3
 
4
- from magic_hour.resources.v1 import AsyncV1Client, V1Client
5
4
  from magic_hour.environment import Environment
6
5
  from magic_hour.core import AsyncBaseClient, AuthBearer, SyncBaseClient
6
+ from magic_hour.resources.v1 import AsyncV1Client, V1Client
7
7
 
8
8
 
9
9
  class Client:
magic_hour/environment.py CHANGED
@@ -3,4 +3,4 @@ import enum
3
3
 
4
4
  class Environment(enum.Enum):
5
5
  ENVIRONMENT = "https://api.magichour.ai"
6
- MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.9.0"
6
+ MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.9.2"
@@ -15,7 +15,7 @@ from os import getenv
15
15
  client = Client(token=getenv("API_TOKEN"))
16
16
  res = client.v1.ai_image_upscaler.create(
17
17
  assets={"image_file_path": "api-assets/id/1234.png"},
18
- scale_factor=123.45,
18
+ scale_factor=2.0,
19
19
  style={"enhancement": "Balanced"},
20
20
  name="Image Upscaler image",
21
21
  )
@@ -30,7 +30,7 @@ from os import getenv
30
30
  client = AsyncClient(token=getenv("API_TOKEN"))
31
31
  res = await client.v1.ai_image_upscaler.create(
32
32
  assets={"image_file_path": "api-assets/id/1234.png"},
33
- scale_factor=123.45,
33
+ scale_factor=2.0,
34
34
  style={"enhancement": "Balanced"},
35
35
  name="Image Upscaler image",
36
36
  )
@@ -51,7 +51,7 @@ class AiImageUpscalerClient:
51
51
  ```py
52
52
  client.v1.ai_image_upscaler.create(
53
53
  assets={"image_file_path": "api-assets/id/1234.png"},
54
- scale_factor=123.0,
54
+ scale_factor=2.0,
55
55
  style={"enhancement": "Balanced"},
56
56
  name="Image Upscaler image",
57
57
  )
@@ -117,7 +117,7 @@ class AsyncAiImageUpscalerClient:
117
117
  ```py
118
118
  await client.v1.ai_image_upscaler.create(
119
119
  assets={"image_file_path": "api-assets/id/1234.png"},
120
- scale_factor=123.0,
120
+ scale_factor=2.0,
121
121
  style={"enhancement": "Balanced"},
122
122
  name="Image Upscaler image",
123
123
  )
@@ -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). This field is required if `audio_source` is `file`
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 is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
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]
@@ -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 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 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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: magic_hour
3
- Version: 0.9.0
3
+ Version: 0.9.2
4
4
  Summary: Python SDK for Magic Hour API
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,5 +1,5 @@
1
1
  magic_hour/__init__.py,sha256=9mcpfN52bfc0cw9wEz7dXOVpOsUuGmVdqFQ79NdnGYU,203
2
- magic_hour/client.py,sha256=2UhLa0mDgXsr5PQuPT5DUgwvXBVrwV1GskWUy5nKrr8,2014
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=_xdCKv0GDzVkNWjD9jo1IZldOe0sB9enstL5xrSwbuw,167
12
+ magic_hour/environment.py,sha256=r1VN7NItHfQjh_C3ta4-Bg2Yk31hHylPGwrQftsPtnk,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
@@ -20,9 +20,9 @@ magic_hour/resources/v1/ai_headshot_generator/client.py,sha256=5eh9BzhlLMzQKbTfC
20
20
  magic_hour/resources/v1/ai_image_generator/README.md,sha256=TWC2PMVr3owH5tg8G6g14tiWt8pw5wQVv-p-5wRZXEw,742
21
21
  magic_hour/resources/v1/ai_image_generator/__init__.py,sha256=qZws7N5CALYAbnIUc2ERV8Cy-QJmHcJ9tU7W-epEnaQ,142
22
22
  magic_hour/resources/v1/ai_image_generator/client.py,sha256=wGu1Y9r1FtJOLEXrHtuCbtWV-QZ-LwS5D64MK5vLwB4,4442
23
- magic_hour/resources/v1/ai_image_upscaler/README.md,sha256=YBAkjSsjqro8QeBZiUphh1DVnTFNzRD0jPTU-fkEAJk,883
23
+ magic_hour/resources/v1/ai_image_upscaler/README.md,sha256=MNmxGtfnow27ukASpD5GC_JTMg5c9WF6VvCZktteQI4,877
24
24
  magic_hour/resources/v1/ai_image_upscaler/__init__.py,sha256=9b1-2XfnAVa4qE3S-4WL8vN3wuqLkUuHKjdl_km8hUc,138
25
- magic_hour/resources/v1/ai_image_upscaler/client.py,sha256=8rxcOCfoYkKVlsaGGw1PtJiYvTc6CKLTaDKTsyptLvg,4513
25
+ magic_hour/resources/v1/ai_image_upscaler/client.py,sha256=7-RGUlnD4TS7j0ZPD7PcBPjXaf4WZ0kauhrG7hGLUzc,4509
26
26
  magic_hour/resources/v1/ai_photo_editor/README.md,sha256=H5mahQ4cU15c_ISYSxIwBCx4pROxUtaOSseZCq2ZcF4,1434
27
27
  magic_hour/resources/v1/ai_photo_editor/__init__.py,sha256=RPG6WaL2KN_DmgrtxImA_jNnEDMm-Ku2o2m2EnNwxts,130
28
28
  magic_hour/resources/v1/ai_photo_editor/client.py,sha256=9b29HjZuEkZG0YAx-ejix4umYT0AO3HERHGkdUiV-As,6027
@@ -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=kUsZTgwRo5a9y4_nyyyrrs9FN8EtWcVk6CkGObbxBhE,1821
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
@@ -123,9 +123,9 @@ magic_hour/types/params/post_v1_lip_sync_body_assets.py,sha256=taDZlsw2R6IW3g6OQ
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=Z8xgz9oZRjT_TuHF4XUifGuwkxPS4HrBUocHaf8Itfo,1463
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.9.0.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
129
- magic_hour-0.9.0.dist-info/METADATA,sha256=kihoXXm8ylyteG3-QwU51ptoduSO5AUKzlNIVEBTZeo,4654
130
- magic_hour-0.9.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
131
- magic_hour-0.9.0.dist-info/RECORD,,
128
+ magic_hour-0.9.2.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
129
+ magic_hour-0.9.2.dist-info/METADATA,sha256=_jwF1_6OLgS2ONMkN0QOieS_YqXT5cnJhP5kA25BAIU,4654
130
+ magic_hour-0.9.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
131
+ magic_hour-0.9.2.dist-info/RECORD,,