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 inprofiles\.
config.ini Reference
Leave any [General] toggle blank to be prompted interactively at runtime. Command-line flags always take precedence over config.ini.
[General]
| Key | Values | Description |
|---|---|---|
DefaultInstallDir | Path template or blank | Supports {program_name}, {channel}, {major}, {minor}, {version}, {arch}. Example: D:\CLI\{program_name}-{minor}. |
DefaultChannel | stable, prerelease, freethreaded, <major.minor>, or blank | Leave blank to display the live interactive version picker (Enter = Latest Stable). |
DefaultVersion | Exact version (e.g. 3.14.10) or blank | Pins a specific release when set. |
DefaultArch | x64, arm64, x86 | Target Windows CPU architecture (default: x64). |
VerifyChecksum | true / false | Validates downloaded ZIP SHA-256 against index-windows.json hash.sha256 (default: true). |
AutoBootstrapPip | true / false / blank | Runs bundled python -m ensurepip --default-pip if pip is missing. |
AutoAddPath | true / false / blank | Adds <InstallDir> and <InstallDir>\Scripts to User PATH. |
AutoAddRegistry | true / false / blank | Registers PEP 514 HKCU\Software\Python\PythonCore\<Tag> and App Paths. |
AutoSetPortableEnv | true / false / blank | Sets PIP_CONFIG_FILE, PIP_CACHE_DIR, PYTHONUSERBASE, PYTHON_HISTORY, and WORKON_HOME. |
AutoAddContextMenu | true / false / blank | Registers "Open Python Prompt Here" Explorer right-click menus under HKCU. |
AutoConfigurePip | true / false / blank | Applies resolved [PipConfig] settings to <InstallDir>\data\pip.ini. |
OverwriteExistingPipIni | true / false | false merges non-destructively (keeps existing user keys); true enforces INI keys. |
AutoInstallPackages | true / false / blank | Installs [Packages] from loaded INI profiles. |
AutoCreateVenvs | true / false / blank | Creates named portable virtual environments from [Venvs] under data\venvs\. |
[Profiles] & [Logging]
| Key | Description |
|---|---|
OptionalProfiles | Comma-separated profile names from profiles\ (or relative/absolute .ini paths). Leave blank to load none. |
PythonConfigFile | Personal INI file (default: python.ini). Overrides any optional profiles. |
LogRetentionDays | Days to keep daily log files under logs\ before automatic pruning (default: 30). |
LogFilePrefix | Custom 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