flowserv.client.app.data module

Objects for files that are created as the result of successful workflow runs.

class flowserv.client.app.data.DataFile(run_id: str, doc: Dict, service: flowserv.service.api.APIFactory)

Bases: object

Basic object that represents a run result file. Provides access to the file content via the file handle and format-specific load methods.

data() Tuple[List[str], List[List[str]]]

Load CSV data. Returns a list of column names and a list or rows.

Return type

tuple of list and list

json() Dict

Load file content as Json object.

Return type

dict

load() flowserv.model.files.FileHandle

Get handle for the file.

Return type

flowserv.model.files.FileHandle

text() str

Read file content as string.

Return type

string