Skip to main content
https://pypip.in/d/ven/badge.png https://pypip.in/v/ven/badge.png https://pypip.in/license/ven/badge.png

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'

Download files

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

Source Distribution

ven-0.4.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ven-0.4.1-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ven-0.4.1.tar.gz.

File metadata

  • Download URL: ven-0.4.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ven-0.4.1.tar.gz
Algorithm Hash digest
SHA256 641a3e421e2e2abbe6b7aaee5d6338d66e784e65c50bf07b49a604867099e8c3
MD5 8e2309c523399c09e5b9b5d53199de9c
BLAKE2b-256 719856a9386c00a116f3249a02ef3ca702c17aca86173ca77cd896b8d0438552

See more details on using hashes here.

File details

Details for the file ven-0.4.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ven-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ceeafc7e30cbc20bf7690f0f744ce501f705535faae134641f6d8305ccc96643
MD5 20a17acd79662ce41c5dbe44c22d04f5
BLAKE2b-256 1a675d72819da347cfbdff88fef81e2c15a111cf1df9aa9d26bb804f32ec60a9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 files

0.4.0

2 files

0.3.0

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page