Skip to content
Docs Try Aspire
Docs Try

addPythonModule

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

Signature

method addPythonModule builder
Adds a Python module to the application model.
addPythonModule(
name: string,
appDirectory: string,
moduleName: string): PythonAppResource
name string
appDirectory string
moduleName string
PythonAppResource

Applies to

This method applies to the following types: