Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithEntrypoint

Method
📦 Aspire.Hosting.Python v17.0.0
func (PythonAppResource) 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().

Applies to

This method applies to the following types: