compile-run
Version:
You can execute programs in different languages using this package
21 lines (20 loc) • 979 B
TypeScript
import { errorResultCallback, Result, Options } from "../types";
/**
* executes the python source code in the file at the path provided and give stdout and stderr as result
* @param path A path like string
* @param options Optional Options obj
* @param callback Optional callback
*/
export declare function runPythonFile(filePath: string, options: Options, callback: errorResultCallback): Promise<Result>;
/**
* executes the python source code in the file at the path provided and give stdout and stderr as result
* @param path A path like string
* @param options Optional Options obj
*/
export declare function runPythonFile(filePath: string, options?: Options): Promise<Result>;
/**
* executes the python source code in the file at the path provided and give stdout and stderr as result
* @param path A path like string
* @param callback Optional callback
*/
export declare function runPythonFile(filePath: string, callback: errorResultCallback): Promise<Result>;