Skip to main content

Object-based interaction with a Python virtual environment.

Project description

venvarium

Installation

python -m pip install venvarium

Example

from venvarium import VEnv


# Create the virtual environment
ENV_PATH = 'myproject/myenv' 
venv = VEnv(ENV_PATH)

# Run Python, PIP, or any other package or program
venv.python('-c', 'print("hello, world!")')
venv.pip('install', '--upgrade', 'pip')
venv.run_package('flask')

# See all installed packages
pkgs = venv.installed_packages()
print(pkgs)

# Get the entry points
entry_points = venv.entry_points().get('my_entry_point')
print(entry_points)

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

venvarium-0.1.0.post1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

venvarium-0.1.0.post1-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

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