Package com.uc4.api.objects
Class PythonJobAttributes
java.lang.Object
com.uc4.api.objects.PythonJobAttributes
Attributes of a Python Job.
-
Method Summary
Modifier and TypeMethodDescriptionReturns options passed to the Python interpreter.Returns the path to the Python interpreter.Returns libraries that should be installed in requirements file format.Returns the working directory for the Python execution.void
setOptions
(String options) Sets additional options to to the Python interpreter.void
setPythonInterpreterPath
(String pythonInterpreter) Sets the path to the Python interpreter.void
setRequirements
(String requirements) Sets libraries that should be installed before the Job is executed.void
setWorkingDirectory
(String workingDirectory) Sets the working directory for the Python execution.
-
Method Details
-
getPythonInterpreterPath
Returns the path to the Python interpreter. If not set the Job will use "python".- Returns:
- Path to the interpreter or an empty string if not set
-
setPythonInterpreterPath
Sets the path to the Python interpreter. It can be a full path or a name of the binary. The default is "python".- Parameters:
pythonInterpreter
- Path to the interpreter, can be empty
-
getOptions
Returns options passed to the Python interpreter.- Returns:
- Additional options or an empty string if not set
-
setOptions
Sets additional options to to the Python interpreter.- Parameters:
options
- Additional options or an empty string if not set
-
getWorkingDirectory
Returns the working directory for the Python execution.- Returns:
- Working directory or an empty string if not set
-
setWorkingDirectory
Sets the working directory for the Python execution. The specified OS-user (Login-object) must have read/write permissions.- Parameters:
workingDirectory
- Working directory or an empty string to use the default
-
getRequirements
Returns libraries that should be installed in requirements file format.- Returns:
- Requirements or an empty string if not set
-
setRequirements
Sets libraries that should be installed before the Job is executed.- Parameters:
requirements
- String containing multiple lines in requirements file format
-