dolph / virtualenvwrapperlite

Simple commands to make it easier to work with virtualenv.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

virtualenvwrapperlite

virtualenvwrapperlite is a "rewrite" of Doug Hellmann's virtualenvwrapper in bash. The goal to to provide the same developer user experience that the core features of virtualenvwrapper provide to virtualenv, but without the performance overhead and additional complexity of all the features I don't use. If you have a feature request for this project, then you should probably be using virtualenvwrapper instead.

Features

  1. Organizes all of your virtual environments in one place.

  2. Wrappers for managing your virtual environments (create, delete, copy**).**

  3. Use a single command to switch between environments.

  4. Tab completion for commands that take a virtual environment as argument.

  5. User-configurable hooks for all operations.

  6. Plugin system for more creating sharable extensions.

If the crossed out features are appealing to you, use Doug Hellmann's virtualenvwrapper instead.

Usage

Create a Python virtual environment, no matter your working directory, and immediately jump into it:

$ mkvirtualenv my_new_venv
(my_new_venv) $

Similarly, list your available virtual environments:

(my_new_venv) $ lsvirtualenv
my_new_venv
other_venv

Switch to another virtual environment at any time:

(my_new_venv) $ workon other_venv
(other_venv) $

Remove a virtual environment, even if you're still using it:

(other_venv) $ rmvirtualenv other_venv
$

Setup

Similar to virtualenvwrapper, virtualenvwrapperlite supports the WORKON_HOME environment variable for determining the "home" folder for all of your Python virtual environments. If you don't specify a value for WORKON_HOME, it will default to ~/Envs and the directory will be created for you.

Clone this repository, and add the following to your .bashrc or .profile:

export WORKON_HOME=~/Envs
source path/to/virtualenvwrapperlite.sh

About

Simple commands to make it easier to work with virtualenv.

License:Apache License 2.0


Languages

Language:Shell 100.0%