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"])
How to test this module (This procedure is for developer of this module)
Create distribution
python3 setup.py sdist bdist_wheel
Upload to Test
python -m twine upload --repository testpypi dist/*
Confirm
https://test.pypi.org/project/firstclass-dotenv/
Confirm by intallation
pip install -i https://test.pypi.org/simple/ firstclass-dotenv
Deploy to production
python -m twine upload --repository pypi dist/*
Confirm on Page
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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03099d0843f2dde1d8200e8c9a885975bbd21d32a6f03861a209d7d31b9dc6ec |
|
MD5 | 7194a834b64889191dbaf07b981e377a |
|
BLAKE2b-256 | 2fb86d5cc9e1258a4f0a62257171ab119963819ac7fc017326494bea3658bdf3 |