magic_hour 0.32.0__tar.gz → 0.33.1__tar.gz

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.

Files changed (191) hide show
  1. {magic_hour-0.32.0 → magic_hour-0.33.1}/PKG-INFO +1 -1
  2. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/client.py +4 -2
  3. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/core/base_client.py +10 -4
  4. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/environment.py +1 -1
  5. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/image_background_remover/README.md +9 -3
  6. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/image_background_remover/client.py +8 -2
  7. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/image_to_video/README.md +2 -6
  8. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/image_to_video/client.py +0 -4
  9. magic_hour-0.33.1/magic_hour/types/params/v1_image_background_remover_create_body_assets.py +39 -0
  10. {magic_hour-0.32.0 → magic_hour-0.33.1}/pyproject.toml +1 -1
  11. magic_hour-0.32.0/magic_hour/types/params/v1_image_background_remover_create_body_assets.py +0 -28
  12. {magic_hour-0.32.0 → magic_hour-0.33.1}/LICENSE +0 -0
  13. {magic_hour-0.32.0 → magic_hour-0.33.1}/README.md +0 -0
  14. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/__init__.py +0 -0
  15. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/core/__init__.py +0 -0
  16. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/core/api_error.py +0 -0
  17. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/core/auth.py +0 -0
  18. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/core/binary_response.py +0 -0
  19. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/core/query.py +0 -0
  20. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/core/request.py +0 -0
  21. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/core/response.py +0 -0
  22. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/core/type_utils.py +0 -0
  23. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/core/utils.py +0 -0
  24. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/__init__.py +0 -0
  25. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_clothes_changer/README.md +0 -0
  26. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_clothes_changer/__init__.py +0 -0
  27. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_clothes_changer/client.py +0 -0
  28. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_face_editor/README.md +0 -0
  29. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_face_editor/__init__.py +0 -0
  30. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_face_editor/client.py +0 -0
  31. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_gif_generator/README.md +0 -0
  32. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_gif_generator/__init__.py +0 -0
  33. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_gif_generator/client.py +0 -0
  34. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_headshot_generator/README.md +0 -0
  35. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_headshot_generator/__init__.py +0 -0
  36. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_headshot_generator/client.py +0 -0
  37. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_image_editor/README.md +0 -0
  38. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_image_editor/__init__.py +0 -0
  39. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_image_editor/client.py +0 -0
  40. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_image_generator/README.md +0 -0
  41. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_image_generator/__init__.py +0 -0
  42. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_image_generator/client.py +0 -0
  43. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_image_upscaler/README.md +0 -0
  44. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_image_upscaler/__init__.py +0 -0
  45. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_image_upscaler/client.py +0 -0
  46. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_meme_generator/README.md +0 -0
  47. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_meme_generator/__init__.py +0 -0
  48. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_meme_generator/client.py +0 -0
  49. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_photo_editor/README.md +0 -0
  50. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_photo_editor/__init__.py +0 -0
  51. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_photo_editor/client.py +0 -0
  52. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_qr_code_generator/README.md +0 -0
  53. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_qr_code_generator/__init__.py +0 -0
  54. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_qr_code_generator/client.py +0 -0
  55. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_talking_photo/README.md +0 -0
  56. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_talking_photo/__init__.py +0 -0
  57. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/ai_talking_photo/client.py +0 -0
  58. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/animation/README.md +0 -0
  59. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/animation/__init__.py +0 -0
  60. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/animation/client.py +0 -0
  61. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/auto_subtitle_generator/README.md +0 -0
  62. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/auto_subtitle_generator/__init__.py +0 -0
  63. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/auto_subtitle_generator/client.py +0 -0
  64. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/client.py +0 -0
  65. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/face_detection/README.md +0 -0
  66. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/face_detection/__init__.py +0 -0
  67. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/face_detection/client.py +0 -0
  68. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/face_swap/README.md +0 -0
  69. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/face_swap/__init__.py +0 -0
  70. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/face_swap/client.py +0 -0
  71. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/face_swap_photo/README.md +0 -0
  72. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/face_swap_photo/__init__.py +0 -0
  73. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/face_swap_photo/client.py +0 -0
  74. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/files/__init__.py +0 -0
  75. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/files/client.py +0 -0
  76. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/files/upload_urls/README.md +0 -0
  77. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/files/upload_urls/__init__.py +0 -0
  78. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/files/upload_urls/client.py +0 -0
  79. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/image_background_remover/__init__.py +0 -0
  80. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/image_projects/README.md +0 -0
  81. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/image_projects/__init__.py +0 -0
  82. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/image_projects/client.py +0 -0
  83. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/image_to_video/__init__.py +0 -0
  84. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/lip_sync/README.md +0 -0
  85. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/lip_sync/__init__.py +0 -0
  86. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/lip_sync/client.py +0 -0
  87. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/photo_colorizer/README.md +0 -0
  88. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/photo_colorizer/__init__.py +0 -0
  89. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/photo_colorizer/client.py +0 -0
  90. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/text_to_video/README.md +0 -0
  91. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/text_to_video/__init__.py +0 -0
  92. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/text_to_video/client.py +0 -0
  93. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/video_projects/README.md +0 -0
  94. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/video_projects/__init__.py +0 -0
  95. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/video_projects/client.py +0 -0
  96. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/video_to_video/README.md +0 -0
  97. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/video_to_video/__init__.py +0 -0
  98. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/resources/v1/video_to_video/client.py +0 -0
  99. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/__init__.py +0 -0
  100. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_ai_clothes_changer_create_response.py +0 -0
  101. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_ai_face_editor_create_response.py +0 -0
  102. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_ai_gif_generator_create_response.py +0 -0
  103. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_ai_headshot_generator_create_response.py +0 -0
  104. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_ai_image_editor_create_response.py +0 -0
  105. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_ai_image_generator_create_response.py +0 -0
  106. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_ai_image_upscaler_create_response.py +0 -0
  107. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_ai_meme_generator_create_response.py +0 -0
  108. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_ai_photo_editor_create_response.py +0 -0
  109. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_ai_qr_code_generator_create_response.py +0 -0
  110. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_ai_talking_photo_create_response.py +0 -0
  111. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_animation_create_response.py +0 -0
  112. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_auto_subtitle_generator_create_response.py +0 -0
  113. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_face_detection_create_response.py +0 -0
  114. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_face_detection_get_response.py +0 -0
  115. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_face_detection_get_response_faces_item.py +0 -0
  116. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_face_swap_create_response.py +0 -0
  117. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_face_swap_photo_create_response.py +0 -0
  118. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_files_upload_urls_create_response.py +0 -0
  119. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_files_upload_urls_create_response_items_item.py +0 -0
  120. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_image_background_remover_create_response.py +0 -0
  121. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_image_projects_get_response.py +0 -0
  122. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_image_projects_get_response_downloads_item.py +0 -0
  123. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_image_projects_get_response_error.py +0 -0
  124. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_image_to_video_create_response.py +0 -0
  125. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_lip_sync_create_response.py +0 -0
  126. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_photo_colorizer_create_response.py +0 -0
  127. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_text_to_video_create_response.py +0 -0
  128. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_video_projects_get_response.py +0 -0
  129. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_video_projects_get_response_download.py +0 -0
  130. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_video_projects_get_response_downloads_item.py +0 -0
  131. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_video_projects_get_response_error.py +0 -0
  132. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/models/v1_video_to_video_create_response.py +0 -0
  133. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/__init__.py +0 -0
  134. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_clothes_changer_create_body.py +0 -0
  135. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_clothes_changer_create_body_assets.py +0 -0
  136. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_face_editor_create_body.py +0 -0
  137. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_face_editor_create_body_assets.py +0 -0
  138. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_face_editor_create_body_style.py +0 -0
  139. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_gif_generator_create_body.py +0 -0
  140. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_gif_generator_create_body_style.py +0 -0
  141. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_headshot_generator_create_body.py +0 -0
  142. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_headshot_generator_create_body_assets.py +0 -0
  143. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_headshot_generator_create_body_style.py +0 -0
  144. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_image_editor_create_body.py +0 -0
  145. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_image_editor_create_body_assets.py +0 -0
  146. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_image_editor_create_body_style.py +0 -0
  147. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_image_generator_create_body.py +0 -0
  148. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_image_generator_create_body_style.py +0 -0
  149. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_image_upscaler_create_body.py +0 -0
  150. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_image_upscaler_create_body_assets.py +0 -0
  151. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_image_upscaler_create_body_style.py +0 -0
  152. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_meme_generator_create_body.py +0 -0
  153. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_meme_generator_create_body_style.py +0 -0
  154. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_photo_editor_create_body.py +0 -0
  155. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_photo_editor_create_body_assets.py +0 -0
  156. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_photo_editor_create_body_style.py +0 -0
  157. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_qr_code_generator_create_body.py +0 -0
  158. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_qr_code_generator_create_body_style.py +0 -0
  159. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_talking_photo_create_body.py +0 -0
  160. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_talking_photo_create_body_assets.py +0 -0
  161. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_ai_talking_photo_create_body_style.py +0 -0
  162. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_animation_create_body.py +0 -0
  163. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_animation_create_body_assets.py +0 -0
  164. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_animation_create_body_style.py +0 -0
  165. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_auto_subtitle_generator_create_body.py +0 -0
  166. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_auto_subtitle_generator_create_body_assets.py +0 -0
  167. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_auto_subtitle_generator_create_body_style.py +0 -0
  168. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_auto_subtitle_generator_create_body_style_custom_config.py +0 -0
  169. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_face_detection_create_body.py +0 -0
  170. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_face_detection_create_body_assets.py +0 -0
  171. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_face_swap_create_body.py +0 -0
  172. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_face_swap_create_body_assets.py +0 -0
  173. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_face_swap_create_body_assets_face_mappings_item.py +0 -0
  174. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_face_swap_photo_create_body.py +0 -0
  175. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_face_swap_photo_create_body_assets.py +0 -0
  176. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_face_swap_photo_create_body_assets_face_mappings_item.py +0 -0
  177. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_files_upload_urls_create_body.py +0 -0
  178. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_files_upload_urls_create_body_items_item.py +0 -0
  179. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_image_background_remover_create_body.py +0 -0
  180. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_image_to_video_create_body.py +0 -0
  181. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_image_to_video_create_body_assets.py +0 -0
  182. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_image_to_video_create_body_style.py +0 -0
  183. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_lip_sync_create_body.py +0 -0
  184. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_lip_sync_create_body_assets.py +0 -0
  185. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_photo_colorizer_create_body.py +0 -0
  186. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_photo_colorizer_create_body_assets.py +0 -0
  187. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_text_to_video_create_body.py +0 -0
  188. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_text_to_video_create_body_style.py +0 -0
  189. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_video_to_video_create_body.py +0 -0
  190. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_video_to_video_create_body_assets.py +0 -0
  191. {magic_hour-0.32.0 → magic_hour-0.33.1}/magic_hour/types/params/v1_video_to_video_create_body_style.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: magic_hour
3
- Version: 0.32.0
3
+ Version: 0.33.1
4
4
  Summary: Python SDK for Magic Hour API
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -22,8 +22,9 @@ class Client:
22
22
  httpx_client=httpx.Client(timeout=timeout)
23
23
  if httpx_client is None
24
24
  else httpx_client,
25
+ auths={"bearerAuth": AuthBearer(token=token)},
25
26
  )
26
- self._base_client.register_auth("bearerAuth", AuthBearer(token=token))
27
+
27
28
  self.v1 = V1Client(base_client=self._base_client)
28
29
 
29
30
 
@@ -43,6 +44,7 @@ class AsyncClient:
43
44
  httpx_client=httpx.AsyncClient(timeout=timeout)
44
45
  if httpx_client is None
45
46
  else httpx_client,
47
+ auths={"bearerAuth": AuthBearer(token=token)},
46
48
  )
47
- self._base_client.register_auth("bearerAuth", AuthBearer(token=token))
49
+
48
50
  self.v1 = AsyncV1Client(base_client=self._base_client)
@@ -38,14 +38,18 @@ class BaseClient:
38
38
  _auths: Dictionary mapping auth provider IDs to AuthProvider instances
39
39
  """
40
40
 
41
- def __init__(self, base_url: Union[str, Dict[str, str]]):
41
+ def __init__(
42
+ self,
43
+ base_url: Union[str, Dict[str, str]],
44
+ auths: Optional[Dict[str, AuthProvider]] = None,
45
+ ):
42
46
  """Initialize the base client"""
43
47
  self._base_url = (
44
48
  base_url
45
49
  if isinstance(base_url, dict)
46
50
  else {_DEFAULT_SERVICE_NAME: base_url}
47
51
  )
48
- self._auths: Dict[str, AuthProvider] = {}
52
+ self._auths: Dict[str, AuthProvider] = auths or {}
49
53
 
50
54
  def register_auth(self, auth_id: str, provider: AuthProvider):
51
55
  """Register an authentication provider.
@@ -345,13 +349,14 @@ class SyncBaseClient(BaseClient):
345
349
  *,
346
350
  base_url: Union[str, Dict[str, str]],
347
351
  httpx_client: httpx.Client,
352
+ auths: Optional[Dict[str, AuthProvider]] = None,
348
353
  ):
349
354
  """Initialize the synchronous client.
350
355
 
351
356
  Args:
352
357
  httpx_client: Synchronous HTTPX client instance
353
358
  """
354
- super().__init__(base_url=base_url)
359
+ super().__init__(base_url=base_url, auths=auths)
355
360
  self.httpx_client = httpx_client
356
361
 
357
362
  def request(
@@ -488,13 +493,14 @@ class AsyncBaseClient(BaseClient):
488
493
  *,
489
494
  base_url: Union[str, Dict[str, str]],
490
495
  httpx_client: httpx.AsyncClient,
496
+ auths: Optional[Dict[str, AuthProvider]] = None,
491
497
  ):
492
498
  """Initialize the asynchronous client.
493
499
 
494
500
  Args:
495
501
  httpx_client: Asynchronous HTTPX client instance
496
502
  """
497
- super().__init__(base_url=base_url)
503
+ super().__init__(base_url=base_url, auths=auths)
498
504
  self.httpx_client = httpx_client
499
505
 
500
506
  async def request(
@@ -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.32.0"
9
+ MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.33.1"
10
10
 
11
11
 
12
12
  def _get_base_url(
@@ -9,7 +9,7 @@ Remove background from image. Each image costs 5 credits.
9
9
 
10
10
  | Parameter | Required | Description | Example |
11
11
  |-----------|:--------:|-------------|--------|
12
- | `assets` | ✓ | Provide the assets for background removal | `{"image_file_path": "api-assets/id/1234.png"}` |
12
+ | `assets` | ✓ | Provide the assets for background removal | `{"background_image_file_path": "api-assets/id/1234.png", "image_file_path": "api-assets/id/1234.png"}` |
13
13
  | `name` | ✗ | The name of image | `"Background Remover image"` |
14
14
 
15
15
  #### Synchronous Client
@@ -20,7 +20,10 @@ from os import getenv
20
20
 
21
21
  client = Client(token=getenv("API_TOKEN"))
22
22
  res = client.v1.image_background_remover.create(
23
- assets={"image_file_path": "api-assets/id/1234.png"},
23
+ assets={
24
+ "background_image_file_path": "api-assets/id/1234.png",
25
+ "image_file_path": "api-assets/id/1234.png",
26
+ },
24
27
  name="Background Remover image",
25
28
  )
26
29
 
@@ -34,7 +37,10 @@ from os import getenv
34
37
 
35
38
  client = AsyncClient(token=getenv("API_TOKEN"))
36
39
  res = await client.v1.image_background_remover.create(
37
- assets={"image_file_path": "api-assets/id/1234.png"},
40
+ assets={
41
+ "background_image_file_path": "api-assets/id/1234.png",
42
+ "image_file_path": "api-assets/id/1234.png",
43
+ },
38
44
  name="Background Remover image",
39
45
  )
40
46
 
@@ -46,7 +46,10 @@ class ImageBackgroundRemoverClient:
46
46
  Examples:
47
47
  ```py
48
48
  client.v1.image_background_remover.create(
49
- assets={"image_file_path": "api-assets/id/1234.png"},
49
+ assets={
50
+ "background_image_file_path": "api-assets/id/1234.png",
51
+ "image_file_path": "api-assets/id/1234.png",
52
+ },
50
53
  name="Background Remover image",
51
54
  )
52
55
  ```
@@ -100,7 +103,10 @@ class AsyncImageBackgroundRemoverClient:
100
103
  Examples:
101
104
  ```py
102
105
  await client.v1.image_background_remover.create(
103
- assets={"image_file_path": "api-assets/id/1234.png"},
106
+ assets={
107
+ "background_image_file_path": "api-assets/id/1234.png",
108
+ "image_file_path": "api-assets/id/1234.png",
109
+ },
104
110
  name="Background Remover image",
105
111
  )
106
112
  ```
@@ -14,11 +14,11 @@ Get more information about this mode at our [product page](https://magichour.ai/
14
14
  |-----------|:--------:|-------------|--------|
15
15
  | `assets` | ✓ | Provide the assets for image-to-video. | `{"image_file_path": "api-assets/id/1234.png"}` |
16
16
  | `end_seconds` | ✓ | The total duration of the output video in seconds. | `5.0` |
17
- | `height` | ✗ | This field does not affect the output video's resolution. The video's orientation will match that of the input image. It is retained solely for backward compatibility and will be deprecated in the future. | `960` |
17
+ | `height` | ✗ | This field does not affect the output video's resolution. The video's orientation will match that of the input image. It is retained solely for backward compatibility and will be deprecated in the future. | `123` |
18
18
  | `name` | ✗ | The name of video | `"Image To Video video"` |
19
19
  | `resolution` | ✗ | Controls the output video resolution. Defaults to `720p` if not specified. **Options:** - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds. - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds. - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. **Requires** `pro` or `business` tier. | `"1080p"` |
20
20
  | `style` | ✗ | Attributed used to dictate the style of the output | `{"prompt": "a dog running"}` |
21
- | `width` | ✗ | This field does not affect the output video's resolution. The video's orientation will match that of the input image. It is retained solely for backward compatibility and will be deprecated in the future. | `512` |
21
+ | `width` | ✗ | This field does not affect the output video's resolution. The video's orientation will match that of the input image. It is retained solely for backward compatibility and will be deprecated in the future. | `123` |
22
22
 
23
23
  #### Synchronous Client
24
24
 
@@ -30,9 +30,7 @@ client = Client(token=getenv("API_TOKEN"))
30
30
  res = client.v1.image_to_video.create(
31
31
  assets={"image_file_path": "api-assets/id/1234.png"},
32
32
  end_seconds=5.0,
33
- height=960,
34
33
  name="Image To Video video",
35
- width=512,
36
34
  )
37
35
 
38
36
  ```
@@ -47,9 +45,7 @@ client = AsyncClient(token=getenv("API_TOKEN"))
47
45
  res = await client.v1.image_to_video.create(
48
46
  assets={"image_file_path": "api-assets/id/1234.png"},
49
47
  end_seconds=5.0,
50
- height=960,
51
48
  name="Image To Video video",
52
- width=512,
53
49
  )
54
50
 
55
51
  ```
@@ -80,9 +80,7 @@ class ImageToVideoClient:
80
80
  client.v1.image_to_video.create(
81
81
  assets={"image_file_path": "api-assets/id/1234.png"},
82
82
  end_seconds=5.0,
83
- height=960,
84
83
  name="Image To Video video",
85
- width=512,
86
84
  )
87
85
  ```
88
86
  """
@@ -176,9 +174,7 @@ class AsyncImageToVideoClient:
176
174
  await client.v1.image_to_video.create(
177
175
  assets={"image_file_path": "api-assets/id/1234.png"},
178
176
  end_seconds=5.0,
179
- height=960,
180
177
  name="Image To Video video",
181
- width=512,
182
178
  )
183
179
  ```
184
180
  """
@@ -0,0 +1,39 @@
1
+ import pydantic
2
+ import typing
3
+ import typing_extensions
4
+
5
+
6
+ class V1ImageBackgroundRemoverCreateBodyAssets(typing_extensions.TypedDict):
7
+ """
8
+ Provide the assets for background removal
9
+ """
10
+
11
+ background_image_file_path: typing_extensions.NotRequired[str]
12
+ """
13
+ The image used as the new background for the image_file_path. This image will be resized to match the image in image_file_path. Please make sure the resolution between the images are similar.
14
+
15
+ This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
16
+ """
17
+
18
+ image_file_path: typing_extensions.Required[str]
19
+ """
20
+ The image to remove the background. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
21
+ """
22
+
23
+
24
+ class _SerializerV1ImageBackgroundRemoverCreateBodyAssets(pydantic.BaseModel):
25
+ """
26
+ Serializer for V1ImageBackgroundRemoverCreateBodyAssets handling case conversions
27
+ and file omissions as dictated by the API
28
+ """
29
+
30
+ model_config = pydantic.ConfigDict(
31
+ populate_by_name=True,
32
+ )
33
+
34
+ background_image_file_path: typing.Optional[str] = pydantic.Field(
35
+ alias="background_image_file_path", default=None
36
+ )
37
+ image_file_path: str = pydantic.Field(
38
+ alias="image_file_path",
39
+ )
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "magic_hour"
3
- version = "0.32.0"
3
+ version = "0.33.1"
4
4
  description = "Python SDK for Magic Hour API"
5
5
  readme = "README.md"
6
6
  authors = []
@@ -1,28 +0,0 @@
1
- import pydantic
2
- import typing_extensions
3
-
4
-
5
- class V1ImageBackgroundRemoverCreateBodyAssets(typing_extensions.TypedDict):
6
- """
7
- Provide the assets for background removal
8
- """
9
-
10
- image_file_path: typing_extensions.Required[str]
11
- """
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](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
13
- """
14
-
15
-
16
- class _SerializerV1ImageBackgroundRemoverCreateBodyAssets(pydantic.BaseModel):
17
- """
18
- Serializer for V1ImageBackgroundRemoverCreateBodyAssets handling case conversions
19
- and file omissions as dictated by the API
20
- """
21
-
22
- model_config = pydantic.ConfigDict(
23
- populate_by_name=True,
24
- )
25
-
26
- image_file_path: str = pydantic.Field(
27
- alias="image_file_path",
28
- )
File without changes
File without changes