Handling venv for different scripts
Project description
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
Built Distribution
File details
Details for the file venv_autouse-1.0.2.tar.gz
.
File metadata
- Download URL: venv_autouse-1.0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28d40548465f14aa3fded9597b6fa107f69d6766f53a3533402cfe6ce2eaa2f0 |
|
MD5 | a7657f3f2471c4365fad24e83cd347f8 |
|
BLAKE2b-256 | 9f08c586006502a2d293caa5b1c3c9ced8b6f80d897a213eeab40af7091a4508 |
File details
Details for the file venv_autouse-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: venv_autouse-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ad91c9a54197ff0e6124ed450e75aaf3956dd5b6edd9c96ab01ee82638bfe49 |
|
MD5 | 3c43e6f5776a0262748744552381c204 |
|
BLAKE2b-256 | e4bfef6beaece80fcdba327b8109c260202db8bf34f6215a933b4bee623259c3 |