addPythonExecutable

Method
📦 Aspire.Hosting.Python v17.0.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addPythonExecutable(
name: string,
appDirectory: string,
executableName: string): PythonAppResource;
}

Signature

methodaddPythonExecutablebuilder
Adds a Python executable to the application model.
addPythonExecutable(
name: string,
appDirectory: string,
executableName: string): PythonAppResource
namestringThe name of the resource.
appDirectorystringThe path to the directory containing the python application.
executableNamestringThe name of the executable in the virtual environment (e.g., "pytest", "uvicorn", "flask").
PythonAppResource

Applies to

This method applies to the following types: