# PythonAppResource.withEntrypoint

- Module: [Aspire.Hosting.Python](/reference/api/typescript/aspire.hosting.python.md)
- Defined on: [PythonAppResource](/reference/api/typescript/aspire.hosting.python/pythonappresource.md)
- Version: `13.4.0`
- Kind: `method`

Configures the entrypoint for the Python application.

## Definition

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

## Signature

```typescript
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`

## Defined on

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