cmux/node_modules/@vercel/build-utils/dist/python.d.ts
2026-01-29 17:36:26 -08:00

22 lines
644 B
TypeScript

import FileFsRef from './file-fs-ref';
/**
* Run a Python script that only uses the standard library.
*/
export declare function runStdlibPyScript(options: {
scriptName: string;
pythonPath?: string;
args?: string[];
cwd?: string;
}): Promise<{
exitCode: number;
stdout: string;
stderr: string;
}>;
/**
* Check if a Python file is a valid entrypoint by detecting:
* - A top-level 'app' callable (Flask, FastAPI, Sanic, WSGI/ASGI, etc.)
* - A top-level 'handler' class (BaseHTTPRequestHandler subclass)
*/
export declare function isPythonEntrypoint(file: FileFsRef | {
fsPath?: string;
}): Promise<boolean>;