Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Extending Profiles & Workflows

Adding a New Optional Profile

Drop any .ini file into profiles\ — no PowerShell code changes are required. Get-PythonProfilesCatalog discovers it automatically.

[Profile]
Name = Corporate PyPI
Description = Configures internal PyPI mirror, trusted host, and proxy defaults.

[PipConfig]
index-url = https://pypi.internal.example/simple
trusted-host = pypi.internal.example
prefer-binary = true

[Packages]
uv
ruff
pytest

[Venvs]
create = dev
upgrade_pip = true

[Env]
REQUESTS_CA_BUNDLE = {data_dir}\corp-ca.pem

Adding a New configure.ps1 Mode

  1. Add the mode name to the [ValidateSet(...)] attribute on $Mode in src\configure.ps1.
  2. Add a corresponding branch in the switch ($Mode) dispatcher.
  3. Optionally expose it in the interactive menu and document it in docs\user\cli-reference.md and README.txt.