delta-env
This is a very simple tool to report environment variable changes when a shell script is sourced. Useful while creating modulefiles for various applications that are shipped with scripts that set up the user environment.
This package does not depend on any additional python packages, only requirement is python > 3.0.0. Does not work on Windows operating system.
What the tool does is simply sourcing the given script and reporting differences from the default environment variables in an organized way.
WARNING This tool WILL carry out the actions in the given script to be analyzed. If it is of harmful nature, damage will be done. Do NOT run this tool as
root. Do NOT run this tool with scripts that are of unknown/unstrusted sources!
Installation
Clone this repository, cd into the cloned directory, and install via pip,
pip install .
Usage
This tool is meant to be used from the command line via the executable delta-env,
delta-env <path-to-script>
The output will be displayed in the terminal screen, reporting added, removed and modified environment variables seperately.
By default, modifications are reported with respect to the default user environment that is present after creation of a login shell. This behaviour can be changed by using the --from-current argument to use the current environment (where delta-env is executed) as basis. Note that environment variables that were created without the export command will not be passed to subprocesses, and hence will not be visible to delta-env.
If no shell executable is supplied via --shell <path-to-shell> argument, it is obtained from the value of environment variable SHELL.
Metadata
Release files for delta-env 1.0.0
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 | |
|---|---|---|---|---|
| delta-env-1.0.0.tar.gz | 6.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| delta_env-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.1 kB
Release files / delta-env-1.0.0.tar.gz
| Download URL | delta-env-1.0.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96fb9a2b8a3b964cd72a7de6f62a8ad9316d0280b9ad86029361b37f5786db66
|
|
BLAKE2b-256 checksum How to use checksums |
bd8e955f3d060fc06badd041de87ba1277e9341f34a221a99413ca5a2b8d2a8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.3
|
Release files / delta_env-1.0.0-py3-none-any.whl
| Download URL | delta_env-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15a2d3e6de534ef62afa75f48941cfb054b043085c70f1af8b43df26051b84af
|
|
BLAKE2b-256 checksum How to use checksums |
0457d5d200db042956e7714233b4f4304210f431c6de2b59c7268d0f9aebc0db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.3
|
Security for delta-env 1.0.0
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.