Skip to main content
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!

Virtualenv bootstrapper

Project Description

When you are about to create a python program that depends on some packages, you may setup virtualenv and install some packages within that virtualenv manually. This module automatically creates an environment and installs packages in it.

Setup

Requirements

  • python 2.7, 3.3 or later
  • pip
  • virtualenv

Installation

$ pip install vebootstrap

Usage

Importing Pattern

Insert following line into head of your script file, and create a requirements.txt in same directory as necessary.

import vebootstrap

Running that script, it creates a virtualenv and modules will be installed automatically.

Not Importing Pattern

If you do not want to add a unconcerned line, run following command and then virtualenv will be prepared and activated.

python -m vebootstrap [script file]

Example

Case: you want to create a script using `requests` module. (http request library)

Create a script file (eg. get_yahoo.py)

import vebootstrap # you must write this sentence at the first import requests print(requests.get(‘http://yahoo.co.jp’).content[:100])

Create a requirements.txt

requests

Run a script

python get_yahoo.py

At first, virtualenv directory will be created and required packages will be installed. And you get a first line of html of the Yahoo.

Extra Usage

Init virtualenv

Following command initialize virtualenv directory and install modules.

python -m vebootstrap.init

Create a virtualenv bootstrap script

vebootstrap supports creating virtualenv bootstrap script. Run a following command in your scripting directory. The bootstrap script involving requirements.txt will be created.

python -m vebootstrap.create_bootstrap

–after-install option allows you to add another process into the bootstrap script. Please see help.

python -m vebootstrap.create_bootstrap –help
Release History

Release History

This version
History Node

0.0.14

History Node

0.0.13

History Node

0.0.12

History Node

0.0.11

History Node

0.0.10

History Node

0.0.9

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

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
vebootstrap-0.0.14.zip (11.5 kB) Copy SHA256 Checksum SHA256 Source May 12, 2016

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