Result¶
-
class
DANE.
Result
(generator, payload={}, _id=None, api=None)¶ Class representation of a analysis result, containing the outcome and logic for interacting with DANE-server through a
base_classes.base_handler
Parameters: - generator (dict) – Details of analysis that generated this result, requires id, name, type, and homepage fields.
- payload (dict) – The actual result(s) to be stored
- _id (int, optional) – id assigned by DANE-server to this task
-
delete
()¶ Delete this result.
-
static
from_json
(json_str)¶ Constructs a
DANE.Result
instance from a JSON stringParameters: task_str (str or dict) – Serialised DANE.Result
Returns: An initialised Result Return type: DANE.Result
-
save
(task_id)¶ Save this result, this will set an _id for the result
Parameters: task_id – id of the task that generated this result Returns: self
-
to_json
(indent=None)¶ Returns this result serialised as JSON
Returns: JSON string of the result Return type: str