Skip to content
Docs Try Aspire
Docs Try

withUv

Method
📦 Aspire.Hosting.Python v13.4.0
interface PythonAppResource {
// ... omitted for brevity
withUv(
install?: boolean,
args?: string[]): PythonAppResource;
}

Signature

method withUv builder
Adds a UV environment setup task to ensure the virtual environment exists before running the Python application.
withUv(
install?: boolean,
args?: string[]): PythonAppResource
install boolean optional = True
args string[] optional
PythonAppResource

Applies to

This method applies to the following types: