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.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

venv_autouse-1.0.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file venv_autouse-1.0.1.tar.gz.

File metadata

  • Download URL: venv_autouse-1.0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for venv_autouse-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3b722089d717d96e4a112f3db6594967e6d705b917f6a1109abef134df4a6e6c
MD5 f98ce6d1a9687dffd6aea1b57a4b318c
BLAKE2b-256 89195717c48da6f86d566e39d78ce8ef305694ae5acfe92e31e41ac8d0d676a2

See more details on using hashes here.

File details

Details for the file venv_autouse-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for venv_autouse-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7601ba000210ea4ad77571cbaabcb36688188ec33ca2dac8077db6242edb860
MD5 134fc67f869fd3cfe403e42856d83e65
BLAKE2b-256 e227f4b21e954ab68d1d93dd7309aeedbf9d12ec32d887a90ac3e1fd56e5cbf4

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