Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enviz-0.1.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

enviz-0.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for enviz-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b980524cde615bd3708adef096dab7bf02c9f66227aabf745d0aea61b9606f83
MD5 ce96dd959198aa360ddb45670a1631f1
BLAKE2b-256 f8e3144f89bb77ce15f952dc3db67cbdb563d68139a2889beb99fb3e6ee1f7c5

See more details on using hashes here.

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

Hashes for enviz-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 be59a14f81cca6f5e9b236bbb51455160399bd654033c80f78cb540cb72c640c
MD5 9cd54180f4e3ab785b63fe460bda9463
BLAKE2b-256 e28939c5d8daab5855c71d25ac99dcd74cfb6bac223881de1ee1045f57f9a609

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page