Class PythonJobAttributes

java.lang.Object
com.uc4.api.objects.PythonJobAttributes

public class PythonJobAttributes extends Object
Attributes of a Python Job.
  • Method Details

    • getPythonInterpreterPath

      public String 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

      public void setPythonInterpreterPath(String pythonInterpreter)
      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

      public String getOptions()
      Returns options passed to the Python interpreter.
      Returns:
      Additional options or an empty string if not set
    • setOptions

      public void setOptions(String options)
      Sets additional options to to the Python interpreter.
      Parameters:
      options - Additional options or an empty string if not set
    • getWorkingDirectory

      public String getWorkingDirectory()
      Returns the working directory for the Python execution.
      Returns:
      Working directory or an empty string if not set
    • setWorkingDirectory

      public void setWorkingDirectory(String workingDirectory)
      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

      public String getRequirements()
      Returns libraries that should be installed in requirements file format.
      Returns:
      Requirements or an empty string if not set
    • setRequirements

      public void setRequirements(String requirements)
      Sets libraries that should be installed before the Job is executed.
      Parameters:
      requirements - String containing multiple lines in requirements file format