NVEXPO - Non-Volatile EXPOrt
nxexpo it's a simple tool to define environment variables on-the-fly and persisting them between shell sessions.
Dependencies
- Python 3.10
Dependencies to build
Dependencies to develop
Installation
Installation trough PyPI
To install the latest stable version follow the commands:
$ pip install nvexpo --user
You can also use pipx to install it:
$ pipx install nvexpo
From the source
To install from the source follow the commands:
$ poetry build
$ pip install dist/nvexpo*.whl
Preparation
Bash
Add the following line to your .bashrc file:
eval "$(nvexpo init bash)"
ZSH
Add the following line to your .zshrc file:
eval "$(nvexpo init zsh)"
Fish
Add the following line to your config.fish file:
nvexpo init fish | source
Basic usage
The usage it's too simple. If you want to create a new env var into the current bash session use the command:
$ nx weird_variable=101
Then, you can close the current terminal or terminate the bash session, and when you start a new one, your env vars will still be there :sparkles:.
$ echo $weird_variable
101
Unset variables
To unset variables you need to use flag --unset:
$ nx var1="hello world"
$ echo $var1
hello world
$ nx --unset var1
$ echo $var1
$ works!!
Why?
The main motivation for creating this tool was that in my work I like to have the Git branch I'm working on in $branch, but it's annoying to have to create it every time I restart or close the terminal I was working on.
I could add it to .bashrc directly, but I would have to do it every time I have to work on a new branch and it wasn't comfortable.
So now instead of having to type:
branch="super_useful_change"
I have to write:
nx branch="super_useful_change"
and that's it, no matter how many times I restart, my variable will be there.
Metadata
Release files for nvexpo 0.1.6
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 | |
|---|---|---|---|---|
| nvexpo-0.1.6.tar.gz | 4.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nvexpo-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / nvexpo-0.1.6.tar.gz
| Download URL | nvexpo-0.1.6.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53a0cf75a4970accc5efe007250e823471a3569557ef403c44035f66d5be9527
|
|
BLAKE2b-256 checksum How to use checksums |
eb87f0dccf8c14e8df0f5eeb5fceb8fd822fe1aa8da009c5f5a6d64bd38b611a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.0 CPython/3.13.13 Linux/7.0.10-2-default
|
Release files / nvexpo-0.1.6-py3-none-any.whl
| Download URL | nvexpo-0.1.6-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b1b740a7fe3ed3ae8e508f2332e4c1c9834a09a870772f233da945a885070ac
|
|
BLAKE2b-256 checksum How to use checksums |
8cfa9fd56379452138d98294a00c9603cc43d2752a88a6580c4a08e21fd79438
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.0 CPython/3.13.13 Linux/7.0.10-2-default
|
Security for nvexpo 0.1.6
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.