Script

a piece of python code that can either transform data, generate plot, train Machine Learning models.

Attributes

NameTypeDescription
script_iduuid.UUIDtechnical id of the script
namestrname of your script function, same as the code object.
descriptionstrprovide an insight-full description of what does your script.
sourcestrsource code extracted from your source file.

Methods

api_id()

Id of the script (script_id)

return: string formatted UUID of the script.

copy()

Copy your function code and decorators to a format executable by the Wizata App.

NameTypeDefaultDescription
myfunctionyour function - pass the function itself as parameter

endpoint()

Name of the endpoints used to manipulate scripts.

return: Endpoint name.

from_json()

Load the Script entity from a dictionary representation of the Script.

NameTypeDefaultDescription
objDict version of the Script.

set_id()

specify the id_value neutrally

NameTypeDefaultDescription
id_value

return:

to_json()

Convert the script to a dictionary compatible to JSON format.

NameTypeDefaultDescription
targetstrNone

return: dictionary representation of the Script object.