Read value of .env(dotenv) into ENV values
Project description
firstclass-dotenv
dotenv package for python
How to install
pip install firstclass_dotenv
How to use
import os
from firstclass_dotenv import Dotenv
if __name__ == "__main__":
dotenv = Dotenv
# Load .env in current directory
dotenv.load()
# Load specified .env
dotenv.load(".env.test")
# print specified env value
print(os.environ["TESTENVVALUE"])
Source code
You can find source code at https://github.com/hikarine3/firstclass_dotenv
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
Built Distribution
Close
Hashes for firstclass_dotenv-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c31a3dfda4e00fe43a9c1a77ce41fed616360b5ff3b7ea65b33a4a294f67220 |
|
MD5 | 4340b9fe24191fdbf7505d4692ba40f1 |
|
BLAKE2b-256 | 44c14f9145e088973fb75c01b1af4b9fd4ea1660c0f56d9ec27d05c710af8405 |