Skip to main content

A simple command line tool for python virtual env management.

Project description

pload

A Minimalist Python Virtual Environment Management Tool, support powershell, bash, zsh, fishshell.

License

Overview

pload is a command-line utility designed for efficient management of Python virtual environments. It supports both global environment management and local project-specific environments, with regex pattern matching and pyenv integration capabilities.

Installation

Basic Installation

pip install pload

Shell Autocompletion (Optional)

Add to your shell configuration (~/.bashrc or ~/.zshrc):

eval "$(register-python-argcomplete pload)"

Command Reference

Core Operations

1. Create Global Environment

pload new --version <python_version> [--message <description>] [--channel <pip_channel>] [--requirements <packages>...]

Example:

pload new -v 3.8.10 -m data_analysis -r numpy pandas
# Creates: 3.8.10-data_analysis

2. Initialize Local Environment

pload init --version <python_version> [--channel <pip_channel>] [--requirements <packages>...]

Example:

pload init -v 3.9.5  # Creates .venv in current directory

3. Environment Management

# Remove environments
pload rm --envs <env_names>...  # Explicit names
pload rm --expression <regex>   # Pattern matching

# List environments
pload list [--expression <regex>] [--version]

4. Environment Activation

pload <global_env_name>  # Activate global environment
pload .                 # Activate local .venv

Advanced Operations

Environment Copy (Work in Progress)

pload cp --from <source_env> --to <target_env>

Feature Details

Global Environment Management

  • Stores environments in ~/.pload/venvs
  • Automatic version-message naming convention
  • Supports batch operations using regular expressions

Local Environment Integration

  • Creates .venv directories in project folders
  • Compatible with existing virtual environments

Python Version Management

  • Requires pyenv for version control
  • Lists available Python versions via pload list --version

Common Issues

Q: Environment activation failure

Solution: Verify environment exists in target location:

pload list --expression "<env_name>"

Q: Missing Python versions

Solution: Install required versions through pyenv first:

pyenv install 3.8.10

Q: Local environment detection

Solution: Ensure .venv directory exists in current path before activation

Development Contribution

  1. Clone repository
  2. Create feature branch
  3. Implement changes with test cases
  4. Submit pull request
# Development setup
python setup.py develop

License

Apache License 2.0, Copyright 2025 Yunming Hu.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pload-0.2.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pload-0.2.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file pload-0.2.0.tar.gz.

File metadata

  • Download URL: pload-0.2.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pload-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dfdd04e92776782e5e469c142b0ca842e7491f162b5a9c47ed745c36d7c94c95
MD5 04314229d59f61cbbda41c1ca62964d5
BLAKE2b-256 c03943e28b86f3be0cdb6aa4ca93385a3d53e8abdaaa0cb66a4333fc676fae5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pload-0.2.0.tar.gz:

Publisher: python-publish.yml on HugoPhi/pload

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pload-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pload-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pload-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92ecaea56cc72fff99bb8564b4a96a6135b60c92f6cd1e0bdbb23d2aee835b54
MD5 2096488a3a7a999f193b454a7450e5c4
BLAKE2b-256 e73f9bdff258fb74f784a12c6152a8a3ab8abdda67a0173a27f7ab65dd6a9fa1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pload-0.2.0-py3-none-any.whl:

Publisher: python-publish.yml on HugoPhi/pload

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page