Skip to content
Docs Try Aspire

UvicornAppResource

Class net10.0
📦 Aspire.Hosting.Python v13.1.2
Represents a Uvicorn-based Python application resource that can be managed and executed within a Python environment.
namespace Aspire.Hosting.Python;
public class UvicornAppResource
: Aspire.Hosting.Python.PythonAppResource
{
// ...
}

This resource is specifically designed for Python web applications that use Uvicorn as their ASGI server, which is commonly used with frameworks like FastAPI, Starlette, and other ASGI applications.

The resource automatically configures HTTP endpoints and sets up appropriate Uvicorn-specific command-line arguments for host binding and port configuration.