Skip to main content

Handling venv for different scripts

Project description

https://github.com/XonqNopp/python-venv-autouse/actions/workflows/python-package.yml/badge.svg

https://img.shields.io/pypi/pyversions/venv-autouse.svg https://img.shields.io/pypi/v/venv-autouse

This package helps managing venv in different locations for different scripts. You don’t have to manually care about calling a script with the according venv. All you need is provide a requirements file and import this module in the files which require the venv. This module needs to be installed system-wide or in every venv you use to call files. However, if you are executing files from within a venv, you will loose the current venv.

The versioning follows semantic versioning.

File

When you have a python script file.py and it needs a venv, you can simply add import venv_autouse.file at the top of the file, and write the requirements file file.req.txt. It also uses the requirements.txt file in the directory of the file. All this will create a venv directory .file.venv in the same directory.

Directory

This is the same, except that it uses a venv shared in the directory of the file to save space when possible.

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

venv_autouse-1.0.2.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

venv_autouse-1.0.2-py3-none-any.whl (7.2 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