Python Dotenv¶
Description:
- Reads key-value pairs from a .env file and can set them as environment variables.
Resources:
Example 1¶
Returns a dict with the values parsed from the .env file.
In [ ]:
Copied!
import os
from dotenv import dotenv_values
config = dotenv_values(".env")
config
import os
from dotenv import dotenv_values
config = dotenv_values(".env")
config