# withEntrypoint

- Module: [Aspire.Hosting.Python](/reference/api/typescript/aspire.hosting.python.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Configures the entrypoint for the Python application.

## Definition

```typescript
interface PythonAppResource {
  // ... omitted for brevity
  withEntrypoint(
    entrypointType: EntrypointType,
    entrypoint: string): PythonAppResource
}
```

## Parameters

- `entrypointType` ([EntrypointType](/reference/api/typescript/aspire.hosting.python/entrypointtype.md))
- `entrypoint` (`string`)

## Returns

[PythonAppResource](/reference/api/typescript/aspire.hosting.python/pythonappresource.md) `builder`

## Applies to

- [PythonAppResource](/reference/api/typescript/aspire.hosting.python/pythonappresource.md)
- [UvicornAppResource](/reference/api/typescript/aspire.hosting.python/uvicornappresource.md)
