Package jline.util

Class PythonCaller

java.lang.Object
jline.util.PythonCaller

public class PythonCaller extends Object
Utility class for calling Python scripts from Java
  • Constructor Details

    • PythonCaller

      public PythonCaller()
  • Method Details

    • callPython

      public static String callPython(String pythonScript)
      Execute a Python script and return its output
      Parameters:
      pythonScript - The Python script to execute
      Returns:
      The output from the Python script