magic_hour 0.36.2__tar.gz → 0.38.0__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.
- {magic_hour-0.36.2 → magic_hour-0.38.0}/PKG-INFO +2 -5
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/__init__.py +1 -1
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/client.py +1 -1
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/environment.py +1 -1
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_clothes_changer/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_face_editor/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_gif_generator/client.py +26 -11
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_headshot_generator/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_image_editor/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_image_generator/client.py +7 -7
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_image_upscaler/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_meme_generator/client.py +7 -7
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_photo_editor/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_qr_code_generator/client.py +7 -7
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_talking_photo/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/animation/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/auto_subtitle_generator/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/client.py +1 -1
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/face_detection/client.py +5 -5
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/face_swap/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/face_swap_photo/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/files/client.py +1 -1
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/files/upload_urls/client.py +2 -2
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/image_background_remover/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/image_projects/client.py +4 -4
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/image_to_video/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/lip_sync/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/photo_colorizer/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/text_to_video/client.py +7 -7
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/video_projects/client.py +4 -4
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/video_to_video/client.py +8 -8
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_gif_generator_create_body.py +10 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_talking_photo_create_body_style.py +4 -3
- {magic_hour-0.36.2 → magic_hour-0.38.0}/pyproject.toml +2 -5
- magic_hour-0.36.2/magic_hour/core/__init__.py +0 -50
- magic_hour-0.36.2/magic_hour/core/api_error.py +0 -56
- magic_hour-0.36.2/magic_hour/core/auth.py +0 -354
- magic_hour-0.36.2/magic_hour/core/base_client.py +0 -627
- magic_hour-0.36.2/magic_hour/core/binary_response.py +0 -23
- magic_hour-0.36.2/magic_hour/core/query.py +0 -124
- magic_hour-0.36.2/magic_hour/core/request.py +0 -162
- magic_hour-0.36.2/magic_hour/core/response.py +0 -297
- magic_hour-0.36.2/magic_hour/core/type_utils.py +0 -28
- magic_hour-0.36.2/magic_hour/core/utils.py +0 -55
- {magic_hour-0.36.2 → magic_hour-0.38.0}/LICENSE +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/helpers/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/helpers/download.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/helpers/logger.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_clothes_changer/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_clothes_changer/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_face_editor/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_face_editor/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_gif_generator/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_gif_generator/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_headshot_generator/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_headshot_generator/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_image_editor/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_image_editor/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_image_generator/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_image_generator/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_image_upscaler/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_image_upscaler/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_meme_generator/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_meme_generator/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_photo_editor/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_photo_editor/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_qr_code_generator/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_qr_code_generator/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_talking_photo/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_talking_photo/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/animation/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/animation/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/auto_subtitle_generator/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/auto_subtitle_generator/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/face_detection/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/face_detection/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/face_swap/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/face_swap/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/face_swap_photo/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/face_swap_photo/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/files/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/files/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/files/client_test.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/files/upload_urls/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/files/upload_urls/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/image_background_remover/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/image_background_remover/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/image_projects/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/image_projects/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/image_projects/client_test.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/image_to_video/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/image_to_video/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/lip_sync/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/lip_sync/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/photo_colorizer/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/photo_colorizer/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/text_to_video/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/text_to_video/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/video_projects/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/video_projects/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/video_projects/client_test.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/video_to_video/README.md +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/video_to_video/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_ai_clothes_changer_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_ai_face_editor_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_ai_gif_generator_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_ai_headshot_generator_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_ai_image_editor_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_ai_image_generator_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_ai_image_upscaler_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_ai_meme_generator_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_ai_photo_editor_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_ai_qr_code_generator_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_ai_talking_photo_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_animation_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_auto_subtitle_generator_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_face_detection_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_face_detection_get_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_face_detection_get_response_faces_item.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_face_swap_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_face_swap_photo_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_files_upload_urls_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_files_upload_urls_create_response_items_item.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_image_background_remover_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_image_projects_get_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_image_projects_get_response_downloads_item.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_image_projects_get_response_error.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_image_to_video_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_lip_sync_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_photo_colorizer_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_text_to_video_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_video_projects_get_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_video_projects_get_response_download.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_video_projects_get_response_downloads_item.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_video_projects_get_response_error.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/models/v1_video_to_video_create_response.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/__init__.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_clothes_changer_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_clothes_changer_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_clothes_changer_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_face_editor_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_face_editor_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_face_editor_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_face_editor_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_gif_generator_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_headshot_generator_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_headshot_generator_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_headshot_generator_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_headshot_generator_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_image_editor_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_image_editor_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_image_editor_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_image_editor_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_image_generator_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_image_generator_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_image_upscaler_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_image_upscaler_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_image_upscaler_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_image_upscaler_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_meme_generator_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_meme_generator_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_photo_editor_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_photo_editor_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_photo_editor_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_photo_editor_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_qr_code_generator_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_qr_code_generator_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_talking_photo_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_talking_photo_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_ai_talking_photo_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_animation_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_animation_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_animation_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_animation_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_auto_subtitle_generator_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_auto_subtitle_generator_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_auto_subtitle_generator_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_auto_subtitle_generator_create_body_style_custom_config.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_auto_subtitle_generator_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_detection_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_detection_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_detection_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_swap_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_swap_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_swap_create_body_assets_face_mappings_item.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_swap_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_swap_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_swap_generate_body_assets_face_mappings_item.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_swap_photo_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_swap_photo_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_swap_photo_create_body_assets_face_mappings_item.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_swap_photo_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_face_swap_photo_generate_body_assets_face_mappings_item.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_files_upload_urls_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_files_upload_urls_create_body_items_item.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_image_background_remover_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_image_background_remover_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_image_background_remover_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_image_to_video_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_image_to_video_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_image_to_video_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_image_to_video_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_lip_sync_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_lip_sync_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_lip_sync_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_photo_colorizer_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_photo_colorizer_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_photo_colorizer_generate_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_text_to_video_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_text_to_video_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_video_to_video_create_body.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_video_to_video_create_body_assets.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_video_to_video_create_body_style.py +0 -0
- {magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/types/params/v1_video_to_video_generate_body_assets.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: magic_hour
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.38.0
|
|
4
4
|
Summary: Python SDK for Magic Hour API
|
|
5
5
|
Requires-Python: >=3.8,<4.0
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -10,10 +10,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
-
Requires-Dist:
|
|
14
|
-
Requires-Dist: jsonpointer (>=3.0.0,<4.0.0)
|
|
15
|
-
Requires-Dist: pydantic (>=2.5.0,<3.0.0)
|
|
16
|
-
Requires-Dist: typing_extensions (>=4.0.0,<5.0.0)
|
|
13
|
+
Requires-Dist: make-api-request (>=0.1.3,<0.2.0)
|
|
17
14
|
Description-Content-Type: text/markdown
|
|
18
15
|
|
|
19
16
|
# Magic Hour Python SDK
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import httpx
|
|
2
2
|
import typing
|
|
3
3
|
|
|
4
|
-
from magic_hour.core import AsyncBaseClient, AuthBearer, SyncBaseClient
|
|
5
4
|
from magic_hour.environment import Environment, _get_base_url
|
|
6
5
|
from magic_hour.resources.v1 import AsyncV1Client, V1Client
|
|
6
|
+
from make_api_request import AsyncBaseClient, AuthBearer, SyncBaseClient
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class Client:
|
|
@@ -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.
|
|
9
|
+
MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.38.0"
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
def _get_base_url(
|
{magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_clothes_changer/client.py
RENAMED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.core import (
|
|
4
|
-
AsyncBaseClient,
|
|
5
|
-
RequestOptions,
|
|
6
|
-
SyncBaseClient,
|
|
7
|
-
default_request_options,
|
|
8
|
-
to_encodable,
|
|
9
|
-
type_utils,
|
|
10
|
-
)
|
|
11
3
|
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
4
|
from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
|
|
13
5
|
from magic_hour.resources.v1.image_projects.client import (
|
|
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
|
|
|
15
7
|
ImageProjectsClient,
|
|
16
8
|
)
|
|
17
9
|
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
11
|
+
AsyncBaseClient,
|
|
12
|
+
RequestOptions,
|
|
13
|
+
SyncBaseClient,
|
|
14
|
+
default_request_options,
|
|
15
|
+
to_encodable,
|
|
16
|
+
type_utils,
|
|
17
|
+
)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
logger = get_sdk_logger(__name__)
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.core import (
|
|
4
|
-
AsyncBaseClient,
|
|
5
|
-
RequestOptions,
|
|
6
|
-
SyncBaseClient,
|
|
7
|
-
default_request_options,
|
|
8
|
-
to_encodable,
|
|
9
|
-
type_utils,
|
|
10
|
-
)
|
|
11
3
|
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
4
|
from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
|
|
13
5
|
from magic_hour.resources.v1.image_projects.client import (
|
|
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
|
|
|
15
7
|
ImageProjectsClient,
|
|
16
8
|
)
|
|
17
9
|
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
11
|
+
AsyncBaseClient,
|
|
12
|
+
RequestOptions,
|
|
13
|
+
SyncBaseClient,
|
|
14
|
+
default_request_options,
|
|
15
|
+
to_encodable,
|
|
16
|
+
type_utils,
|
|
17
|
+
)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
logger = get_sdk_logger(__name__)
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import typing
|
|
2
|
+
import typing_extensions
|
|
2
3
|
|
|
3
|
-
from magic_hour.
|
|
4
|
+
from magic_hour.helpers.logger import get_sdk_logger
|
|
5
|
+
from magic_hour.resources.v1.image_projects.client import (
|
|
6
|
+
AsyncImageProjectsClient,
|
|
7
|
+
ImageProjectsClient,
|
|
8
|
+
)
|
|
9
|
+
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
4
11
|
AsyncBaseClient,
|
|
5
12
|
RequestOptions,
|
|
6
13
|
SyncBaseClient,
|
|
@@ -8,12 +15,6 @@ from magic_hour.core import (
|
|
|
8
15
|
to_encodable,
|
|
9
16
|
type_utils,
|
|
10
17
|
)
|
|
11
|
-
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
|
-
from magic_hour.resources.v1.image_projects.client import (
|
|
13
|
-
AsyncImageProjectsClient,
|
|
14
|
-
ImageProjectsClient,
|
|
15
|
-
)
|
|
16
|
-
from magic_hour.types import models, params
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
logger = get_sdk_logger(__name__)
|
|
@@ -85,6 +86,10 @@ class AiGifGeneratorClient:
|
|
|
85
86
|
name: typing.Union[
|
|
86
87
|
typing.Optional[str], type_utils.NotGiven
|
|
87
88
|
] = type_utils.NOT_GIVEN,
|
|
89
|
+
output_format: typing.Union[
|
|
90
|
+
typing.Optional[typing_extensions.Literal["gif", "mp4", "webm"]],
|
|
91
|
+
type_utils.NotGiven,
|
|
92
|
+
] = type_utils.NOT_GIVEN,
|
|
88
93
|
request_options: typing.Optional[RequestOptions] = None,
|
|
89
94
|
) -> models.V1AiGifGeneratorCreateResponse:
|
|
90
95
|
"""
|
|
@@ -96,6 +101,7 @@ class AiGifGeneratorClient:
|
|
|
96
101
|
|
|
97
102
|
Args:
|
|
98
103
|
name: The name of gif. This value is mainly used for your own identification of the gif.
|
|
104
|
+
output_format: The output file format for the generated animation.
|
|
99
105
|
style: V1AiGifGeneratorCreateBodyStyle
|
|
100
106
|
request_options: Additional options to customize the HTTP request
|
|
101
107
|
|
|
@@ -109,12 +115,14 @@ class AiGifGeneratorClient:
|
|
|
109
115
|
Examples:
|
|
110
116
|
```py
|
|
111
117
|
client.v1.ai_gif_generator.create(
|
|
112
|
-
style={"prompt": "Cute dancing cat, pixel art"},
|
|
118
|
+
style={"prompt": "Cute dancing cat, pixel art"},
|
|
119
|
+
name="Ai Gif gif",
|
|
120
|
+
output_format="gif",
|
|
113
121
|
)
|
|
114
122
|
```
|
|
115
123
|
"""
|
|
116
124
|
_json = to_encodable(
|
|
117
|
-
item={"name": name, "style": style},
|
|
125
|
+
item={"name": name, "output_format": output_format, "style": style},
|
|
118
126
|
dump_with=params._SerializerV1AiGifGeneratorCreateBody,
|
|
119
127
|
)
|
|
120
128
|
return self._base_client.request(
|
|
@@ -193,6 +201,10 @@ class AsyncAiGifGeneratorClient:
|
|
|
193
201
|
name: typing.Union[
|
|
194
202
|
typing.Optional[str], type_utils.NotGiven
|
|
195
203
|
] = type_utils.NOT_GIVEN,
|
|
204
|
+
output_format: typing.Union[
|
|
205
|
+
typing.Optional[typing_extensions.Literal["gif", "mp4", "webm"]],
|
|
206
|
+
type_utils.NotGiven,
|
|
207
|
+
] = type_utils.NOT_GIVEN,
|
|
196
208
|
request_options: typing.Optional[RequestOptions] = None,
|
|
197
209
|
) -> models.V1AiGifGeneratorCreateResponse:
|
|
198
210
|
"""
|
|
@@ -204,6 +216,7 @@ class AsyncAiGifGeneratorClient:
|
|
|
204
216
|
|
|
205
217
|
Args:
|
|
206
218
|
name: The name of gif. This value is mainly used for your own identification of the gif.
|
|
219
|
+
output_format: The output file format for the generated animation.
|
|
207
220
|
style: V1AiGifGeneratorCreateBodyStyle
|
|
208
221
|
request_options: Additional options to customize the HTTP request
|
|
209
222
|
|
|
@@ -217,12 +230,14 @@ class AsyncAiGifGeneratorClient:
|
|
|
217
230
|
Examples:
|
|
218
231
|
```py
|
|
219
232
|
await client.v1.ai_gif_generator.create(
|
|
220
|
-
style={"prompt": "Cute dancing cat, pixel art"},
|
|
233
|
+
style={"prompt": "Cute dancing cat, pixel art"},
|
|
234
|
+
name="Ai Gif gif",
|
|
235
|
+
output_format="gif",
|
|
221
236
|
)
|
|
222
237
|
```
|
|
223
238
|
"""
|
|
224
239
|
_json = to_encodable(
|
|
225
|
-
item={"name": name, "style": style},
|
|
240
|
+
item={"name": name, "output_format": output_format, "style": style},
|
|
226
241
|
dump_with=params._SerializerV1AiGifGeneratorCreateBody,
|
|
227
242
|
)
|
|
228
243
|
return await self._base_client.request(
|
{magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_headshot_generator/client.py
RENAMED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.core import (
|
|
4
|
-
AsyncBaseClient,
|
|
5
|
-
RequestOptions,
|
|
6
|
-
SyncBaseClient,
|
|
7
|
-
default_request_options,
|
|
8
|
-
to_encodable,
|
|
9
|
-
type_utils,
|
|
10
|
-
)
|
|
11
3
|
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
4
|
from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
|
|
13
5
|
from magic_hour.resources.v1.image_projects.client import (
|
|
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
|
|
|
15
7
|
ImageProjectsClient,
|
|
16
8
|
)
|
|
17
9
|
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
11
|
+
AsyncBaseClient,
|
|
12
|
+
RequestOptions,
|
|
13
|
+
SyncBaseClient,
|
|
14
|
+
default_request_options,
|
|
15
|
+
to_encodable,
|
|
16
|
+
type_utils,
|
|
17
|
+
)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
logger = get_sdk_logger(__name__)
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.core import (
|
|
4
|
-
AsyncBaseClient,
|
|
5
|
-
RequestOptions,
|
|
6
|
-
SyncBaseClient,
|
|
7
|
-
default_request_options,
|
|
8
|
-
to_encodable,
|
|
9
|
-
type_utils,
|
|
10
|
-
)
|
|
11
3
|
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
4
|
from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
|
|
13
5
|
from magic_hour.resources.v1.image_projects.client import (
|
|
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
|
|
|
15
7
|
ImageProjectsClient,
|
|
16
8
|
)
|
|
17
9
|
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
11
|
+
AsyncBaseClient,
|
|
12
|
+
RequestOptions,
|
|
13
|
+
SyncBaseClient,
|
|
14
|
+
default_request_options,
|
|
15
|
+
to_encodable,
|
|
16
|
+
type_utils,
|
|
17
|
+
)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
logger = get_sdk_logger(__name__)
|
{magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_image_generator/client.py
RENAMED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
import typing_extensions
|
|
3
3
|
|
|
4
|
-
from magic_hour.
|
|
4
|
+
from magic_hour.helpers.logger import get_sdk_logger
|
|
5
|
+
from magic_hour.resources.v1.image_projects.client import (
|
|
6
|
+
AsyncImageProjectsClient,
|
|
7
|
+
ImageProjectsClient,
|
|
8
|
+
)
|
|
9
|
+
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
5
11
|
AsyncBaseClient,
|
|
6
12
|
RequestOptions,
|
|
7
13
|
SyncBaseClient,
|
|
@@ -9,12 +15,6 @@ from magic_hour.core import (
|
|
|
9
15
|
to_encodable,
|
|
10
16
|
type_utils,
|
|
11
17
|
)
|
|
12
|
-
from magic_hour.helpers.logger import get_sdk_logger
|
|
13
|
-
from magic_hour.resources.v1.image_projects.client import (
|
|
14
|
-
AsyncImageProjectsClient,
|
|
15
|
-
ImageProjectsClient,
|
|
16
|
-
)
|
|
17
|
-
from magic_hour.types import models, params
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
logger = get_sdk_logger(__name__)
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.core import (
|
|
4
|
-
AsyncBaseClient,
|
|
5
|
-
RequestOptions,
|
|
6
|
-
SyncBaseClient,
|
|
7
|
-
default_request_options,
|
|
8
|
-
to_encodable,
|
|
9
|
-
type_utils,
|
|
10
|
-
)
|
|
11
3
|
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
4
|
from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
|
|
13
5
|
from magic_hour.resources.v1.image_projects.client import (
|
|
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
|
|
|
15
7
|
ImageProjectsClient,
|
|
16
8
|
)
|
|
17
9
|
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
11
|
+
AsyncBaseClient,
|
|
12
|
+
RequestOptions,
|
|
13
|
+
SyncBaseClient,
|
|
14
|
+
default_request_options,
|
|
15
|
+
to_encodable,
|
|
16
|
+
type_utils,
|
|
17
|
+
)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
logger = get_sdk_logger(__name__)
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.
|
|
3
|
+
from magic_hour.helpers.logger import get_sdk_logger
|
|
4
|
+
from magic_hour.resources.v1.image_projects.client import (
|
|
5
|
+
AsyncImageProjectsClient,
|
|
6
|
+
ImageProjectsClient,
|
|
7
|
+
)
|
|
8
|
+
from magic_hour.types import models, params
|
|
9
|
+
from make_api_request import (
|
|
4
10
|
AsyncBaseClient,
|
|
5
11
|
RequestOptions,
|
|
6
12
|
SyncBaseClient,
|
|
@@ -8,12 +14,6 @@ from magic_hour.core import (
|
|
|
8
14
|
to_encodable,
|
|
9
15
|
type_utils,
|
|
10
16
|
)
|
|
11
|
-
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
|
-
from magic_hour.resources.v1.image_projects.client import (
|
|
13
|
-
AsyncImageProjectsClient,
|
|
14
|
-
ImageProjectsClient,
|
|
15
|
-
)
|
|
16
|
-
from magic_hour.types import models, params
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
logger = get_sdk_logger(__name__)
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.core import (
|
|
4
|
-
AsyncBaseClient,
|
|
5
|
-
RequestOptions,
|
|
6
|
-
SyncBaseClient,
|
|
7
|
-
default_request_options,
|
|
8
|
-
to_encodable,
|
|
9
|
-
type_utils,
|
|
10
|
-
)
|
|
11
3
|
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
4
|
from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
|
|
13
5
|
from magic_hour.resources.v1.image_projects.client import (
|
|
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
|
|
|
15
7
|
ImageProjectsClient,
|
|
16
8
|
)
|
|
17
9
|
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
11
|
+
AsyncBaseClient,
|
|
12
|
+
RequestOptions,
|
|
13
|
+
SyncBaseClient,
|
|
14
|
+
default_request_options,
|
|
15
|
+
to_encodable,
|
|
16
|
+
type_utils,
|
|
17
|
+
)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
logger = get_sdk_logger(__name__)
|
{magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/ai_qr_code_generator/client.py
RENAMED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.
|
|
3
|
+
from magic_hour.helpers.logger import get_sdk_logger
|
|
4
|
+
from magic_hour.resources.v1.image_projects.client import (
|
|
5
|
+
AsyncImageProjectsClient,
|
|
6
|
+
ImageProjectsClient,
|
|
7
|
+
)
|
|
8
|
+
from magic_hour.types import models, params
|
|
9
|
+
from make_api_request import (
|
|
4
10
|
AsyncBaseClient,
|
|
5
11
|
RequestOptions,
|
|
6
12
|
SyncBaseClient,
|
|
@@ -8,12 +14,6 @@ from magic_hour.core import (
|
|
|
8
14
|
to_encodable,
|
|
9
15
|
type_utils,
|
|
10
16
|
)
|
|
11
|
-
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
|
-
from magic_hour.resources.v1.image_projects.client import (
|
|
13
|
-
AsyncImageProjectsClient,
|
|
14
|
-
ImageProjectsClient,
|
|
15
|
-
)
|
|
16
|
-
from magic_hour.types import models, params
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
logger = get_sdk_logger(__name__)
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.core import (
|
|
4
|
-
AsyncBaseClient,
|
|
5
|
-
RequestOptions,
|
|
6
|
-
SyncBaseClient,
|
|
7
|
-
default_request_options,
|
|
8
|
-
to_encodable,
|
|
9
|
-
type_utils,
|
|
10
|
-
)
|
|
11
3
|
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
4
|
from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
|
|
13
5
|
from magic_hour.resources.v1.video_projects.client import (
|
|
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.video_projects.client import (
|
|
|
15
7
|
VideoProjectsClient,
|
|
16
8
|
)
|
|
17
9
|
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
11
|
+
AsyncBaseClient,
|
|
12
|
+
RequestOptions,
|
|
13
|
+
SyncBaseClient,
|
|
14
|
+
default_request_options,
|
|
15
|
+
to_encodable,
|
|
16
|
+
type_utils,
|
|
17
|
+
)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
logger = get_sdk_logger(__name__)
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.core import (
|
|
4
|
-
AsyncBaseClient,
|
|
5
|
-
RequestOptions,
|
|
6
|
-
SyncBaseClient,
|
|
7
|
-
default_request_options,
|
|
8
|
-
to_encodable,
|
|
9
|
-
type_utils,
|
|
10
|
-
)
|
|
11
3
|
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
4
|
from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
|
|
13
5
|
from magic_hour.resources.v1.video_projects.client import (
|
|
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.video_projects.client import (
|
|
|
15
7
|
VideoProjectsClient,
|
|
16
8
|
)
|
|
17
9
|
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
11
|
+
AsyncBaseClient,
|
|
12
|
+
RequestOptions,
|
|
13
|
+
SyncBaseClient,
|
|
14
|
+
default_request_options,
|
|
15
|
+
to_encodable,
|
|
16
|
+
type_utils,
|
|
17
|
+
)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
logger = get_sdk_logger(__name__)
|
{magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/auto_subtitle_generator/client.py
RENAMED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.core import (
|
|
4
|
-
AsyncBaseClient,
|
|
5
|
-
RequestOptions,
|
|
6
|
-
SyncBaseClient,
|
|
7
|
-
default_request_options,
|
|
8
|
-
to_encodable,
|
|
9
|
-
type_utils,
|
|
10
|
-
)
|
|
11
3
|
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
4
|
from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
|
|
13
5
|
from magic_hour.resources.v1.video_projects.client import (
|
|
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.video_projects.client import (
|
|
|
15
7
|
VideoProjectsClient,
|
|
16
8
|
)
|
|
17
9
|
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
11
|
+
AsyncBaseClient,
|
|
12
|
+
RequestOptions,
|
|
13
|
+
SyncBaseClient,
|
|
14
|
+
default_request_options,
|
|
15
|
+
to_encodable,
|
|
16
|
+
type_utils,
|
|
17
|
+
)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
logger = get_sdk_logger(__name__)
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
from magic_hour.core import AsyncBaseClient, SyncBaseClient
|
|
2
1
|
from magic_hour.resources.v1.ai_clothes_changer import (
|
|
3
2
|
AiClothesChangerClient,
|
|
4
3
|
AsyncAiClothesChangerClient,
|
|
@@ -87,6 +86,7 @@ from magic_hour.resources.v1.video_to_video import (
|
|
|
87
86
|
AsyncVideoToVideoClient,
|
|
88
87
|
VideoToVideoClient,
|
|
89
88
|
)
|
|
89
|
+
from make_api_request import AsyncBaseClient, SyncBaseClient
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
class V1Client:
|
|
@@ -4,7 +4,11 @@ import pydantic
|
|
|
4
4
|
import time
|
|
5
5
|
import typing
|
|
6
6
|
|
|
7
|
-
from magic_hour.
|
|
7
|
+
from magic_hour.helpers.download import download_files_async, download_files_sync
|
|
8
|
+
from magic_hour.helpers.logger import get_sdk_logger
|
|
9
|
+
from magic_hour.resources.v1.files import AsyncFilesClient, FilesClient
|
|
10
|
+
from magic_hour.types import models, params
|
|
11
|
+
from make_api_request import (
|
|
8
12
|
AsyncBaseClient,
|
|
9
13
|
RequestOptions,
|
|
10
14
|
SyncBaseClient,
|
|
@@ -12,10 +16,6 @@ from magic_hour.core import (
|
|
|
12
16
|
to_encodable,
|
|
13
17
|
type_utils,
|
|
14
18
|
)
|
|
15
|
-
from magic_hour.helpers.download import download_files_async, download_files_sync
|
|
16
|
-
from magic_hour.helpers.logger import get_sdk_logger
|
|
17
|
-
from magic_hour.resources.v1.files import AsyncFilesClient, FilesClient
|
|
18
|
-
from magic_hour.types import models, params
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
logger = get_sdk_logger(__name__)
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.core import (
|
|
4
|
-
AsyncBaseClient,
|
|
5
|
-
RequestOptions,
|
|
6
|
-
SyncBaseClient,
|
|
7
|
-
default_request_options,
|
|
8
|
-
to_encodable,
|
|
9
|
-
type_utils,
|
|
10
|
-
)
|
|
11
3
|
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
4
|
from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
|
|
13
5
|
from magic_hour.resources.v1.video_projects.client import (
|
|
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.video_projects.client import (
|
|
|
15
7
|
VideoProjectsClient,
|
|
16
8
|
)
|
|
17
9
|
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
11
|
+
AsyncBaseClient,
|
|
12
|
+
RequestOptions,
|
|
13
|
+
SyncBaseClient,
|
|
14
|
+
default_request_options,
|
|
15
|
+
to_encodable,
|
|
16
|
+
type_utils,
|
|
17
|
+
)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
logger = get_sdk_logger(__name__)
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.core import (
|
|
4
|
-
AsyncBaseClient,
|
|
5
|
-
RequestOptions,
|
|
6
|
-
SyncBaseClient,
|
|
7
|
-
default_request_options,
|
|
8
|
-
to_encodable,
|
|
9
|
-
type_utils,
|
|
10
|
-
)
|
|
11
3
|
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
4
|
from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
|
|
13
5
|
from magic_hour.resources.v1.image_projects.client import (
|
|
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
|
|
|
15
7
|
ImageProjectsClient,
|
|
16
8
|
)
|
|
17
9
|
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
11
|
+
AsyncBaseClient,
|
|
12
|
+
RequestOptions,
|
|
13
|
+
SyncBaseClient,
|
|
14
|
+
default_request_options,
|
|
15
|
+
to_encodable,
|
|
16
|
+
type_utils,
|
|
17
|
+
)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
logger = get_sdk_logger(__name__)
|
|
@@ -6,7 +6,6 @@ import pathlib
|
|
|
6
6
|
import typing
|
|
7
7
|
import typing_extensions
|
|
8
8
|
|
|
9
|
-
from magic_hour.core import AsyncBaseClient, SyncBaseClient
|
|
10
9
|
from magic_hour.helpers.logger import get_sdk_logger
|
|
11
10
|
from magic_hour.resources.v1.files.upload_urls import (
|
|
12
11
|
AsyncUploadUrlsClient,
|
|
@@ -15,6 +14,7 @@ from magic_hour.resources.v1.files.upload_urls import (
|
|
|
15
14
|
from magic_hour.types.params.v1_files_upload_urls_create_body_items_item import (
|
|
16
15
|
V1FilesUploadUrlsCreateBodyItemsItem,
|
|
17
16
|
)
|
|
17
|
+
from make_api_request import AsyncBaseClient, SyncBaseClient
|
|
18
18
|
from pathlib import Path
|
|
19
19
|
|
|
20
20
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.
|
|
3
|
+
from magic_hour.types import models, params
|
|
4
|
+
from make_api_request import (
|
|
4
5
|
AsyncBaseClient,
|
|
5
6
|
RequestOptions,
|
|
6
7
|
SyncBaseClient,
|
|
7
8
|
default_request_options,
|
|
8
9
|
to_encodable,
|
|
9
10
|
)
|
|
10
|
-
from magic_hour.types import models, params
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class UploadUrlsClient:
|
{magic_hour-0.36.2 → magic_hour-0.38.0}/magic_hour/resources/v1/image_background_remover/client.py
RENAMED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
from magic_hour.core import (
|
|
4
|
-
AsyncBaseClient,
|
|
5
|
-
RequestOptions,
|
|
6
|
-
SyncBaseClient,
|
|
7
|
-
default_request_options,
|
|
8
|
-
to_encodable,
|
|
9
|
-
type_utils,
|
|
10
|
-
)
|
|
11
3
|
from magic_hour.helpers.logger import get_sdk_logger
|
|
12
4
|
from magic_hour.resources.v1.files.client import AsyncFilesClient, FilesClient
|
|
13
5
|
from magic_hour.resources.v1.image_projects.client import (
|
|
@@ -15,6 +7,14 @@ from magic_hour.resources.v1.image_projects.client import (
|
|
|
15
7
|
ImageProjectsClient,
|
|
16
8
|
)
|
|
17
9
|
from magic_hour.types import models, params
|
|
10
|
+
from make_api_request import (
|
|
11
|
+
AsyncBaseClient,
|
|
12
|
+
RequestOptions,
|
|
13
|
+
SyncBaseClient,
|
|
14
|
+
default_request_options,
|
|
15
|
+
to_encodable,
|
|
16
|
+
type_utils,
|
|
17
|
+
)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
logger = get_sdk_logger(__name__)
|
|
@@ -4,15 +4,15 @@ import pydantic
|
|
|
4
4
|
import time
|
|
5
5
|
import typing
|
|
6
6
|
|
|
7
|
-
from magic_hour.
|
|
7
|
+
from magic_hour.helpers.download import download_files_async, download_files_sync
|
|
8
|
+
from magic_hour.helpers.logger import get_sdk_logger
|
|
9
|
+
from magic_hour.types import models
|
|
10
|
+
from make_api_request import (
|
|
8
11
|
AsyncBaseClient,
|
|
9
12
|
RequestOptions,
|
|
10
13
|
SyncBaseClient,
|
|
11
14
|
default_request_options,
|
|
12
15
|
)
|
|
13
|
-
from magic_hour.helpers.download import download_files_async, download_files_sync
|
|
14
|
-
from magic_hour.helpers.logger import get_sdk_logger
|
|
15
|
-
from magic_hour.types import models
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
logger = get_sdk_logger(__name__)
|