artifacts
The artifacts
key defines files to download after code execution
Overview
The artifacts
key should contain the list of files to download from the cloud
environment after the code successfully executes.
Alto runs your code on the cloud environment exactly as it runs on your local machine —
so, if your code outputs files when run locally, those will also get created within your
cloud environment. The artifacts
allows you to access these files.
For example, suppose your script looks something like this (this pulls top stories from the HackerNews API):
The script writes a file to a local folder called output
that lives in the same
directory as the script. The file is called topstories.csv
.
If we wanted to create this file using Alto and then download it after it was successfully created, we could specify our configuration as follows: