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"])
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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e9574f61846f16ee5f9cbb92e51391a96ff992e2d25aaa91b9120f410204700 |
|
MD5 | 820cdcafb666e49d0f0037539a3a970a |
|
BLAKE2b-256 | e8a42bb61f30657f10f1665cc21ebf02be00fe4ddeef878a68afb8c55b05f00f |