Skip to main content

A lightweight virtualenvwrapper replacement for uv

Project description

uv-virtualenvwrapper

A lightweight replacement for virtualenvwrapper when using uv.

Provides simple management of named Python virtual environments with tab completion support. Virtual environments are stored in ~/.virtualenvs by default and can be activated with workon myenv anywhere in the filesystem. Only basic functions of virtualenvwrapper are replicated, such as mkvirtualenv, rmvirtualenv, and workon.

Features

  • workon: Activate virtual environments with tab completion
  • mkvirtualenv: Create new virtual environments using uv venv --seed
  • rmvirtualenv: Remove virtual environments
  • Bash and zsh shell support
  • Follows WORKON_HOME convention (default: ~/.virtualenvs)

Installation

Method 1: Direct Download

  1. Download the script: Download uv-virtualenvwrapper.sh.
  2. Add to shell config Add
    source /path/to/uv-virtualenvwrapper.sh
    
    to your shell configuration file (~/.bashrc or ~/.zshrc).

Usage

Create a new virtual environment:

mkvirtualenv myenv

which is equivalent to this uv command:

uv venv --seed  ~/.virtualenvs/myenv && source ~/.virtualenvs/myenv/bin/activate

All arguments to mkvirtualenv are passed to uv venv --seed.

Deactivate the virtual environment as usual with:

deactivate

Now you can activate the virtual environment wherever you are in the filesystem with:

workon myenv

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

uv_virtualenvwrapper-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file uv_virtualenvwrapper-0.1.0.tar.gz.

File metadata

  • Download URL: uv_virtualenvwrapper-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for uv_virtualenvwrapper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 58507c90d867d6338981522dd63460f94379768f1d29e87db8dbdd6d2f2b3c2c
MD5 820433d4068102e10f2990fc2533fee6
BLAKE2b-256 bc206f75d412111aca2958cdbc71b025d3ddc5a9ad8c943143366c9f1d64ecd1

See more details on using hashes here.

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