PythonAppResourceBuilderExtensions
Classstaticnet10.0
Provides extension methods for adding Python applications to an
Hosting.IDistributedApplicationBuilder. namespace Aspire.Hosting;
public static class PythonAppResourceBuilderExtensions{ // ...}11 members
Methods11
Section titled MethodsIResourceBuilder<PythonAppResource> Adds a Python application to the application model.
IResourceBuilder<PythonAppResource> Adds a python application with a virtual environment to the application model.
AddPythonApp(IDistributedApplicationBuilder, string, string, string, string, string[])extensionobsoleteIResourceBuilder<PythonAppResource> Adds a python application with a virtual environment to the application model.
IResourceBuilder<PythonAppResource> Adds a Python executable to the application model.
IResourceBuilder<PythonAppResource> Adds a Python module to the application model.
IResourceBuilder<UvicornAppResource> Adds a Uvicorn-based Python application to the distributed application builder with HTTP endpoint configuration.
IResourceBuilder<T> Enables debugging support for the Python application.
IResourceBuilder<T> Configures the entrypoint for the Python application.
IResourceBuilder<T> Configures the Python resource to use pip as the package manager and optionally installs packages before the application starts.
IResourceBuilder<T> Adds a UV environment setup task to ensure the virtual environment exists before running the Python application.
IResourceBuilder<T> Configures a custom virtual environment path for the Python application.