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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for venvarium-0.1.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db9364066e6871d695a88881f24b68ec4605e79cf4163a0120ed4215bacc11b1 |
|
MD5 | 03f24b41e42830cfe8c805e10f2fb34a |
|
BLAKE2b-256 | 74c00611a3f2d3a3f7b12be4b2a4b0ce169613169a698c24d043299c9b429344 |