Skip to main content

pload

pload welcome screen on macOS

A macOS example of the post-install welcome screen. The SVG is scalable, so it stays sharp in the repository and in a high-resolution browser view.

pload is a relocatable Python runtime and virtual-environment manager for Bash, Zsh, Fish, and PowerShell. The tool, downloaded Python runtimes, managed environments, state, and caches can all be placed in user-selected directories.

pyenv is supported for compatibility, but is not required.

Install the small bootstrap package with pip, then run the guided installer:

python -m pip install --user --upgrade pload
python -m pload.installer

Using the Tsinghua PyPI mirror for the bootstrap package:

python -m pip install --user --upgrade pload \
  -i https://pypi.tuna.tsinghua.edu.cn/simple
python -m pload.installer --pip-source tsinghua

On Windows, py can replace python:

py -m pip install --user --upgrade pload
py -m pload.installer

The guided installer explains every directory, then presents colored, numbered menus for source and shell choices. Press Enter to accept the marked default. It asks for:

  • the pload data directory;
  • the stable executable bin directory;
  • the managed virtual-environment directory;
  • the downloaded Python directory;
  • the Python runtime download source;
  • the Python package index;
  • whether to update a shell profile.

Built-in package-index presets are:

  1. official — https://pypi.org/simple
  2. tsinghua — https://pypi.tuna.tsinghua.edu.cn/simple
  3. ustc — https://mirrors.ustc.edu.cn/pypi/simple
  4. aliyun — https://mirrors.aliyun.com/pypi/simple
  5. custom — any compatible private or public index

The Python-runtime source is selected separately because an ordinary PyPI mirror cannot host uv's python-build-standalone runtime archives.

It then creates a private runtime under PLOAD_HOME/runtime and writes a stable pload executable into the selected bin directory. The executable does not depend on a project virtual environment, so deleting or activating an environment managed by pload cannot remove or shadow the tool itself.

After installation, pload prints an ASCII welcome screen with the next commands, the launcher path, and the selected data directories. This makes the first successful run actionable without needing to remember another setup command.

For a fully non-interactive installation:

python -m pload.installer --yes \
  --home /mnt/tools/pload \
  --bin-dir ~/.local/bin \
  --venvs-dir /mnt/venvs \
  --python-dir /mnt/python \
  --source ustc \
  --pip-source tsinghua

--yes never edits a shell profile unless --shell is also supplied.

If pipx is already available, pipx install pload is the shortest isolated installation. Run pload-install afterward only when you want the guided directory and Python-source configuration.

Shell activation

The guided installer can add the initialization block. To configure it manually:

# Bash
eval "$(pload shell-init bash)"

# Zsh
eval "$(pload shell-init zsh)"

# Fish
pload shell-init fish | source

PowerShell:

Invoke-Expression (& pload shell-init powershell | Out-String)

Python versions without pyenv

pload uses uv as its default managed-Python backend. The guided installer places uv in pload's private runtime, while Python installations and caches go to the configured pload directories.

pload python install 3.12
pload python list
pload python list --filter uv,conda
pload python path 3.12
pload new --name data --version 3.12

pload python list discovers usable Python 3 interpreters from the operating system, PATH, uv, pyenv, Conda, mise, asdf, Homebrew, and the Windows Python Launcher. Results are deduplicated by resolved executable path:

VERSION  TYPE      PATH
-------  --------  ----
3.9.6    sys       /usr/bin/python3
3.11.10  conda     /opt/miniconda3/envs/data/bin/python
3.12.8   uv        /data/pload/pythons/cpython-3.12.8/bin/python3.12
3.13.3   homebrew  /opt/homebrew/Cellar/python@3.13/.../python3.13

Filter one or more source types with commas or spaces:

pload python list --filter uv,conda
pload python list --filter uv conda

Available types are sys, pyenv, uv, conda, mise, asdf, homebrew, and other. The compatibility aliases system and managed map to sys and uv respectively.

Python itself does not publish one portable binary distribution covering all supported platforms. uv therefore uses the CPython builds from Astral's python-build-standalone project.

Available runtime source choices:

  • official: Astral's GitHub releases;
  • ustc: the documented USTC GitHub-release mirror;
  • custom: any compatible HTTPS mirror or local file:// mirror.

Examples:

# USTC runtime mirror
python -m pload.installer --yes --no-runtime-install --source ustc

# Private mirror with uv-compatible directory layout
python -m pload.installer --yes --no-runtime-install \
  --source custom \
  --mirror-url https://mirror.example/python-build-standalone/releases/download

# Fully custom uv download metadata
python -m pload.installer --yes --no-runtime-install \
  --source custom \
  --mirror-url file:///mnt/mirror \
  --downloads-json-url /mnt/mirror/python-downloads.json

Mirror configuration is stored in PLOAD_HOME/config.json and applied only to pload operations. It does not need to be exported globally from a shell profile. Use pload config show to inspect the effective configuration.

Third-party mirrors are availability and trust choices made by the user. pload does not disable uv's normal archive metadata and integrity handling.

Create and activate environments

The result is intentionally easy to scan in a terminal:

pload list on macOS

The newest environment appears first. IDs remain stable while an environment exists and are reused from the first available number after removal.

pload new --name data --description "Data analysis"
pload new --name web --version 3.12 -d "Web development"
pload list
pload v1                              # activate by stable ID
pload data                            # names continue to work

pload init -d "Current project"       # create and register .venv here
pload .                               # activate it
pload init -r pytest requests         # install packages too

Every environment created by pload receives a stable ID such as v1, v2, or v3. When an environment is removed, its first available ID can be reused. Existing environments under the managed root are assigned IDs automatically the first time they are listed. The ID registry is stored under the configurable state directory, so it remains inside the user's isolated pload layout.

pload list uses a Rich table and shows ID, name, Python version, description, and full path. Color is enabled on terminals and can be disabled with the standard NO_COLOR environment variable. --version also accepts an exact interpreter path.

Environment creation displays a lightweight spinner in an interactive terminal. When output is redirected, or when running in CI, pload automatically emits ordinary stable log lines instead.

Short aliases and help

Common commands have concise aliases:

Full command Aliases
pload new —
pload init pload i
pload list pload ls
pload rm pload remove, pload del, pload delete
pload python pload py
pload path pload p
pload config pload cfg
pload shell-init pload shell

Python subcommands also accept ls and p; the explicit install command has no alias because it is already short and unambiguous:

pload py ls --filter uv,conda
pload python install 3.12
pload py p 3.12

Help has two levels:

pload -h                 # compact colored command guide
pload -h -d              # practical walkthrough with examples and effects
pload new -h             # compact command help
pload new -h -d          # creation examples, output, side effects, and failures
pload py ls -h -d        # discovery examples and what the scan changes
pload-install -h         # compact installer guide
pload-install -h -d      # guided prompts, resulting layout, and shell changes

Every brief -h view lists all positional arguments and all options with their short and long spellings. The -d form keeps that reference and adds practical examples, expected output, side effects, and failure behavior.

Environment IDs are stable while an environment exists, and deleted IDs are reused from the first available number. pload list displays environments newest-first by creation time so the most recently created entry is always at the top.

Every long option has a short spelling shown in help, for example pload new -n data -v 3.12 -d "Data analysis". The -d option remains the description shorthand for new and init when -h is not present. Detailed help is intentionally task-oriented: the related-options table appears only after copyable commands, expected output, explanations, and on-disk effects.

Directory isolation

Put all pload-managed data under one root:

export PLOAD_HOME=/mnt/workspace/.pload
pload new --name tools

The guided layout is:

PLOAD_HOME/
├── config.json
├── runtime/       # pload and uv only
├── pythons/       # downloaded Python runtimes
├── python-bin/    # links to managed Python executables
├── cache/python/
├── state/
└── venvs/

Override roots with PLOAD_VENVS_DIR and PLOAD_STATE_DIR, or the global --home, --venvs-dir, and --state-dir options.

Projects and virtual environments can be placed independently:

pload init \
  --project-dir /mnt/projects/example \
  --venv-dir /mnt/environments/example

Existing 0.3 installations are detected automatically when a populated ~/venvs is present and no explicit path has been configured.

Discover commands

pload -h
pload new -h -d
pload init -h -d
pload python -h -d
pload-install -h -d

Other useful commands:

pload list
pload path v1
pload path data
pload rm v1 --yes
pload rm data
pload rm data --yes
pload rm --expression '^test-'
pload config show
pload cfg set source ustc
pload cfg set pip-source tsinghua
pload cfg set venvs-dir ~/venvs
pload cfg -t

pload cfg set changes one setting without reinstalling pload or uv. pload cfg -t reopens the colored setup wizard, reuses the current values as defaults, and updates only configuration plus the selected shell profile.

Development

python -m pip install -e '.[test]'
pytest
ruff check src tests

License

Apache License 2.0. Copyright 2025 Yunming Hu.

Metadata

Release files for pload 0.8.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pload 0.8.7
File Size Uploaded Provenance Actions
pload-0.8.7.tar.gz 45.7 kB With provenance Details for pload-0.8.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pload 0.8.7
File Interpreter ABI Platform Actions
pload-0.8.7-py3-none-any.whl Python 3 none any Details for pload-0.8.7-py3-none-any.whl

Total release size: 86.8 kB

Release files / pload-0.8.7.tar.gz

Download URL pload-0.8.7.tar.gz
Size 45.7 kB
Tags Source
SHA-256 checksum
How to use checksums
eb7b81c240d3476a8effebe13c1ee39b3f397614822f535c253ae5d18949ab48
BLAKE2b-256 checksum
How to use checksums
5b754c6a21217083ff73440d262119ddbf02f9b8ad84028fc63527bd3704e7cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / pload-0.8.7-py3-none-any.whl

Download URL pload-0.8.7-py3-none-any.whl
Size 41.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20008f3c2ae912c000440579300508374186c681e5810e9f89f58d9310f7297a
BLAKE2b-256 checksum
How to use checksums
69a28b866cc7ff0a31e83e7f8b255230e05c008d11da1557059bf972398a2410
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Security for pload 0.8.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pload-0.8.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.7 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page