Output, which allows you to save files or directories and generate public URLs to access them.
Saving Files
To save anOutput, you can write any filetype to Beam’s /tmp directory.
Here’s what your code might look like:
Directories
You can also create public URLs for directories, by passing in a directory path:PIL Images
If your app uses PIL,Output includes a wrapper around PIL to simplify the process of generating a public URL for the PIL image file:
Generating Public URLs
Your app might return files from the API, such as images or MP3s. You can useOutput to generate a public URL to access the content.

Expiring Public URLs
You can pass an optionalexpires parameter to output.public_url to control how long to persist the file before it is deleted.
By default, public URLs are automatically deleted after 1 hour.