Visitar URL original
addPythonApp | Aspire
Watch Aspire live streamsDocsTry Aspire
Method
📦 Aspire.Hosting.Python v13.6.5
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
namestringThe name of the resource.
appDirectorystringThe path to the directory containing the python application.
scriptPathstringThe path to the script relative to the app directory to run.
PythonAppResource

Applies to

This method applies to the following types: