Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions cloudglue/client/resources/describe.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ def create(
thumbnails_config: Optional[Union[Dict[str, Any], Any]] = None,
participants: Optional[List[Union[Dict[str, Any], NewDescribeAllOfParticipants]]] = None,
):
"""Create a new media description job for a video.
"""Create a new media description job for a video, audio, or image.

Args:
url: Input video URL. Can be YouTube URLs or URIs of uploaded files.
url: Input media URL. Can be YouTube URLs or URIs of uploaded files
(video, audio, or image). Public direct image URLs (JPEG/PNG/WebP)
are also supported. Image inputs are described at the file level
only, so segmentation options do not apply to them.
enable_summary: Whether to generate video-level and segment-level summaries and titles.
enable_speech: Whether to generate speech transcript.
enable_scene_text: Whether to generate scene text extraction.
Expand Down Expand Up @@ -285,8 +288,12 @@ def run(
):
"""Create a media description job and wait for it to complete.

Accepts video, audio, or image inputs; image inputs are described at the
file level only (no segmentation).

Args:
url: Input video URL. Can be YouTube URLs or URIs of uploaded files.
url: Input media URL. Can be YouTube URLs or URIs of uploaded files
(video, audio, or image).
poll_interval: Seconds between status checks.
timeout: Total seconds to wait before giving up.
enable_summary: Whether to generate video-level and segment-level summaries and titles.
Expand Down
8 changes: 6 additions & 2 deletions cloudglue/client/resources/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def create(
"""Create a new extraction job.

Args:
url: The URL of the video to extract data from. Can be a YouTube URL or a cloudglue file URI.
url: The URL of the media to extract data from. Can be a YouTube URL,
a cloudglue file URI (video, audio, or image), or a public direct
image URL (JPEG/PNG/WebP).
prompt: A natural language description of what to extract. Required if schema is not provided.
schema: A JSON schema defining the structure of the data to extract. Required if prompt is not provided.
enable_video_level_entities: Whether to extract entities at the video level
Expand Down Expand Up @@ -204,7 +206,9 @@ def run(
"""Create an extraction job and wait for it to complete.

Args:
url: The URL of the video to extract data from. Can be a YouTube URL or a cloudglue file URI.
url: The URL of the media to extract data from. Can be a YouTube URL,
a cloudglue file URI (video, audio, or image), or a public direct
image URL (JPEG/PNG/WebP).
prompt: A natural language description of what to extract. Required if schema is not provided.
schema: A JSON schema defining the structure of the data to extract. Required if prompt is not provided.
enable_video_level_entities: Whether to extract entities at the video level
Expand Down
8 changes: 6 additions & 2 deletions cloudglue/client/resources/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,12 @@ def upload(
):
"""Upload a file to Cloudglue.

Accepts video, audio, or image files. Image files are processed at the
file level only (no segmentation), so segmentation/thumbnail options do
not apply to them.

Args:
file_path: Path to the local file to upload.
file_path: Path to the local file to upload (video, audio, or image).
metadata: Optional user-provided metadata about the file.
enable_segment_thumbnails: Whether to generate thumbnails for each segment.
wait_until_finish: Whether to wait for the file processing to complete.
Expand Down Expand Up @@ -280,7 +284,7 @@ def sync_from_url(
file.

Accepted URL forms:
- Direct http(s) video/audio file URLs (e.g. `.mp4`)
- Direct http(s) video/audio/image file URLs (e.g. `.mp4`, `.jpg`, `.png`, `.webp`)
- Public Dropbox share links (`dropbox.com/scl/fi/...`, `/s/...`)
- TikTok video URLs (consumes scrape credits)
- Loom share URLs (`https://www.loom.com/share/<id>`)
Expand Down
4 changes: 2 additions & 2 deletions cloudglue/sdk/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/chat_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/collections_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/data_connectors_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/deep_search_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/describe_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/extract_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/face_detection_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/face_match_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/file_segments_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions cloudglue/sdk/api/files_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/frames_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/response_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/search_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/segmentations_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/segments_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/share_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/tags_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/thumbnails_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/transcribe_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api/webhooks_api.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/api_client.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cloudglue/sdk/configuration.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/exceptions.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudglue/sdk/models/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading