https://github.com/defnull/venv
venv - python virtualenv shortcut
https://github.com/defnull/venv
Last synced: 12 months ago
JSON representation
venv - python virtualenv shortcut
- Host: GitHub
- URL: https://github.com/defnull/venv
- Owner: defnull
- Created: 2013-04-25T23:04:19.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-11T14:25:59.000Z (about 13 years ago)
- Last Synced: 2025-06-03T18:56:24.669Z (about 1 year ago)
- Language: Shell
- Size: 96.7 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
venv - python virtualenv shortcuts
###############################################################################
``venv`` is a small bash script that helps bootstrapping and managing a custom python environment in your home directory. It uses ``virtualenv`` and ``pip`` internally and is really just a little helper script. No magic.
If you run it for the first time, `venv` creates a single virtual environment in ``$HOME/.venv/`` for you. If ``virtualenv`` is not installed on your system, a fresh copy is downloaded from online sources. No need to download ``virtualenv``, ``setuptools`` or ``pip`` manually.
Usage
-----
``venv`` or ``venv python``
Run a python shell. This is a shortcut for ``'$HOME/.venv/bin/activate; python'``
``venv PROG``
Run a programm or script installed to ``$HOME/.venv/bin/``. (e.g. ``venv ipython``).
``venv PIP_COMMAND``
Run pip with the specified command (e.g. ``venv install ipython``).
``venv MODULE``
Run a python module as a script (same as ``venv python -m MODULE``)