Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

PythonAppResource.WithEntrypoint

Method
📦 Aspire.Hosting.Python v17.0.0
type PythonAppResource interface {
// ... omitted for brevity
WithEntrypoint(
entrypointType EntrypointType,
entrypoint string,
) PythonAppResource
}

Signature

methodWithEntrypointbuilder
Configures the entrypoint for the Python application.
WithEntrypoint(
entrypointType EntrypointType,
entrypoint string,
) PythonAppResource
entrypointTypeEntrypointTypeThe type of entrypoint (Script, Module, or Executable).
entrypointstringThe entrypoint value (script path, module name, or executable name).
PythonAppResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: