magic_hour 0.8.3__py3-none-any.whl → 0.8.4__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,8 +1,8 @@
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
5
+ from magic_hour.resources.v1 import AsyncV1Client, V1Client
6
6
  from magic_hour.core import AsyncBaseClient, AuthBearer, SyncBaseClient
7
7
 
8
8
 
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.8.3"
6
+ MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.8.4"
@@ -14,7 +14,7 @@ from os import getenv
14
14
 
15
15
  client = Client(token=getenv("API_TOKEN"))
16
16
  res = client.v1.ai_headshot_generator.create(
17
- assets={"image_file_path": "image/id/1234.png"}, name="Ai Headshot image"
17
+ assets={"image_file_path": "api-assets/id/1234.png"}, name="Ai Headshot image"
18
18
  )
19
19
  ```
20
20
 
@@ -26,6 +26,6 @@ from os import getenv
26
26
 
27
27
  client = AsyncClient(token=getenv("API_TOKEN"))
28
28
  res = await client.v1.ai_headshot_generator.create(
29
- assets={"image_file_path": "image/id/1234.png"}, name="Ai Headshot image"
29
+ assets={"image_file_path": "api-assets/id/1234.png"}, name="Ai Headshot image"
30
30
  )
31
31
  ```
@@ -46,7 +46,8 @@ class AiHeadshotGeneratorClient:
46
46
  Examples:
47
47
  ```py
48
48
  client.v1.ai_headshot_generator.create(
49
- assets={"image_file_path": "image/id/1234.png"}, name="Ai Headshot image"
49
+ assets={"image_file_path": "api-assets/id/1234.png"},
50
+ name="Ai Headshot image",
50
51
  )
51
52
  ```
52
53
 
@@ -100,7 +101,8 @@ class AsyncAiHeadshotGeneratorClient:
100
101
  Examples:
101
102
  ```py
102
103
  await client.v1.ai_headshot_generator.create(
103
- assets={"image_file_path": "image/id/1234.png"}, name="Ai Headshot image"
104
+ assets={"image_file_path": "api-assets/id/1234.png"},
105
+ name="Ai Headshot image",
104
106
  )
105
107
  ```
106
108
 
@@ -14,7 +14,7 @@ from os import getenv
14
14
 
15
15
  client = Client(token=getenv("API_TOKEN"))
16
16
  res = client.v1.ai_image_upscaler.create(
17
- assets={"image_file_path": "image/id/1234.png"},
17
+ assets={"image_file_path": "api-assets/id/1234.png"},
18
18
  scale_factor=123.45,
19
19
  style={"enhancement": "Balanced"},
20
20
  name="Image Upscaler image",
@@ -29,7 +29,7 @@ from os import getenv
29
29
 
30
30
  client = AsyncClient(token=getenv("API_TOKEN"))
31
31
  res = await client.v1.ai_image_upscaler.create(
32
- assets={"image_file_path": "image/id/1234.png"},
32
+ assets={"image_file_path": "api-assets/id/1234.png"},
33
33
  scale_factor=123.45,
34
34
  style={"enhancement": "Balanced"},
35
35
  name="Image Upscaler image",
@@ -50,7 +50,7 @@ class AiImageUpscalerClient:
50
50
  Examples:
51
51
  ```py
52
52
  client.v1.ai_image_upscaler.create(
53
- assets={"image_file_path": "image/id/1234.png"},
53
+ assets={"image_file_path": "api-assets/id/1234.png"},
54
54
  scale_factor=123.0,
55
55
  style={"enhancement": "Balanced"},
56
56
  name="Image Upscaler image",
@@ -116,7 +116,7 @@ class AsyncAiImageUpscalerClient:
116
116
  Examples:
117
117
  ```py
118
118
  await client.v1.ai_image_upscaler.create(
119
- assets={"image_file_path": "image/id/1234.png"},
119
+ assets={"image_file_path": "api-assets/id/1234.png"},
120
120
  scale_factor=123.0,
121
121
  style={"enhancement": "Balanced"},
122
122
  name="Image Upscaler image",
@@ -14,7 +14,8 @@ from os import getenv
14
14
 
15
15
  client = Client(token=getenv("API_TOKEN"))
16
16
  res = client.v1.image_background_remover.create(
17
- assets={"image_file_path": "image/id/1234.png"}, name="Background Remover image"
17
+ assets={"image_file_path": "api-assets/id/1234.png"},
18
+ name="Background Remover image",
18
19
  )
19
20
  ```
20
21
 
@@ -26,6 +27,7 @@ from os import getenv
26
27
 
27
28
  client = AsyncClient(token=getenv("API_TOKEN"))
28
29
  res = await client.v1.image_background_remover.create(
29
- assets={"image_file_path": "image/id/1234.png"}, name="Background Remover image"
30
+ assets={"image_file_path": "api-assets/id/1234.png"},
31
+ name="Background Remover image",
30
32
  )
31
33
  ```
@@ -46,7 +46,7 @@ class ImageBackgroundRemoverClient:
46
46
  Examples:
47
47
  ```py
48
48
  client.v1.image_background_remover.create(
49
- assets={"image_file_path": "image/id/1234.png"},
49
+ assets={"image_file_path": "api-assets/id/1234.png"},
50
50
  name="Background Remover image",
51
51
  )
52
52
  ```
@@ -101,7 +101,7 @@ class AsyncImageBackgroundRemoverClient:
101
101
  Examples:
102
102
  ```py
103
103
  await client.v1.image_background_remover.create(
104
- assets={"image_file_path": "image/id/1234.png"},
104
+ assets={"image_file_path": "api-assets/id/1234.png"},
105
105
  name="Background Remover image",
106
106
  )
107
107
  ```
@@ -9,7 +9,7 @@ class PostV1AiClothesChangerBodyAssets(typing_extensions.TypedDict):
9
9
 
10
10
  garment_file_path: typing_extensions.Required[str]
11
11
  """
12
- The image of the outfit. This value can be 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.
12
+ The image of the outfit. 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..
13
13
  """
14
14
 
15
15
  garment_type: typing_extensions.Required[
@@ -18,7 +18,7 @@ class PostV1AiClothesChangerBodyAssets(typing_extensions.TypedDict):
18
18
 
19
19
  person_file_path: typing_extensions.Required[str]
20
20
  """
21
- The image with the person. This value can be 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.
21
+ The image with the person. 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..
22
22
  """
23
23
 
24
24
 
@@ -9,7 +9,7 @@ class PostV1AiHeadshotGeneratorBodyAssets(typing_extensions.TypedDict):
9
9
 
10
10
  image_file_path: typing_extensions.Required[str]
11
11
  """
12
- The image used to generate the headshot. This image must contain one detectable face. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
12
+ The image used to generate the headshot. This image must contain one detectable face. 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.
13
13
  """
14
14
 
15
15
 
@@ -9,7 +9,7 @@ class PostV1AiImageUpscalerBodyAssets(typing_extensions.TypedDict):
9
9
 
10
10
  image_file_path: typing_extensions.Required[str]
11
11
  """
12
- The image to upscale. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
12
+ The image to upscale. 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.
13
13
  """
14
14
 
15
15
 
@@ -9,7 +9,7 @@ class PostV1ImageBackgroundRemoverBodyAssets(typing_extensions.TypedDict):
9
9
 
10
10
  image_file_path: typing_extensions.Required[str]
11
11
  """
12
- The image used to generate the image. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
12
+ The image used to generate the image. 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.
13
13
  """
14
14
 
15
15
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: magic_hour
3
- Version: 0.8.3
3
+ Version: 0.8.4
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=Aa4NkxvM4-bGnEqDT9vIFSNZ2kgrrkq9T2UH9ooJ-wg,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,20 +9,20 @@ 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=gwePWRvEN7uiSigUI3KemZat9I5A-lmpPAHFzWAe00c,167
12
+ magic_hour/environment.py,sha256=IkQFqdrW6aQJ67D8c-KSRGmaUVaOI8A7593ICCC2VX4,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
16
16
  magic_hour/resources/v1/ai_clothes_changer/client.py,sha256=8SmSk7N_wkrUEFlK57wItp2TMgGaTmrKlYAlmZXdM-I,3995
17
- magic_hour/resources/v1/ai_headshot_generator/README.md,sha256=vTUtB2_Nst8QZlDCH2wwKarQQ-Cm9sn-092kGH7GjGg,695
17
+ magic_hour/resources/v1/ai_headshot_generator/README.md,sha256=CWihzwUuDVoLBItSDJKGBW1EQthz2REmkLkaaA68yao,705
18
18
  magic_hour/resources/v1/ai_headshot_generator/__init__.py,sha256=4WZ3jfrL2yPhQaPalMJrUEykwUoF3KBtop2VJEij-0s,154
19
- magic_hour/resources/v1/ai_headshot_generator/client.py,sha256=G8ZV2JcwX0YWli1PT99sg72vMQKfuT0yw6RGJEYZDFk,3625
19
+ magic_hour/resources/v1/ai_headshot_generator/client.py,sha256=5eh9BzhlLMzQKbTfCiIkBRJSD4Qll__SnU-l0fVRj-U,3661
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=Gz6XhU7YO4EO1y70eBiAyKlL1z5T3p2mch1CBtMI41g,873
23
+ magic_hour/resources/v1/ai_image_upscaler/README.md,sha256=YBAkjSsjqro8QeBZiUphh1DVnTFNzRD0jPTU-fkEAJk,883
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=anbZE9JnSYEbr3Ln8h_VVfOuY2Uqy1yJR5SKvQa71o4,4503
25
+ magic_hour/resources/v1/ai_image_upscaler/client.py,sha256=8rxcOCfoYkKVlsaGGw1PtJiYvTc6CKLTaDKTsyptLvg,4513
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
@@ -44,9 +44,9 @@ magic_hour/resources/v1/files/client.py,sha256=7cBuncobIE3wIDrU9kxDXFzuA_LI12AOU
44
44
  magic_hour/resources/v1/files/upload_urls/README.md,sha256=SG5h0iWZNWoi5FpRI1iBOo2_Gmc3D30ynwC0o26XCyQ,1601
45
45
  magic_hour/resources/v1/files/upload_urls/__init__.py,sha256=hRp0s_emx-wib7z42V4L9VzYR9MQ3hnmS5bNv4QtfFM,118
46
46
  magic_hour/resources/v1/files/upload_urls/client.py,sha256=iKzXLUyKafQoaSv1rwFqdRBZqi3Zzi572a0IJVDKrmc,5297
47
- magic_hour/resources/v1/image_background_remover/README.md,sha256=U1mho9NCQLbYgL0WsUxLgqxxSpZqGzl2RONR2cwHRgc,733
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
- magic_hour/resources/v1/image_background_remover/client.py,sha256=0eUSR5tWSKl5Hc7gp5XPzWBG-Vt7-_0pDjkfcePKO4M,3751
49
+ magic_hour/resources/v1/image_background_remover/client.py,sha256=TeK6XdMzdWxN4KeQVIleKGTYfkWLJPKn6j5B7SZlbtM,3761
50
50
  magic_hour/resources/v1/image_projects/README.md,sha256=S7r_5dtF4Ggfh_mIbEEtFLFa1CdOFSKoMr2JIS64hb4,1589
51
51
  magic_hour/resources/v1/image_projects/__init__.py,sha256=oBlV4e5IVYe8SclhoEy2VOYB53kKP2DORXwcztAwU3E,130
52
52
  magic_hour/resources/v1/image_projects/client.py,sha256=M6MwgQokexGimn9aZn4bQNKSMBtDia44BNVwIlw9VSE,5539
@@ -91,13 +91,13 @@ magic_hour/types/models/post_v1_text_to_video_response.py,sha256=GJM5dSpXFZMQL-D
91
91
  magic_hour/types/models/post_v1_video_to_video_response.py,sha256=vZmfR3YnvVn6uLNJQax1iVs1o0nkHqabUEgEM5C0xn4,712
92
92
  magic_hour/types/params/__init__.py,sha256=Jhjcz5AamCr5Uv5YK1PStOOsYlFTwzzhd1rPvSAcmz8,7225
93
93
  magic_hour/types/params/post_v1_ai_clothes_changer_body.py,sha256=Bbj8EeRMWCnogOhkJ7PiKGlwa6_Jqde1uzU5HTgJ6X4,988
94
- magic_hour/types/params/post_v1_ai_clothes_changer_body_assets.py,sha256=X5TNV6pQEVk__tQjlicaGxJZUzJjMZH-00NHrTfwBHw,1433
94
+ magic_hour/types/params/post_v1_ai_clothes_changer_body_assets.py,sha256=KVUTyMBLsddJypIF60emDlUhI2dPNA0x1CFXRFt0uM4,1449
95
95
  magic_hour/types/params/post_v1_ai_headshot_generator_body.py,sha256=-HDQNE7hg45EPQVBYs-144l5pEjhHZeXlHSf2g7wlYY,1014
96
- magic_hour/types/params/post_v1_ai_headshot_generator_body_assets.py,sha256=lmUjgThWCfZamQMh_EtuEcXyJWjWAhmmDHi2ZyAV2lA,833
96
+ magic_hour/types/params/post_v1_ai_headshot_generator_body_assets.py,sha256=Zs8ADjqKExW2TIGOeyKWCdD_wAkDCumX9DHOGcYq4ks,875
97
97
  magic_hour/types/params/post_v1_ai_image_generator_body.py,sha256=R1Soif6cetbQQDAzEBjhSOjYb0InZyBYpg8xJ8yGAeY,1370
98
98
  magic_hour/types/params/post_v1_ai_image_generator_body_style.py,sha256=vU83w7LRyQDXFgsS9-Q7W1HZ7Gz9pQNYFxAQCVwe-KY,613
99
99
  magic_hour/types/params/post_v1_ai_image_upscaler_body.py,sha256=KohjidTxMB4_JBzO4QAicfkNX7iv6zi7qqr4KLRmfcE,1483
100
- magic_hour/types/params/post_v1_ai_image_upscaler_body_assets.py,sha256=g-mFTlV9oBOWQcLb1k3xbh8UqIqxcZAhp9c2B6-M9Cs,752
100
+ magic_hour/types/params/post_v1_ai_image_upscaler_body_assets.py,sha256=IgyUbwD4ygjvDyc2hjX-cQsxY-kjFSZ2UVacxgIM11A,794
101
101
  magic_hour/types/params/post_v1_ai_image_upscaler_body_style.py,sha256=RgQT3tigTxb5-QDLbpIE_nzVdUHdHuqv_eUhKVuyY5g,985
102
102
  magic_hour/types/params/post_v1_ai_photo_editor_body.py,sha256=ZccSuSVOmtH-E-r6kIjFFk0xbcNlEfBafzuDyS9CuX4,1912
103
103
  magic_hour/types/params/post_v1_ai_photo_editor_body_assets.py,sha256=U96Iobt-UHhdh8EVvWcHU3wLkrtrx1t-UNZtMdD2rCM,808
@@ -114,7 +114,7 @@ magic_hour/types/params/post_v1_face_swap_photo_body_assets.py,sha256=HZtyTcPZWG
114
114
  magic_hour/types/params/post_v1_files_upload_urls_body.py,sha256=njjElsiBXMs_qVij4hx-YdguMFZQqaVqhtYGOr2hAlo,799
115
115
  magic_hour/types/params/post_v1_files_upload_urls_body_items_item.py,sha256=bKZAxXRC_ShAZJJe8iF8Y7ixWt7KSWD3G53vIt2qCQ0,964
116
116
  magic_hour/types/params/post_v1_image_background_remover_body.py,sha256=NGJj0iwpm-zD7iAV5jkuroAHtD9PtcHKGsFykTzQ__Y,1045
117
- magic_hour/types/params/post_v1_image_background_remover_body_assets.py,sha256=bU0EfanIalhfzH602FLuIWpJaWj1qiiDVsKzPQjoEgE,798
117
+ magic_hour/types/params/post_v1_image_background_remover_body_assets.py,sha256=ILA6p3oEM_kMwXXunnDI4bvECscS6Ugza2awenL3dMk,840
118
118
  magic_hour/types/params/post_v1_image_to_video_body.py,sha256=r7xgMOKA8mKS_btf0glgEH4bkfsUwhXLBhqhJ6tTafM,2014
119
119
  magic_hour/types/params/post_v1_image_to_video_body_assets.py,sha256=hE8_EyWCAG6Lcw3JoUbNVa48B6AbNmyTO5CMH96FhqQ,755
120
120
  magic_hour/types/params/post_v1_image_to_video_body_style.py,sha256=CnefpSz9teb3t_Ui3rf_B4Kq3ZtekVIkhpjL9a-nh6c,645
@@ -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=INe1iMyS-xhj00xO7OymdqFrmgp1fWykDdLo_uoewVs,1456
127
127
  magic_hour/types/params/post_v1_video_to_video_body_style.py,sha256=RQWr8VJqipM4YmNwGCQXWf7XT7O8Y2hgqxRRH1Vh7Cs,5457
128
- magic_hour-0.8.3.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
129
- magic_hour-0.8.3.dist-info/METADATA,sha256=f68spk5_Pn3Xs7dGBxAw4anPL3JErpic8YcAnLY25OE,4654
130
- magic_hour-0.8.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
131
- magic_hour-0.8.3.dist-info/RECORD,,
128
+ magic_hour-0.8.4.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
129
+ magic_hour-0.8.4.dist-info/METADATA,sha256=6LhLIRQeSk_PtA3fjVZHN1Eu2ijPZwIr4Fp4SwtPIks,4654
130
+ magic_hour-0.8.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
131
+ magic_hour-0.8.4.dist-info/RECORD,,