# UvicornAppResource

- Kind: `class`
- Package: [Aspire.Hosting.Python](/reference/api/csharp/aspire.hosting.python.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Python`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting.Python/UvicornAppResource.cs)
- Inherits: [PythonAppResource](/reference/api/csharp/aspire.hosting.python/pythonappresource.md)

Represents a Uvicorn-based Python application resource that can be managed and executed within a Python environment.

## Definition

```csharp
namespace Aspire.Hosting.Python;

public class UvicornAppResource
    : Aspire.Hosting.Python.PythonAppResource
{
    // ...
}
```

## 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.

## Constructors

- [UvicornAppResource(string, string, string)](/reference/api/csharp/aspire.hosting.python/uvicornappresource/constructors.md#constructor-string-string-string) -- Represents a Uvicorn-based Python application resource that can be managed and executed within a Python environment.
