Documentation / Exports
Ƭ PyClearMethod: (namespace: string) => Promise<{ error: any ; results: any }>
Type for the clear method of the PyRunner interface.
▸ (namespace): Promise<{ error: any ; results: any }>
| Name | Type | Description |
|---|---|---|
namespace |
string |
The namespace to clear. |
Promise<{ error: any ; results: any }>
Ƭ PyLoadMethod: (pyoPackages?: string[], packages?: string[], initCode?: string, transformCode?: string) => Promise<{ error: any ; results: any }>
Type for the load method of the PyRunner interface.
▸ (pyoPackages?, packages?, initCode?, transformCode?): Promise<{ error: any ; results: any }>
| Name | Type | Description |
|---|---|---|
pyoPackages? |
string[] |
Optional array of Python packages to load. |
packages? |
string[] |
Optional array of additional packages to load. |
initCode? |
string |
Optional initialization code to run. |
transformCode? |
string |
Optional transformation code to run. |
Promise<{ error: any ; results: any }>
Ƭ PyRunAsyncMethod: (script: string, namespace?: string, id?: string, context?: Record<string, any>) => Promise<{ error: any ; results: any }>
Type for the runAsync method of the PyRunner interface.
▸ (script, namespace?, id?, context?): Promise<{ error: any ; results: any }>
| Name | Type | Description |
|---|---|---|
script |
string |
The Python script to run. |
namespace? |
string |
Optional namespace for the script. |
id? |
string |
Optional identifier for the script execution. |
context? |
Record<string, any> |
Optional context for the script execution. |
Promise<{ error: any ; results: any }>
Ƭ PyRunMethod: (script: string, namespace?: string, id?: string, context?: Record<string, any>) => Promise<{ error: any ; results: any }>
Type for the run method of the PyRunner interface.
▸ (script, namespace?, id?, context?): Promise<{ error: any ; results: any }>
| Name | Type | Description |
|---|---|---|
script |
string |
The Python script to run. |
namespace? |
string |
Optional namespace for the script. |
id? |
string |
Optional identifier for the script execution. |
context? |
Record<string, any> |
Optional context for the script execution. |
Promise<{ error: any ; results: any }>
▸ usePython(): PyRunner
The main composable