Interface PythonEnvironmentManager

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
AbstractPythonEnvironmentManager, EmbeddedPythonEnvironmentManager, ProcessPythonEnvironmentManager

@Internal public interface PythonEnvironmentManager extends AutoCloseable
The base interface of python environment manager which is used to create the PythonEnvironment object used to execute Python functions.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates the PythonEnvironment object used to execute Python functions.
    void
    Initialize the environment manager.

    Methods inherited from interface java.lang.AutoCloseable

    close
  • Method Details

    • open

      void open() throws Exception
      Initialize the environment manager.
      Throws:
      Exception
    • createEnvironment

      PythonEnvironment createEnvironment() throws Exception
      Creates the PythonEnvironment object used to execute Python functions.
      Returns:
      The PythonEnvironment object which represents the environment(embedded thread, process, docker, etc) the python worker would run in.
      Throws:
      Exception