Skip to Content
ASE

Python

The Python programming language through uv, with python, uv and uvx for running code and managing packages.

Usage

.devcontainer/devcontainer.json
{
  "features": {
    "ghcr.io/hansehart/devcontainer-features/python:3": {}
  }
}

Version 3.2.0, see the changelog for what changed.

Options

OptionDefaultDescription
versionlatestChannel (latest), a minor line (major.minor), or an exact version (major.minor.patch).
stateDirIf set, puts this feature's data at this path, which must be inside the remote user's home. Mount a volume there to persist it across rebuilds.
uvVersionlatestuv channel (latest) or an exact version (major.minor.patch).

Customizations

Open Secure Software Suite

The hosts the tool reaches:

HostPortsSecretFor
files.pythonhosted.org443Package downloads
pypi.org443Package index
releases.astral.sh443Python versions uv installs

The variables that set its defaults:

VariableValueFor
UV_CACHE_DIR${stateDir}/cacheuv's cache in the state dir
UV_LINK_MODEcopyWith copy, environments hold copies of the cached packages
UV_PYTHON_DOWNLOADSmanualWith manual, Python versions a project asks for install on explicit request
UV_TOOL_BIN_DIR${stateDir}/binuv's tool commands in the state dir
UV_TOOL_DIR${stateDir}/toolsuv's tools in the state dir

VS Code

The extensions it installs:

On this page