Skip to content
Docs Try Aspire

addPythonApp

Function
📦 Aspire.Hosting.Python v13.2.0-preview.1.26159.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addPythonApp(
name: string,
appDirectory: string,
scriptPath: string): PythonAppResource;
}

Signature

method addPythonApp builder
Adds a Python script application resource
addPythonApp(
name: string,
appDirectory: string,
scriptPath: string): PythonAppResource
name string
appDirectory string
scriptPath string
PythonAppResource

Applies to

This function is an extension method on the following types: