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 completionmkvirtualenv: Create new virtual environments usinguv venv --seedrmvirtualenv: Remove virtual environments- Bash and zsh shell support
- Follows
WORKON_HOMEconvention (default:~/.virtualenvs)
Installation
Method 1: Direct Download
- Download the script: Download uv-virtualenvwrapper.sh.
- Add to shell config
Add
source /path/to/uv-virtualenvwrapper.sh
to your shell configuration file (~/.bashrcor~/.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58507c90d867d6338981522dd63460f94379768f1d29e87db8dbdd6d2f2b3c2c
|
|
| MD5 |
820433d4068102e10f2990fc2533fee6
|
|
| BLAKE2b-256 |
bc206f75d412111aca2958cdbc71b025d3ddc5a9ad8c943143366c9f1d64ecd1
|