Skip to content
Docs Try Aspire
Docs Try

addPythonApp

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

Signature

method addPythonApp builder
Adds a Python application to the application model.
addPythonApp(
name: string,
appDirectory: string,
scriptPath: string): PythonAppResource
name string
appDirectory string
scriptPath string
PythonAppResource

Applies to

This method applies to the following types: