PythonWrapper
QuantConnect.Python.PythonWrapper
Bases: Object
Provides extension methods for managing python wrapper classes
invoke
invoke(
method: Any, *args: Union[Object, Iterable[Object]]
) -> Any
Invokes the given PyObject method with the specified arguments
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
method
|
Any
|
The method to invoke |
required |
args
|
Union[Object, Iterable[Object]]
|
The arguments to call the method with |
()
|
invoke_method
invoke_method(
model: Any,
method_name: str,
*args: Union[Object, Iterable[Object]]
) -> None
Invokes the specified method on the provided PyObject instance with the specified arguments
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Any
|
The PyObject instance |
required |
method_name
|
str
|
The name of the method to invoke |
required |
args
|
Union[Object, Iterable[Object]]
|
The arguments to call the method with |
()
|