IPythonUtils

Assembly: Python;

Namespace: Prognoz.Platform.Interop.Python;

Description

The IPythonUtils interface is used to execute functions on the Python language.

Inheritance Hierarchy

IPythonUtils

Comments

To execute functions in the Python language, execute the following operations:

  1. Create an instance of the PythonUtils class.

  2. Add the folders that contain Python units for the obtained object using the AddFolderToPythonPath method.

  3. Execute the Invoke method by specifying unit and function names, and required parameters. The Invoke method results in the executed Python function. The obtained result can be further used in application code in Fore/Fore.NET.

Methods

  Method name Brief description
AddFolderToPythonPath The AddFolderToPythonPath method adds the specified folder to the folders list to search for Python units.
Invoke The Invoke method executes function in the Python language and returns result of its work.

See also:

Python Assembly Interfaces