Skip to content
Docs Try Aspire

addPythonModule

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

Signature

method addPythonModule builder
Adds a Python module application resource
addPythonModule(
name: string,
appDirectory: string,
moduleName: string): PythonAppResource
name string
appDirectory string
moduleName string
PythonAppResource

Applies to

This function is an extension method on the following types: