Skip to main content

Tool to manage your virtualenvs

Project description

# virtualenv-mgr

Tool to manage multiple virtualenv environments. Uses a file with the paths to multiple virtuale environments to manage all at the same time. You can install / deinstall packages and upgrade spesific ones. The tool can print out a statistic about the usage of packages over all environments.

## Quickstart

Install envmanager:

pip install git+https://github.com/arteria/virtualenv-mgr.git git+https://github.com/arteria/virtualenv-api.git

## Usage

### Find environments with -z/–envfreeze

Find all virtualenvs ar your current location / subdictionarys (look for the ‘/bin/activate’ pattern)

virtualenv-mgr –envfreeze virtualenv-mgr -z

Define a searchroot, where the scrip should search in:

virtualenv-mgr –envfreeze –searchroot /Users/name/workspace/2014 virtualenv-mgr -zs /Users/name/workspace/2014

Save the paths to a file which you can use later.

virtualenv-mgr -zs /Users/name/workspace/2014 > example-env-file.txt

### Define Environments

Environments from a list:

virtualenv-mgr example-env-file.txt

Or input over a pipe:

virtualenv-mgr –envfreeze | virtualenv-mgr

No arguments –> active virtualenv

virtualenv-mgr

### Actions

Install a package / multiple packages

virtualenv-mgr example-env-file.txt -i “django==1.4.16,djangotransmeta”

Uninstall a package / multiple packages

virtualenv-mgr example-env-file.txt -u “django==1.4.16”

Find packages / multiple packages (can look for exact packages ‘==’ or if the package is installed)

virtualenv-mgr example-env-file.txt -f “django==1.4.6”

Install or Uninstall packages in envs where certain other packages are installed.

virtualenv-mgr example-env-file.txt -f “django==1.4.12” -i “django==1.4.16” -u “django-transmeta”

All virtual-environments which have installed django==1.4.12 will install django==1.4.16 and uninstall django-transmeta.

### Pip Histo

print the pip histo ( overview over all installed packages)

virtualenv-mgr example-env-file.txt -p

Distinguishes between different versions

virtualenv-mgr example-env-file.txt -p -v

Take eggs into the histo

virtualenv-mgr example-env-file.txt -p -e

Combine

virtualenv-mgr example-env-file.txt -pve

###Help:

Envfreeze: * -z, –envfreeze, prints all the envs on . * -s SEARCHROOT, –searchroot SEARCHROOT, path for envfreeze, where to search

Actions * -f FIND, –find FIND find app, use commas to search for more * -i INSTALL, –install INSTALL installes an app, use commas to add more * -u UNINSTALL, –uninstall UNINSTALL uninstalles an app, use commas to add more

Pip Histo * -p, –piphisto, pip histogram * -e, –egg, pip histogram takes eggs into consideration * -v, –version, pip histogram takes versions into consideration

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

virtualenv-mgr-1.0.0.tar.gz (5.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page