# Aspire.Hosting.Python

- Module: `Aspire.Hosting.Python`
- Version: `13.4.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `9`
- Types: `3`

## Types

- [PythonAppResource](/reference/api/typescript/aspire.hosting.python/pythonappresource.md) -- `handle` - 5 members
- [UvicornAppResource](/reference/api/typescript/aspire.hosting.python/uvicornappresource.md) -- `handle` - 0 members

## Functions

- [addPythonApp](/reference/api/typescript/aspire.hosting.python/addpythonapp.md) -- `method` -- Adds a Python application to the application model.
- [addPythonExecutable](/reference/api/typescript/aspire.hosting.python/addpythonexecutable.md) -- `method` -- Adds a Python executable to the application model.
- [addPythonModule](/reference/api/typescript/aspire.hosting.python/addpythonmodule.md) -- `method` -- Adds a Python module to the application model.
- [addUvicornApp](/reference/api/typescript/aspire.hosting.python/adduvicornapp.md) -- `method` -- Adds a Uvicorn-based Python application to the distributed application builder with HTTP endpoint configuration.
- [withDebugging](/reference/api/typescript/aspire.hosting.python/withdebugging.md) -- `method` -- Enables debugging support for the Python application.
- [withEntrypoint](/reference/api/typescript/aspire.hosting.python/withentrypoint.md) -- `method` -- Configures the entrypoint for the Python application.
- [withPip](/reference/api/typescript/aspire.hosting.python/withpip.md) -- `method` -- Configures the Python resource to use pip as the package manager and optionally installs packages before the application starts.
- [withUv](/reference/api/typescript/aspire.hosting.python/withuv.md) -- `method` -- Adds a UV environment setup task to ensure the virtual environment exists before running the Python application.
- [withVirtualEnvironment](/reference/api/typescript/aspire.hosting.python/withvirtualenvironment.md) -- `method` -- Configures a custom virtual environment path for the Python application.

## Enums

- [EntrypointType](/reference/api/typescript/aspire.hosting.python/entrypointtype.md) -- `enum` - 3 values -- Specifies the type of entrypoint for a Python application.
