Skip to main content

Lightweight virtualenv orchestration

Project description

This project helps provision virtualenvs and dependencies for your Python code. It works like tox or nox, but your requirements are declared in your script.

Credit to the nox project for much of the implementation.

Installation

Use pip:

pip install --user xox

Usage

Before you import any other third-party modules, include code like:

import xox

xox.activate("lxml", "requests >= 1.0")

This will create a temporary virtualenv, install packages, and call os.exec() to replace the current process. Each virtualenv is stored in a subdirectory of system’s temporary directory named 'xox-virtualenvs' and re-used when requirements are met. No cleanup mechanism is provided - sorry!

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

xox-0.1.tar.gz (2.2 kB view hashes)

Uploaded Source

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