UvicornAppResource Constructors
Class Constructors 1 member
Represents a Uvicorn-based Python application resource that can be managed and executed within a Python environment.
Constructor(string, string, string) Section titled Constructor(string, string, string) Represents a Uvicorn-based Python application resource that can be managed and executed within a Python environment.
public class UvicornAppResource{ public UvicornAppResource( string name, string executablePath, string appDirectory) { // ... }}Parameters
name string The unique name used to identify the Uvicorn application resource. executablePath string The path to the Python executable. This is typically the Python executable within a virtual environment. appDirectory string The working directory for the Uvicorn application. This is typically the root directory of your Python project containing your ASGI application module. Remarks
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.