Python .env file made easier
Project description
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.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file enviz-0.1.2.tar.gz.
File metadata
- Download URL: enviz-0.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b980524cde615bd3708adef096dab7bf02c9f66227aabf745d0aea61b9606f83
|
|
| MD5 |
ce96dd959198aa360ddb45670a1631f1
|
|
| BLAKE2b-256 |
f8e3144f89bb77ce15f952dc3db67cbdb563d68139a2889beb99fb3e6ee1f7c5
|
File details
Details for the file enviz-0.1.2-py3-none-any.whl.
File metadata
- Download URL: enviz-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be59a14f81cca6f5e9b236bbb51455160399bd654033c80f78cb540cb72c640c
|
|
| MD5 |
9cd54180f4e3ab785b63fe460bda9463
|
|
| BLAKE2b-256 |
e28939c5d8daab5855c71d25ac99dcd74cfb6bac223881de1ee1045f57f9a609
|