Warning: work in progress. until complete, please use github.com/dotenvx/dotenvx
a better dotenv–from the creator of dotenv
.
- run anywhere (cross-platform)
- multi-environment
- encrypted envs
Install and use it in code just like python-dotenv
.
pip install python-dotenv
# main.py
import os
from dotenvx import load_dotenvx
load_dotenvx() # take environment variables from .env.
print(os.getenv("S3_BUCKET"))