Visitar URL original
addPythonModule | Aspire
Watch Aspire live streamsDocsTry Aspire
Method
📦 Aspire.Hosting.Python v13.6.5
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
namestringThe name of the resource.
appDirectorystringThe path to the directory containing the python application.
moduleNamestringThe name of the Python module to run (e.g., "flask", "uvicorn").
PythonAppResource

Applies to

This method applies to the following types: