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

Configuration (config.ini & python.ini)

Configuration is split into two files at the repository root:

  • config.ini — Manager behavior, default install path template, release selection, automation toggles, profile pointers, and log retention.
  • python.ini — Personal Python & pip preferences ([PipConfig], [Packages], [Venvs], and [Env]), which always override any optional profile in profiles\.

config.ini Reference

Leave any [General] toggle blank to be prompted interactively at runtime. Command-line flags always take precedence over config.ini.

[General]

KeyValuesDescription
DefaultInstallDirPath template or blankSupports {program_name}, {channel}, {major}, {minor}, {version}, {arch}. Example: D:\CLI\{program_name}-{minor}.
DefaultChannelstable, prerelease, freethreaded, <major.minor>, or blankLeave blank to display the live interactive version picker (Enter = Latest Stable).
DefaultVersionExact version (e.g. 3.14.10) or blankPins a specific release when set.
DefaultArchx64, arm64, x86Target Windows CPU architecture (default: x64).
VerifyChecksumtrue / falseValidates downloaded ZIP SHA-256 against index-windows.json hash.sha256 (default: true).
AutoBootstrapPiptrue / false / blankRuns bundled python -m ensurepip --default-pip if pip is missing.
AutoAddPathtrue / false / blankAdds <InstallDir> and <InstallDir>\Scripts to User PATH.
AutoAddRegistrytrue / false / blankRegisters PEP 514 HKCU\Software\Python\PythonCore\<Tag> and App Paths.
AutoSetPortableEnvtrue / false / blankSets PIP_CONFIG_FILE, PIP_CACHE_DIR, PYTHONUSERBASE, PYTHON_HISTORY, and WORKON_HOME.
AutoAddContextMenutrue / false / blankRegisters "Open Python Prompt Here" Explorer right-click menus under HKCU.
AutoConfigurePiptrue / false / blankApplies resolved [PipConfig] settings to <InstallDir>\data\pip.ini.
OverwriteExistingPipInitrue / falsefalse merges non-destructively (keeps existing user keys); true enforces INI keys.
AutoInstallPackagestrue / false / blankInstalls [Packages] from loaded INI profiles.
AutoCreateVenvstrue / false / blankCreates named portable virtual environments from [Venvs] under data\venvs\.

[Profiles] & [Logging]

KeyDescription
OptionalProfilesComma-separated profile names from profiles\ (or relative/absolute .ini paths). Leave blank to load none.
PythonConfigFilePersonal INI file (default: python.ini). Overrides any optional profiles.
LogRetentionDaysDays to keep daily log files under logs\ before automatic pruning (default: 30).
LogFilePrefixCustom prefix for logs\<prefix>-YYYY-MM-DD.log (blank uses the project folder name).

python.ini Reference

Supported path expansion tokens inside [PipConfig] and [Env] values:

  • {install_dir} — Portable Python root directory
  • {scripts_dir} — <InstallDir>\Scripts
  • {data_dir} — <InstallDir>\data
  • {pip_cache} — <InstallDir>\data\pip-cache
  • {user_site} — <InstallDir>\data\user-site
  • {venvs_dir} — <InstallDir>\data\venvs

Example python.ini:

[Profile]
Name = Personal Python Configuration
Description = Personal pip.ini settings, packages, portable venvs, and env overrides.

[PipConfig]
disable-pip-version-check = true
prefer-binary = true

[Packages]
uv
ruff
pytest

[Venvs]
create = dev, tools
upgrade_pip = true

[Env]
PYTHONUTF8 = 1