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

Uploaded Source

Built Distribution

venv_autouse-1.0.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: venv_autouse-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 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.0.tar.gz
Algorithm Hash digest
SHA256 660cccd22873b8f08d3eb066219bb0fc79399043df28581f0b833e2b5f6d384e
MD5 aaaebd101065b22ec9efcab11ad54cd8
BLAKE2b-256 80323ddb4dc77b26af1ca2b40c76702b8435506eec3c40e760a5229ffe6a9717

See more details on using hashes here.

File details

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

File metadata

  • Download URL: venv_autouse-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for venv_autouse-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57fcd04e05bf1449017c145fdb8d3ce6ab2e1d9f9d924e94c358ac3f0074d6a4
MD5 361e70301af0c235dad4cc11078a202d
BLAKE2b-256 3467d1be681e4943572e977b006c3b86cedd26d5e0b290554826ee501730064c

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