Skip to content
DocsTry Aspire
DocsTry

addPythonApp

Method
📦 Aspire.Hosting.Python v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addPythonApp(
name: string,
appDirectory: string,
scriptPath: string): PythonAppResource;
}

Signature

methodaddPythonAppbuilder
Adds a Python application to the application model.
addPythonApp(
name: string,
appDirectory: string,
scriptPath: string): PythonAppResource
namestring
appDirectorystring
scriptPathstring
PythonAppResource

Applies to

This method applies to the following types: