UNPKG

n8n-nodes-python-raw

Version:

🚨 WARNING: 100% AI-GENERATED EXPERIMENTAL CODE - HIGH RISK! Use at own risk, not for production. Python execution for n8n with file processing, multiple credentials, debug tools. Personal use only - Commons Clause license.

22 lines (21 loc) • 1.09 kB
import { IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-core'; import { INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow'; export interface IExecReturnData { exitCode: number; error?: Error; stderr: string; stdout: string; } export declare class PythonFunction implements INodeType { description: INodeTypeDescription; methods: { loadOptions: { generateCodeTemplate(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>; getSystemEnvVars(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>; getPythonEnvVarsCredentials(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>; }; }; execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>; } declare function generateCodeTemplateStatic(functionCode?: string, includeInputItems?: boolean, includeEnvVarsDict?: boolean, hideVariableValues?: boolean, includeFiles?: boolean, includeOutputDir?: boolean): string; export { generateCodeTemplateStatic };