PythonAppResource.WithUv
Method
type PythonAppResource interface { // ... omitted for brevity WithUv(options ...*WithUvOptions) PythonAppResource}Signature
method
WithUv builderAdds a UV environment setup task to ensure the virtual environment exists before running the Python application.
WithUv(options ...*WithUvOptions) PythonAppResourceParameters
options...*WithUvOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithUvOptions argument.
Install*boolWhen true (default), automatically runs uv sync before the application starts. When false, only sets the package manager annotation without creating an installer resource.Args[]string Optional custom arguments to pass to the uv command. If not provided, defaults to ["sync"].Returns
PythonAppResource The resource builder.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: