In [1]:
import ovation.lab.workflows as workflows
import ovation.lab.download as download
import ovation.session as session
from importlib import reload
from tqdm import tqdm_notebook as tqdm
from pprint import pprint
In [ ]:
s = connect(input('Email: '), api='https://lab-services.ovation.io')
In [ ]:
workflow_id = input('Workflow ID: ')
In [ ]:
r = s.get(s.path('workflows', workflow_id))
workflow = r.workflow
In [ ]:
activity_label = 'my-activity-label' # activity label
resource_type = 'xml-file' # resource type of files to download
download_path = '.' # save files to the directory at this path
download.download_resources(s, workflow,
activity_label,
resource_type,
output=download_path,
progress=tqdm)