magic_hour 0.8.1__py3-none-any.whl → 0.8.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.

@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: magic_hour
3
- Version: 0.8.1
4
- Summary:
3
+ Version: 0.8.2
4
+ Summary: Python SDK for Magic Hour API
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
7
7
  Classifier: Programming Language :: Python :: 3.8
@@ -16,123 +16,117 @@ Requires-Dist: pydantic (>=2.5.0,<3.0.0)
16
16
  Requires-Dist: typing_extensions (>=4.0.0,<5.0.0)
17
17
  Description-Content-Type: text/markdown
18
18
 
19
+ # Magic Hour Python SDK
19
20
 
20
- # Magic Hour API Python SDK
21
+ ![PyPI - Version](https://img.shields.io/pypi/v/magic_hour)
21
22
 
22
- ## Overview
23
-
24
- # Introduction
25
-
26
- Magic Hour provides an API (beta) that can be integrated into your own application to generate videos using AI.
23
+ Magic Hour provides an API (beta) that can be integrated into your own application to generate videos and images using AI.
27
24
 
28
25
  Webhook documentation can be found [here](https://magichour.ai/docs/webhook).
29
26
 
30
27
  If you have any questions, please reach out to us via [discord](https://discord.gg/JX5rgsZaJp).
31
28
 
32
- # Authentication
33
-
34
- Every request requires an API key.
35
-
36
- To get started, first generate your API key [here](https://magichour.ai/settings/developer).
37
-
38
- Then, add the `Authorization` header to the request.
29
+ ## Install
39
30
 
40
- | Key | Value |
41
- |-|-|
42
- | Authorization | Bearer mhk_live_apikey |
31
+ ```
32
+ pip install magic_hour
33
+ ```
43
34
 
44
- > **Warning**: any API call that renders a video will utilize frames in your account.
35
+ ## Usage
45
36
 
37
+ Initialize the client
46
38
 
47
39
  ### Synchronous Client
48
40
 
49
41
  ```python
50
42
  from magic_hour import Client
51
- from os import getenv
52
43
 
53
- client = Client(token=getenv("API_TOKEN"))
44
+ # generate your API Key at https://magichour.ai/developer
45
+ client = Client(token="my api key")
54
46
  ```
55
47
 
56
48
  ### Asynchronous Client
57
49
 
58
50
  ```python
59
51
  from magic_hour import AsyncClient
60
- from os import getenv
61
52
 
62
- client = AsyncClient(token=getenv("API_TOKEN"))
53
+ # generate your API Key at https://magichour.ai/developer
54
+ client = AsyncClient(token="my api key")
63
55
  ```
64
56
 
57
+ > **Warning**: any API call that renders a video will utilize frames in your account.
58
+
65
59
  ## Module Documentation and Snippets
66
60
 
67
61
  ### [v1.ai_clothes_changer](magic_hour/resources/v1/ai_clothes_changer/README.md)
68
62
 
69
- * [create](magic_hour/resources/v1/ai_clothes_changer/README.md#create) - AI Clothes Changer
63
+ - [create](magic_hour/resources/v1/ai_clothes_changer/README.md#create) - AI Clothes Changer
70
64
 
71
65
  ### [v1.ai_headshot_generator](magic_hour/resources/v1/ai_headshot_generator/README.md)
72
66
 
73
- * [create](magic_hour/resources/v1/ai_headshot_generator/README.md#create) - AI Headshots
67
+ - [create](magic_hour/resources/v1/ai_headshot_generator/README.md#create) - AI Headshots
74
68
 
75
69
  ### [v1.ai_image_generator](magic_hour/resources/v1/ai_image_generator/README.md)
76
70
 
77
- * [create](magic_hour/resources/v1/ai_image_generator/README.md#create) - AI Images
71
+ - [create](magic_hour/resources/v1/ai_image_generator/README.md#create) - AI Images
78
72
 
79
73
  ### [v1.ai_image_upscaler](magic_hour/resources/v1/ai_image_upscaler/README.md)
80
74
 
81
- * [create](magic_hour/resources/v1/ai_image_upscaler/README.md#create) - AI Image Upscaler
75
+ - [create](magic_hour/resources/v1/ai_image_upscaler/README.md#create) - AI Image Upscaler
82
76
 
83
77
  ### [v1.ai_photo_editor](magic_hour/resources/v1/ai_photo_editor/README.md)
84
78
 
85
- * [create](magic_hour/resources/v1/ai_photo_editor/README.md#create) - AI Photo Editor
79
+ - [create](magic_hour/resources/v1/ai_photo_editor/README.md#create) - AI Photo Editor
86
80
 
87
81
  ### [v1.ai_qr_code_generator](magic_hour/resources/v1/ai_qr_code_generator/README.md)
88
82
 
89
- * [create](magic_hour/resources/v1/ai_qr_code_generator/README.md#create) - AI QR Code
83
+ - [create](magic_hour/resources/v1/ai_qr_code_generator/README.md#create) - AI QR Code
90
84
 
91
85
  ### [v1.animation](magic_hour/resources/v1/animation/README.md)
92
86
 
93
- * [create](magic_hour/resources/v1/animation/README.md#create) - Animation
87
+ - [create](magic_hour/resources/v1/animation/README.md#create) - Animation
94
88
 
95
89
  ### [v1.face_swap](magic_hour/resources/v1/face_swap/README.md)
96
90
 
97
- * [create](magic_hour/resources/v1/face_swap/README.md#create) - Face Swap video
91
+ - [create](magic_hour/resources/v1/face_swap/README.md#create) - Face Swap video
98
92
 
99
93
  ### [v1.face_swap_photo](magic_hour/resources/v1/face_swap_photo/README.md)
100
94
 
101
- * [create](magic_hour/resources/v1/face_swap_photo/README.md#create) - Face Swap Photo
95
+ - [create](magic_hour/resources/v1/face_swap_photo/README.md#create) - Face Swap Photo
102
96
 
103
97
  ### [v1.files.upload_urls](magic_hour/resources/v1/files/upload_urls/README.md)
104
98
 
105
- * [create](magic_hour/resources/v1/files/upload_urls/README.md#create) - Generate asset upload urls
99
+ - [create](magic_hour/resources/v1/files/upload_urls/README.md#create) - Generate asset upload urls
106
100
 
107
101
  ### [v1.image_background_remover](magic_hour/resources/v1/image_background_remover/README.md)
108
102
 
109
- * [create](magic_hour/resources/v1/image_background_remover/README.md#create) - Image Background Remover
103
+ - [create](magic_hour/resources/v1/image_background_remover/README.md#create) - Image Background Remover
110
104
 
111
105
  ### [v1.image_projects](magic_hour/resources/v1/image_projects/README.md)
112
106
 
113
- * [delete](magic_hour/resources/v1/image_projects/README.md#delete) - Delete image
114
- * [get](magic_hour/resources/v1/image_projects/README.md#get) - Get image details
107
+ - [delete](magic_hour/resources/v1/image_projects/README.md#delete) - Delete image
108
+ - [get](magic_hour/resources/v1/image_projects/README.md#get) - Get image details
115
109
 
116
110
  ### [v1.image_to_video](magic_hour/resources/v1/image_to_video/README.md)
117
111
 
118
- * [create](magic_hour/resources/v1/image_to_video/README.md#create) - Image-to-Video
112
+ - [create](magic_hour/resources/v1/image_to_video/README.md#create) - Image-to-Video
119
113
 
120
114
  ### [v1.lip_sync](magic_hour/resources/v1/lip_sync/README.md)
121
115
 
122
- * [create](magic_hour/resources/v1/lip_sync/README.md#create) - Lip Sync
116
+ - [create](magic_hour/resources/v1/lip_sync/README.md#create) - Lip Sync
123
117
 
124
118
  ### [v1.text_to_video](magic_hour/resources/v1/text_to_video/README.md)
125
119
 
126
- * [create](magic_hour/resources/v1/text_to_video/README.md#create) - Text-to-Video
120
+ - [create](magic_hour/resources/v1/text_to_video/README.md#create) - Text-to-Video
127
121
 
128
122
  ### [v1.video_projects](magic_hour/resources/v1/video_projects/README.md)
129
123
 
130
- * [delete](magic_hour/resources/v1/video_projects/README.md#delete) - Delete video
131
- * [get](magic_hour/resources/v1/video_projects/README.md#get) - Get video details
124
+ - [delete](magic_hour/resources/v1/video_projects/README.md#delete) - Delete video
125
+ - [get](magic_hour/resources/v1/video_projects/README.md#get) - Get video details
132
126
 
133
127
  ### [v1.video_to_video](magic_hour/resources/v1/video_to_video/README.md)
134
128
 
135
- * [create](magic_hour/resources/v1/video_to_video/README.md#create) - Video-to-Video
129
+ - [create](magic_hour/resources/v1/video_to_video/README.md#create) - Video-to-Video
136
130
 
137
131
  <!-- MODULE DOCS END -->
138
132
 
@@ -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.1.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
129
- magic_hour-0.8.1.dist-info/METADATA,sha256=oa0gO6dLHnrVJBEvPZPgJXWlt9iKrVCoLtGr_thKa-w,4683
130
- magic_hour-0.8.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
131
- magic_hour-0.8.1.dist-info/RECORD,,
128
+ magic_hour-0.8.2.dist-info/LICENSE,sha256=F3fxj7JXPgB2K0uj8YXRsVss4u-Dgt_-U3V4VXsivNI,1070
129
+ magic_hour-0.8.2.dist-info/METADATA,sha256=xNV74ROJv9owXnY6vZ0mArNRtB1PJ8G8QnCGSE7IwUM,4614
130
+ magic_hour-0.8.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
131
+ magic_hour-0.8.2.dist-info/RECORD,,