Skip to content
DocsTry Aspire
DocsTry

PythonAppResource.withUv

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

Signature

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

Defined on

This method is defined on the following type: