About
Enviz is a python module that allows you to write and read environment variables from a file.
Installation
pip install enviz
Usage
from enviz import Env
# Read environment variables from a file
env = Env(path='.env.example', autowrite=True)
# We can update the environment variables with a dictionary
env.update({
'TEST1': '1',
'TEST2': '2'
})
# We can also update the environment variables by setting them manually
env['TEST3'] = '3'
# env.example
TEST1 = "1"
TEST2 = "2"
TEST3 = "3"
Enviz will automatically write the environment variables to the file if the autowrite parameter is set to True. If you want to write the environment variables manually, you can use the write() method.
Metadata
Release files for enviz 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| enviz-0.1.2.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| enviz-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / enviz-0.1.2.tar.gz
| Download URL | enviz-0.1.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b980524cde615bd3708adef096dab7bf02c9f66227aabf745d0aea61b9606f83
|
|
BLAKE2b-256 checksum How to use checksums |
f8e3144f89bb77ce15f952dc3db67cbdb563d68139a2889beb99fb3e6ee1f7c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / enviz-0.1.2-py3-none-any.whl
| Download URL | enviz-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be59a14f81cca6f5e9b236bbb51455160399bd654033c80f78cb540cb72c640c
|
|
BLAKE2b-256 checksum How to use checksums |
e28939c5d8daab5855c71d25ac99dcd74cfb6bac223881de1ee1045f57f9a609
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|