muv
A command-line tool for managing global Python virtual environments using uv.
Features
- Create and manage Python virtual environments
- Install and uninstall packages
- Activate and deactivate environments
- List available environments
- Run commands within environments
Installation
Option 1: Using Cargo
Option 2: Download pre-built binaries
- Go to the Releases page
- Download the appropriate binary for your system:
muv-linux-amd64.tar.gzfor Linux (x86_64)muv-linux-arm64.tar.gzfor Linux (ARM64)muv-macos-amd64.tar.gzfor macOS (Intel)muv-macos-arm64.tar.gzfor macOS (Apple Silicon)
- Extract the binary:
- Move the binary to a directory in your PATH:
# Or for a user-local installation: # mkdir -p ~/.local/bin # mv muv ~/.local/bin/ # export PATH="$HOME/.local/bin:$PATH" - Make it executable:
# Or for user-local: # chmod +x ~/.local/bin/muv
Getting Started
After installation, you need to initialize muv in your shell:
# Initialize muv in your shell
# Source your shell configuration to apply changes
Usage
# Create a new environment
# Create a new environment
# Activate an environment
# Install packages
# Run a command in an environment
# Install from requirements.txt file
# Install from pyproject.toml file
Add Auto Complete Support
users can generate completion scripts using:
Bash:
muv completions bash > /usr/local/etc/bash_completion.d/muv
Zsh:
muv completions zsh > "${fpath[1]}/_muv"
Fish:
muv completions fish > ~/.config/fish/completions/muv.fish"
And then source or restart their shell.
Requirements
uvmust be installed and available in your PATH. You can install it following the instructions at https://github.com/astral-sh/uv
License
MIT