An open API service indexing awesome lists of open source software.

https://github.com/dolph/virtualenvwrapperlite

Simple commands to make it easier to work with virtualenv.
https://github.com/dolph/virtualenvwrapperlite

Last synced: about 1 year ago
JSON representation

Simple commands to make it easier to work with virtualenv.

Awesome Lists containing this project

README

          

`virtualenvwrapperlite`
=========================

`virtualenvwrapperlite` is a "rewrite" of [Doug Hellmann's
`virtualenvwrapper`](https://pypi.python.org/pypi/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`](https://pypi.python.org/pypi/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