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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file venvarium-0.1.0.post1.tar.gz.

File metadata

  • Download URL: venvarium-0.1.0.post1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.10.70-1-MANJARO

File hashes

Hashes for venvarium-0.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 cc3d8329d83dd5d3d71ff865096e8d0abaa4a9a51a5083c696168357483103b7
MD5 388582dd33ab31e1c8f304f993cf4111
BLAKE2b-256 8d4442c465cff56edfe7d690afd24e3c382ad217bfeb214e44ae0e7321bf180c

See more details on using hashes here.

File details

Details for the file venvarium-0.1.0.post1-py3-none-any.whl.

File metadata

  • Download URL: venvarium-0.1.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.10.70-1-MANJARO

File hashes

Hashes for venvarium-0.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 db9364066e6871d695a88881f24b68ec4605e79cf4163a0120ed4215bacc11b1
MD5 03f24b41e42830cfe8c805e10f2fb34a
BLAKE2b-256 74c00611a3f2d3a3f7b12be4b2a4b0ce169613169a698c24d043299c9b429344

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