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
-
Create a
Filerinstance and provide the file pathwith open("test.txt", "w") as f:
f.write("lalala")
my_file = Filer("test.txt") -
Save the file:
my_file.save()