Giter Club home page Giter Club logo

ven's Introduction

ven

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'

ven's People

Contributors

invl avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.