How it WorksΒΆ
This package uses python-dotenv to read and load environmental variables from .env
files, and cryptography for encrypting and decrypting .env
files.
The purpose of this package is to avoid plain text .env
files by encrypting them, which can be useful in cases where the .env
file is shared unintentionally (e.g. committed by accident, forgot to remove before sending in an email, malicious access when leaving computer unattended).
The scope of this package is limited to:
Encrypting/decrypting
.env
files with a randomly generated keyLoading environmental variables from encrypted
.env
files into PythonSaving environmental variables from Python into encrypted
.env
files
For more details, see the API Reference for source code and documentation.