venv-modulefile
Description
Tool to create Python complient environment from non-pythonic tools in a Python virtual environment.
It is based on Environment Module to modify the virtual environment.
The package offers several commands to build environment modules activated by the virtual environnment
Quick start
The following example adds foo/bar/baz to LD_LIBRARY_PATH when the environment is loaded
venvmod-initialize ${VIRTUAL_ENV}
venvmod-prepend-path ${VIRTUAL_ENV} LD_LIBRARY_PATH foo/bar/baz
Available commands
The list of available commands is the following:
-
venvmod-initializeis the first command to call. It is expected before everithing as it upgrades the virtual environment with modulefile. -
The following commands modify the modulefile of the virtual environment:
venvmod-cmd-append-path/venvmod-cmd-prepend-path: modifies an environment variablevenvmod-cmd-module-load: loads a modulefilevenvmod-cmd-module-use: adds a search path for modulefilevenvmod-cmd-remove-path: removes path from environment variablevenvmod-cmd-setenv: defines an environment variablevenvmod-cmd-set-alias: defines an aliasvenvmod-cmd-source-sh: sources a script
-
venvmod-cmd-read-env: reads modifications to do from environment variable:[NAME]_LD_LIBRARY_PATH,[NAME]_PYTHONPATH,[NAME]_PATH:prependfor each element separated by ':'[NAME]_MODULE_USE:module usefor each element 'module' separated by ' '[NAME]_MODULEFILES:module loadfor each element '/path/' separated by ' '[NAME]_SOURCEFILES:source-shfor each element 'shell script [args...]' separated by ';'[NAME]_EXPORTS:setenvfor each element 'var=value' separated by ' '[NAME]_ALIASES:set-aliasfor each element 'var="value"' separated by ' '[NAME]_REMOVE_PATHS:remove-pathfor each element 'var=value' separated by ' ' where[NAME]is the name of the environment module (case insensitive, "-" and "." are replaced by "_").
-
venvmod-add-appliallows to create sub modulefile.--applioption of the above commands permit to modify these modulefiles. The appli can be removed unsingvenvmod-rm-appli -
venvmod-test-import: tests the import of modules given as argument
See --help option for cli description of each command.
The sequence to modify the environment respects the sequence of call of the different functions.
Metadata
Release files for venv-modulefile 0.1.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| venv_modulefile-0.1.19.tar.gz | 8.8 MB | Without provenance | Details for venv_modulefile-0.1.19.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| venv_modulefile-0.1.19-py3-none-any.whl | Python 3 | none | any | Details for venv_modulefile-0.1.19-py3-none-any.whl |
Total release size: 17.7 MB
Release files / venv_modulefile-0.1.19.tar.gz
| Download URL | venv_modulefile-0.1.19.tar.gz |
|---|---|
| Size | 8.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eec3e7592d768161436b1f0780017f8458a45a16832f13106fce3664094d66c8
|
|
BLAKE2b-256 checksum How to use checksums |
6d9c1fabee69eaadfed6e827939d7c9aba296a2965ec1018aff47a952b15e5f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / venv_modulefile-0.1.19-py3-none-any.whl
| Download URL | venv_modulefile-0.1.19-py3-none-any.whl |
|---|---|
| Size | 8.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41a741fdf6796435370cbd6ff604d3942d449c249802cc729b54a38b63621050
|
|
BLAKE2b-256 checksum How to use checksums |
36c15d76a52c8b58b3be7d8a36de63da0ebaa5c36e14703026d79366fd07aeab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for venv-modulefile 0.1.19
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.