Skip to main content

Ephemeral Files

You may want to save any files produced by your tasks. Snowcell allows you to save them or other directories alongside.

To get started, import the Filer class

from snowcell.serverless.storage import Filer
  1. Create a Filer instance and provide the file path

    with open("test.txt", "w") as f:
    f.write("lalala")

    my_file = Filer("test.txt")
  2. Save the file:

    my_file.save()