Skip to content
DocsTry Aspire
DocsTry

addPythonModule

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

Signature

methodaddPythonModulebuilder
Adds a Python module to the application model.
addPythonModule(
name: string,
appDirectory: string,
moduleName: string): PythonAppResource
namestring
appDirectorystring
moduleNamestring
PythonAppResource

Applies to

This method applies to the following types: