IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python function

fetch_bytes_from_s3

fetch_bytes_from_s3()โ€‹

max.support.fetch_bytes_from_s3(s3_path)

source

Fetch bytes from an S3 path.

Parameters:

s3_path (str) โ€“ S3 URI in format s3://bucket/key

Returns:

Raw bytes content from S3 object

Raises:

ImportError โ€“ If boto3 is not installed. Install with pip install boto3 or use the benchmark extras: pip install max[benchmark]

Return type:

bytes