Lean  $LEAN_TAG$
QuantConnect.Python.PythonWrapper Class Reference

Provides extension methods for managing python wrapper classes More...

Static Public Member Functions

static PyObject ValidateImplementationOf< TInterface > (this PyObject model)
 Validates that the specified PyObject completely implements the provided interface type More...
 
static T InvokeMethod< T > (this PyObject model, string methodName, params object[] args)
 Invokes the specified method on the provided PyObject instance with the specified arguments More...
 
static void InvokeMethod (this PyObject model, string methodName, params object[] args)
 Invokes the specified method on the provided PyObject instance with the specified arguments More...
 
static T Invoke< T > (this PyObject method, params object[] args)
 Invokes the given PyObject method with the specified arguments More...
 
static PyObject Invoke (this PyObject method, params object[] args)
 Invokes the given PyObject method with the specified arguments More...
 

Detailed Description

Provides extension methods for managing python wrapper classes

Definition at line 28 of file PythonWrapper.cs.

Member Function Documentation

◆ ValidateImplementationOf< TInterface >()

static PyObject QuantConnect.Python.PythonWrapper.ValidateImplementationOf< TInterface > ( this PyObject  model)
static

Validates that the specified PyObject completely implements the provided interface type

Template Parameters
TInterfaceThe interface type
Parameters
modelThe model implementing the interface type

Definition at line 35 of file PythonWrapper.cs.

◆ InvokeMethod< T >()

static T QuantConnect.Python.PythonWrapper.InvokeMethod< T > ( this PyObject  model,
string  methodName,
params object[]  args 
)
static

Invokes the specified method on the provided PyObject instance with the specified arguments

Parameters
modelThe PyObject instance
methodNameThe name of the method to invoke
argsThe arguments to call the method with
Returns
The return value of the called method converted into the T type

Definition at line 72 of file PythonWrapper.cs.

◆ InvokeMethod()

static void QuantConnect.Python.PythonWrapper.InvokeMethod ( this PyObject  model,
string  methodName,
params object[]  args 
)
static

Invokes the specified method on the provided PyObject instance with the specified arguments

Parameters
modelThe PyObject instance
methodNameThe name of the method to invoke
argsThe arguments to call the method with

Definition at line 84 of file PythonWrapper.cs.

◆ Invoke< T >()

static T QuantConnect.Python.PythonWrapper.Invoke< T > ( this PyObject  method,
params object[]  args 
)
static

Invokes the given PyObject method with the specified arguments

Parameters
methodThe method to invoke
argsThe arguments to call the method with
Returns
The return value of the called method converted into the T type

Definition at line 95 of file PythonWrapper.cs.

◆ Invoke()

static PyObject QuantConnect.Python.PythonWrapper.Invoke ( this PyObject  method,
params object[]  args 
)
static

Invokes the given PyObject method with the specified arguments

Parameters
methodThe method to invoke
argsThe arguments to call the method with

Definition at line 106 of file PythonWrapper.cs.


The documentation for this class was generated from the following file: