This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Easy way to use virtualenv.

Project Description

Easy way to use virtualenv.

Features

  • Store virtualenv in .venv directory, along with your .git and requirements.txt
  • Run command inside virtualenv without activating it.

Install

$ pip install --user ven

Quickstart

Initialize an empty virtualenv using ven init:

$ ven init
New python executable in .venv/bin/python
Installing setuptools, pip...done.

$ ls -A
.venv

Run command inside virtualenv using ven run:

$ ven run which python
~/project/.venv/bin/python

Activate virtualenv in a sub-shell:

$ ven run
$ which python
~/project/.venv/bin/python
$ (Deactivate with Ctrl-D)

Usage

Usage: ven [OPTIONS] COMMAND [ARGS]...

  Easy way to use virtualenv

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  help  Show help information
  init  Create a new virtualenv
  run   Run command in virtualenv (default: shell)

Caveats

Use ‘–’ to separate ven run options and command that contains ‘-‘:

$ ven run -- python --version
Python 2.7.5

oh-my-zsh overwrites $PATH, add the following to your .zshrc:

if [ -n "$VIRTUAL_ENV" ]; then
    export PATH="$VIRTUAL_ENV/bin:$PATH"
fi

Recommanded aliases:

alias vrun='ven run --'
alias vpy='ven run -- python'
alias vpip='ven run -- pip'
Release History

Release History

This version
History Node

0.4.1

History Node

0.4.0

History Node

0.3.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ven-0.4.1-py2.py3-none-any.whl (4.6 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Sep 7, 2014
ven-0.4.1.tar.gz (2.8 kB) Copy SHA256 Checksum SHA256 Source Sep 7, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting