magic_hour 0.9.1__py3-none-any.whl → 0.9.3__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/resources/v1/ai_image_upscaler/README.md +2 -2
- magic_hour/resources/v1/ai_image_upscaler/client.py +2 -2
- magic_hour/resources/v1/files/upload_urls/README.md +1 -1
- magic_hour/resources/v1/files/upload_urls/client.py +2 -2
- {magic_hour-0.9.1.dist-info → magic_hour-0.9.3.dist-info}/METADATA +1 -1
- {magic_hour-0.9.1.dist-info → magic_hour-0.9.3.dist-info}/RECORD +10 -10
- {magic_hour-0.9.1.dist-info → magic_hour-0.9.3.dist-info}/LICENSE +0 -0
- {magic_hour-0.9.1.dist-info → magic_hour-0.9.3.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.resources.v1 import AsyncV1Client, V1Client
|
|
4
5
|
from magic_hour.environment import Environment
|
|
5
6
|
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
|
@@ -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=
|
|
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=
|
|
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=
|
|
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=
|
|
120
|
+
scale_factor=2.0,
|
|
121
121
|
style={"enhancement": "Balanced"},
|
|
122
122
|
name="Image Upscaler image",
|
|
123
123
|
)
|
|
@@ -6,7 +6,7 @@ Create a list of urls used to upload the assets needed to generate a video. Each
|
|
|
6
6
|
|
|
7
7
|
Below is the list of valid extensions for each asset type:
|
|
8
8
|
|
|
9
|
-
- video: mp4, mov, webm
|
|
9
|
+
- video: mp4, m4v, mov, webm
|
|
10
10
|
- audio: mp3, mpeg, wav, aac, aiff, flac
|
|
11
11
|
- image: png, jpg, jpeg, webp, avif, jp2, tiff, bmp
|
|
12
12
|
|
|
@@ -27,7 +27,7 @@ class UploadUrlsClient:
|
|
|
27
27
|
|
|
28
28
|
Below is the list of valid extensions for each asset type:
|
|
29
29
|
|
|
30
|
-
- video: mp4, mov, webm
|
|
30
|
+
- video: mp4, m4v, mov, webm
|
|
31
31
|
- audio: mp3, mpeg, wav, aac, aiff, flac
|
|
32
32
|
- image: png, jpg, jpeg, webp, avif, jp2, tiff, bmp
|
|
33
33
|
|
|
@@ -93,7 +93,7 @@ class AsyncUploadUrlsClient:
|
|
|
93
93
|
|
|
94
94
|
Below is the list of valid extensions for each asset type:
|
|
95
95
|
|
|
96
|
-
- video: mp4, mov, webm
|
|
96
|
+
- video: mp4, m4v, mov, webm
|
|
97
97
|
- audio: mp3, mpeg, wav, aac, aiff, flac
|
|
98
98
|
- image: png, jpg, jpeg, webp, avif, jp2, tiff, bmp
|
|
99
99
|
|
|
@@ -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=2UhLa0mDgXsr5PQuPT5DUgwvXBVrwV1GskWUy5nKrr8,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=UPk4hchifaXp_W47nz38Dvv-A228cSWxi3EO1-8_4c0,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=
|
|
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=
|
|
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
|
|
@@ -41,9 +41,9 @@ magic_hour/resources/v1/face_swap_photo/__init__.py,sha256=NZEplYX5kDPL_0qY0Q5tu
|
|
|
41
41
|
magic_hour/resources/v1/face_swap_photo/client.py,sha256=w_Axxc58-EyvMYzzv4xLHNZyXfctMdGg_CeFUZSIgx0,4013
|
|
42
42
|
magic_hour/resources/v1/files/__init__.py,sha256=ucXmaXDdZqXfRhnnioJeQAXeRLzBDb44gTfWijrub28,98
|
|
43
43
|
magic_hour/resources/v1/files/client.py,sha256=7cBuncobIE3wIDrU9kxDXFzuA_LI12AOU5FKuvXx1TI,564
|
|
44
|
-
magic_hour/resources/v1/files/upload_urls/README.md,sha256=
|
|
44
|
+
magic_hour/resources/v1/files/upload_urls/README.md,sha256=NMlRR2mQxbVpAVx7sgCYW46-RuNlKVAYSNRNq8f_axU,1606
|
|
45
45
|
magic_hour/resources/v1/files/upload_urls/__init__.py,sha256=hRp0s_emx-wib7z42V4L9VzYR9MQ3hnmS5bNv4QtfFM,118
|
|
46
|
-
magic_hour/resources/v1/files/upload_urls/client.py,sha256=
|
|
46
|
+
magic_hour/resources/v1/files/upload_urls/client.py,sha256=CgwF8p_qGQiyrqdS_Ty80hmBNpb04WHzNWqgouDzrqc,5307
|
|
47
47
|
magic_hour/resources/v1/image_background_remover/README.md,sha256=98cs5SrY6Jo6_dKcD-Rk60kjo4KGJ3Z1ka7oqqrWhhw,753
|
|
48
48
|
magic_hour/resources/v1/image_background_remover/__init__.py,sha256=Vb_e8zKEh7bdrq0q1175DqyOd1ptPBUIfSKSLFPBVU4,166
|
|
49
49
|
magic_hour/resources/v1/image_background_remover/client.py,sha256=TeK6XdMzdWxN4KeQVIleKGTYfkWLJPKn6j5B7SZlbtM,3761
|
|
@@ -125,7 +125,7 @@ magic_hour/types/params/post_v1_text_to_video_body_style.py,sha256=8-zyz32Gz3qke
|
|
|
125
125
|
magic_hour/types/params/post_v1_video_to_video_body.py,sha256=dbazkWaGco73sSirtD-Q6vnLzF4BZa4Od87UTih1_-o,2914
|
|
126
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.
|
|
129
|
-
magic_hour-0.9.
|
|
130
|
-
magic_hour-0.9.
|
|
131
|
-
magic_hour-0.9.
|
|
128
|
+
magic_hour-0.9.3.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
|
|
129
|
+
magic_hour-0.9.3.dist-info/METADATA,sha256=BWkes17TXOOPoo8b7xh-2VOm2hvih4Nu5Cpa8olXNqM,4654
|
|
130
|
+
magic_hour-0.9.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
131
|
+
magic_hour-0.9.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|