Skip to content
Docs Try Aspire

PythonAppResource

Handle TypeScript
📦 Aspire.Hosting.Python v13.2.0-preview.1.26159.1
interface PythonAppResource
extends IComputeResource,
IContainerFilesDestinationResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IResourceWithServiceDiscovery {
withDebugging(): PythonAppResource;
withEntrypoint(
entrypointType: EntrypointType,
entrypoint: string): PythonAppResource;
withPip(
install?: boolean,
installArgs?: string[]): PythonAppResource;
withUv(
install?: boolean,
args?: string[]): PythonAppResource;
withVirtualEnvironment(
virtualEnvironmentPath: string,
createIfNotExists?: boolean): PythonAppResource;
}

Methods

method withDebugging builder
Enables debugging support for a Python application
withDebugging(): PythonAppResource
PythonAppResource
method withEntrypoint builder
Configures the entrypoint for a Python application
withEntrypoint(
entrypointType: EntrypointType,
entrypoint: string): PythonAppResource
entrypointType EntrypointType
entrypoint string
PythonAppResource
method withPip builder
Configures pip package installation for a Python application
withPip(
install?: boolean,
installArgs?: string[]): PythonAppResource
install boolean optional = True
installArgs string[] optional
PythonAppResource
method withUv builder
Configures uv package management for a Python application
withUv(
install?: boolean,
args?: string[]): PythonAppResource
install boolean optional = True
args string[] optional
PythonAppResource
method withVirtualEnvironment builder
Configures the virtual environment for a Python application
withVirtualEnvironment(
virtualEnvironmentPath: string,
createIfNotExists?: boolean): PythonAppResource
virtualEnvironmentPath string
createIfNotExists boolean optional = True
PythonAppResource