Share via


PythonAppResourceBuilderExtensions Class

Definition

Provides extension methods for adding Python applications to an IDistributedApplicationBuilder.

public static class PythonAppResourceBuilderExtensions
type PythonAppResourceBuilderExtensions = class
Public Module PythonAppResourceBuilderExtensions
Inheritance
PythonAppResourceBuilderExtensions

Methods

AddPythonApp(IDistributedApplicationBuilder, String, String, String, String, String[])
Obsolete.

Adds a python application with a virtual environment to the application model.

AddPythonApp(IDistributedApplicationBuilder, String, String, String, String[])
Obsolete.

Adds a python application with a virtual environment to the application model.

AddPythonApp(IDistributedApplicationBuilder, String, String, String)

Adds a Python application to the application model.

AddPythonExecutable(IDistributedApplicationBuilder, String, String, String)

Adds a Python executable to the application model.

AddPythonModule(IDistributedApplicationBuilder, String, String, String)

Adds a Python module to the application model.

AddUvicornApp(IDistributedApplicationBuilder, String, String, String)

Adds a Uvicorn-based Python application to the distributed application builder with HTTP endpoint configuration.

WithDebugging<T>(IResourceBuilder<T>)

Enables debugging support for the Python application.

WithEntrypoint<T>(IResourceBuilder<T>, EntrypointType, String)

Configures the entrypoint for the Python application.

WithPip<T>(IResourceBuilder<T>, Boolean, String[])

Configures the Python resource to use pip as the package manager and optionally installs packages before the application starts.

WithUv<T>(IResourceBuilder<T>, Boolean, String[])

Adds a UV environment setup task to ensure the virtual environment exists before running the Python application.

WithVirtualEnvironment<T>(IResourceBuilder<T>, String, Boolean)

Configures a custom virtual environment path for the Python application.

Applies to