PythonAppResource
Handle
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;}5 members
Methods
Enables debugging support for the Python application.
withDebugging(): PythonAppResourceReturns
PythonAppResourceConfigures the entrypoint for the Python application.
withEntrypoint( entrypointType: EntrypointType, entrypoint: string): PythonAppResourceParameters
entrypointTypeEntrypointTypeentrypointstringReturns
PythonAppResourceConfigures the Python resource to use pip as the package manager and optionally installs packages before the application starts.
withPip( install?: boolean, installArgs?: string[]): PythonAppResourceParameters
installbooleanoptional= TrueinstallArgsstring[]optionalReturns
PythonAppResourceAdds a UV environment setup task to ensure the virtual environment exists before running the Python application.
withUv( install?: boolean, args?: string[]): PythonAppResourceParameters
installbooleanoptional= Trueargsstring[]optionalReturns
PythonAppResourceConfigures a custom virtual environment path for the Python application.
withVirtualEnvironment( virtualEnvironmentPath: string, createIfNotExists?: boolean): PythonAppResourceParameters
virtualEnvironmentPathstringcreateIfNotExistsbooleanoptional= TrueReturns
PythonAppResource