Skip to main content

pip/virtualenv shell script wrapper

Project description

orb
===

A utility wrapper for pip_ and virtualenv_.

description
-----------

A shell script facade for creating virtual python environments via virtualenv_
and installing packages within the environment via pip_.

install
-------

virtualenv_ must be available, eg. in Ubuntu:

$ sudo apt-get install python-virtualenv

pip_ need not be available - it is installed every time to a new environment.

To install, use easy_install to install from pypi.python.org::

easy_install -Z orb

or simply copy the orb script from the source distribution, eg. ::

$ sudo cp orb /usr/local/bin

usage
-----

Create a virtualenv with the command

$ orb init myenv

or

$ orb init2 myenv

to use the latest Python2 as the executable, or

$ orb init3 myenv

to use the latest Python3 as the executable, or

$ orb init?.? myenv

(eg. orb init2.6 or orb init3.2) to specify a particular Python version as
the executable.

.. note::

the various python versions are assumed to be installed and on the user's
PATH

This creates a virtualenv called 'myenv' and creates an empty '.orb'
file within the virtualenv directory. Subsequent orb commands first search
for the '.orb' file and from this file's location the virtualenv's bin directory
is known.

To install packages to the env, run the 'orb install' command from within the
env directory::

cd myenv
orb install Pygments
orb install BeautifulSoup

which calls 'pip_' to do the actual downloading and installation.

If passed a python script, orb will call it using the virtualenv's python

eg. orb setup.py install

and if passed any command expression, orb will temporarily alter the
environment (ie. pip's `source activate` step) before eval-ing the command::

eg. (Django): orb django-admin.py startproject myproj
eg. (Python prompt): orb python
eg. (Sphinx quickstart): orb sphinx-quickstart
eg. (Sphinx build): orb make html
eg. (Arbitrary command) orb ./myshellscript

Other options:

orb ls - list contents of env's site-packages directory
orb link - symlink from the virtual env's site-packages to a system package
orb download PACKAGE [DEST]
- just download package, don't install


.. _virtualenv: http://pypi.python.org/pypi/virtualenv/
.. _pip: http://pip.openplans.org/index.html

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

orb-0.9.4.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file orb-0.9.4.tar.gz.

File metadata

  • Download URL: orb-0.9.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for orb-0.9.4.tar.gz
Algorithm Hash digest
SHA256 90b4b93f122330fe17d64a12d36932c2efc9d9e6b6443b5a95948b5547f749d0
MD5 5757eb741671767c99d2b3de882c3537
BLAKE2b-256 cf6e0395ccf8a85879dcf75449065ee327d014526260171f695415ad50efc956

See more details on using hashes here.

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