Skip to main content

A simple command line tool for python virtual env management.

Project description

pload

A Minimalist Python Virtual Environment Management Tool

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.1.1.tar.gz (12.1 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.1.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pload-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ce51a305cce142eddbd6939ad6d793cc4f5268fec9f6fbc981b403ee9d753dbe
MD5 b2e37cac4d1487aa86aaaab1b5f93eec
BLAKE2b-256 586a63e53d6f6ee4a4b75518ba5ee882a6dc3bfbabdc066ca3a656f8d948e068

See more details on using hashes here.

Provenance

The following attestation bundles were made for pload-0.1.1.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.1.1-py3-none-any.whl.

File metadata

  • Download URL: pload-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eebca8f0fcf823432a508ca8e7908a9bbbbcafa5410158fb12583636970a2407
MD5 4e36620d5d493e0eac1779c1f7a5641c
BLAKE2b-256 58b5aca42a3e1973960e3bff6b5ab934b251a7a64a96f686eb8f8167eadc5b26

See more details on using hashes here.

Provenance

The following attestation bundles were made for pload-0.1.1-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