Skip to main content

Read small files

Use text reads for small UTF-8 files, format="bytes" for binary data, and format="stream" when callers should process chunks without loading the whole file in memory.

Signed download URL

The signed URL is useful when a browser or another service needs to fetch the file directly. Use machine.download_url(path) as a convenience wrapper around machine.files.download_url(path). Pass user= to read and signed URL helpers when the path should be resolved for a specific machine user.

Durable shared volumes

Use volume download commands when the file lives on a shared volume rather than a machine: